Skip to content

Instantly share code, notes, and snippets.

@kien-ngo
Last active July 14, 2025 12:48
Show Gist options
  • Select an option

  • Save kien-ngo/497238acc157ae76c11107ab46c2fd63 to your computer and use it in GitHub Desktop.

Select an option

Save kien-ngo/497238acc157ae76c11107ab46c2fd63 to your computer and use it in GitHub Desktop.
Ubuntu Server installation
# First, follow the installation steps here: https://chriskalos.notion.site/The-0-Home-Server-Written-Guide-5d5ff30f9bdd4dfbb9ce68f0d914f1f6#21db7c9525b046aaade33d538e197175
# I will not be following the static-IP section in the post, since I will be using Tailscale instead
# To run this Gist:
# curl -sSL https://gist.githubusercontent.com/kien-ngo/497238acc157ae76c11107ab46c2fd63/raw | bash
##### Script execution starts #####
#Start ssh immediately so you can SSH in from another machine with GUI and web browsers so that you can copy stuff more easily
sudo systemctl start ssh
# Start SSH on boot
sudo systemctl enable ssh
# Update APT repo
sudo add-apt-repository ppa:zhangsongcui3371/fastfetch # Fast-fetch to view system info
sudo add-apt-repository ppa:maveonair/helix-editor # the Helix Editor (my choice)
sudo apt update && sudo apt upgrade
# Various apps which can be installed via apt
sudo apt install zsh x11-xserver-utils net-tools brightnessctl helix tmux fastfetch
# Tailscale
curl -fsSL https://tailscale.com/install.sh | sh
sudo systemctl enable --now tailscaled # Run and enable on start
# NVM for managing node versions
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
# Oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# Auto suggestion
echo 'deb http://download.opensuse.org/repositories/shells:/zsh-users:/zsh-autosuggestions/xUbuntu_22.04/ /' | sudo tee /etc/apt/sources.list.d/shells:zsh-users:zsh-autosuggestions.list
curl -fsSL https://download.opensuse.org/repositories/shells:zsh-users:zsh-autosuggestions/xUbuntu_22.04/Release.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/shells_zsh-users_zsh-autosuggestions.gpg > /dev/null
sudo apt update
sudo apt install zsh-autosuggestions
# Neovim
# Best follow: https://github.com/neovim/neovim/blob/master/INSTALL.md
# Install rsync to sync files between servers
sudo apt install rsync
# To do:
# - Reduce the screen brightness using `brightnessctl`
# - Install samba
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment