Skip to content

Instantly share code, notes, and snippets.

@tylergets
Created April 28, 2022 11:44
Show Gist options
  • Save tylergets/813087ecb12652f94baed8964ac04897 to your computer and use it in GitHub Desktop.
Save tylergets/813087ecb12652f94baed8964ac04897 to your computer and use it in GitHub Desktop.
Ubuntu 21.04 Server Setup
#!/bin/bash
# Tailscale Setup
curl -fsSL https://pkgs.tailscale.com/stable/ubuntu/hirsute.noarmor.gpg | sudo tee /usr/share/keyrings/tailscale-archive-keyring.gpg >/dev/null
curl -fsSL https://pkgs.tailscale.com/stable/ubuntu/hirsute.tailscale-keyring.list | sudo tee /etc/apt/sources.list.d/tailscale.list
apt-get update
apt-get install tailscale
tailscale up
# Docker Install
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
apt-get update
apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin
groupadd docker
# Account Setup
adduser tyler
usermod -aG sudo tyler
usermod -aG docker tyler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment