This runbook provides the steps to set up a new Linux server.
Prerequisites
- Access to the server
- Root or sudo privileges
Steps
- Update Package Lists
sudo apt update
- Upgrade Packages
sudo apt upgrade -y
- Install Common Utilities
sudo apt install -y curl wget git vim
- Set Up Firewall
sudo ufw allow OpenSSH sudo ufw enable
- Create a New User
sudo adduser newuser sudo usermod -aG sudo newuser
- Configure SSH Access
sudo cp /root/.ssh/authorized_keys /home/newuser/.ssh/ sudo chown newuser:newuser /home/newuser/.ssh/authorized_keys
Verification
- Connect to the server using the new user.
- Check basic commands and utilities.