How to setup your first Linux server w/ ubuntu or arch.

Posted on

Hey everyone! 👋 I’m Ralph, 13 years old, and I’ll show you how to set up your first Linux server. I’ll cover Ubuntu and Arch. Don’t worry, we’ll keep it simple!

Step 1: Pick the one your most interested in.

Quick rundown:

  • Ubuntu Server → Beginner-friendly, huge community.
  • Arch Linux → Minimal and customizable, more advanced.
Linux Distros

Step 2: Install the OS

Boot from USB or use a VPS. Each distro has a slightly different installer...

Linux Server

Install on ubuntu and arch.


          # You will get greeted by the installer upon boot.
          The steps from there are pretty simple: (Select language, keyboard, network config,
          third party software (optional), additional packages (optional), user details, install.)

          # Arch (We will use archinstall for this guide)
          First we connect to the network via iwd.
          Enter "iwctl" into the command prompt.
          Then type "station wlan0 or enp1s0 connect SSID"
          Once you have selected your network, enter its password.

          From here type "ping -c 4 google.com" to verify your connection.
          Then type "archinstall" once connected.

          You will be greeted with the arch installer.

          Now you have to select the options you want. (I recommend using NetworkManager
          for network.) 
        

Step 3: Update your system


          # Ubuntu
          sudo apt update
          sudo apt upgrade -y

          # Arch
          sudo pacman -Syu
        

Step 4: Create a non-root user (If not already)


          sudo adduser ralph
          sudo usermod -aG sudo ralph   # Ubuntu
          sudo usermod -aG wheel ralph  # Arch
        

Step 5: Setup SSH for remote access


          sudo apt install openssh-server -y (sudo pacman -S openssh)
          sudo systemctl enable ssh
          sudo systemctl start ssh
        

Step 6: Optional — Install a web server


          sudo apt install nginx -y (sudo pacman -S nginx)
          sudo systemctl enable nginx
          sudo systemctl start nginx
        
Nginx default page

Congrats! 🎉 Your first Linux server is up and running. Play around and learn more!