File size: 929 Bytes
3d6ecf3
1c3b29b
 
 
31162fb
1c3b29b
 
 
 
 
31162fb
 
3f3fe80
3d6ecf3
1c3b29b
3d6ecf3
31162fb
1c3b29b
 
 
31162fb
1c3b29b
 
 
85f46b9
 
1c3b29b
85f46b9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash

touch ~/tailscale.log && touch ~/clusters.log && touch ~/backup.log

sudo apt-get install python3 python3-dev python3-pip python3-virtualenv \
libacl1-dev libacl1 \
libssl-dev \
liblz4-dev libzstd-dev libxxhash-dev \
build-essential \
pkg-config python3-pkgconfig && \
sudo apt-get install libfuse-dev fuse && \
sudo apt-get install libfuse3-dev fuse3 && \
sudo apt install borgbackup &>> ~/backup.log

sudo useradd -m borg && \
mkdir /home/borg/.ssh && \
touch /home/borg/.ssh/authorized_keys && \

sudo apt-get update
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 && \
sudo install minikube-linux-amd64 /usr/local/bin/minikube && \
rm minikube-linux-amd64 && \
minikube start &>> ~/clusters.log

curl -fsSL https://tailscale.com/install.sh | sudo sh && \
sudo systemctl start tailscaled &> ~/tailscale.log && \
sudo tailscale up -ssh &>> ~/tailscale.log
echo ~/tailscale.log