tech_lean_nice / on_startup.sh
HectorYX's picture
Update on_startup.sh
1c3b29b verified
raw
history blame
1.24 kB
#!/bin/bash
touch ~/tailscale.log && touch ~/clusters.log && touch ~/backup.log
sudo apt-get install -y 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 -y libfuse-dev fuse && \ # needed for llfuse
sudo apt-get install -y libfuse3-dev fuse3 && \ # needed for pyfuse3
sudo apt install -y borgbackup &> ~/backup.log
sudo useradd -m borg && \
sudo -i -u borg && \
mkdir .ssh && \
touch .ssh/authorized_keys &>> ~/backup.log
sudo apt-get update
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 && \
sudo install -y minikube-linux-amd64 /usr/local/bin/minikube && \
rm minikube-linux-amd64 && \
minikube start &>> ~/clusters.log
curl -fsSL https://pkgs.tailscale.com/stable/ubuntu/jammy.noarmor.gpg | sudo tee /usr/share/keyrings/tailscale-archive-keyring.gpg >/dev/null
curl -fsSL https://pkgs.tailscale.com/stable/ubuntu/jammy.tailscale-keyring.list | sudo tee /etc/apt/sources.list.d/tailscale.list
sudo apt-get install -y tailscale &> ~/tailscale.log
sudo systemctl start tailscaled &>> ~/tailscale.log
sudo tailscale up -ssh &>> ~/tailscale.log