Basics • 4 min read
Initial Ubuntu & Debian Server Configuration
After provisioning a fresh Linux installation, update package indexes, configure the system timezone, and create a regular administrative user.
1. Update System Packages
sudo apt update && sudo apt upgrade -y
sudo apt install -y curl git htop ncdu tree unzip
2. Create a Sudo User
sudo adduser deploy
sudo usermod -aG sudo deploy
3. Set Timezone & Swap
sudo timedatectl set-timezone UTC
sudo fallocate -l 2G /swapfile && sudo chmod 600 /swapfile
sudo mkswap /swapfile && sudo swapon /swapfile