Last active
May 18, 2024 21:11
-
-
Save dmbeta/7159ab9978772310f776c40e4025476c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "deb http://deb.debian.org/debian bookworm-backports main contrib non-free-firmware" | tee -a /etc/apt/sources.list | |
apt update && apt upgrade -y | |
apt install cockpit cockpit-storaged -y | |
systemctl start cockpit.socket | |
systemctl enable cockpit.socket | |
echo "Cockpit done" | |
apt install ufw -y | |
ufw enable | |
ufw allow 9090 | |
echo "UFW Done" | |
# docker | |
apt install ca-certificates curl -y | |
install -m 0755 -d /etc/apt/keyrings | |
curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc | |
chmod a+r /etc/apt/keyrings/docker.asc | |
# Add the repository to Apt sources: | |
echo \ | |
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian \ | |
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \ | |
tee /etc/apt/sources.list.d/docker.list > /dev/null | |
apt-get update | |
apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin | |
echo "docker done" | |
apt install unattended-upgrades -y | |
dpkg-reconfigure --priority=low unattended-upgrades | |
systemctl enable unattended-upgrades | |
systemctl start unattended-upgrades | |
echo "Set up unattended upgrades" | |
# tailscale | |
curl -fsSL https://tailscale.com/install.sh | sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment