This runbook provides the steps to set up a new Linux server.

Prerequisites

  • Access to the server
  • Root or sudo privileges

Steps

  1. Update Package Lists
    sudo apt update
    
  2. Upgrade Packages
    sudo apt upgrade -y
    
  3. Install Common Utilities
    sudo apt install -y curl wget git vim
    
  4. Set Up Firewall
    sudo ufw allow OpenSSH
    sudo ufw enable
    
  5. Create a New User
    sudo adduser newuser
    sudo usermod -aG sudo newuser
    
  6. 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.