Things to Do on a Fresh Ubuntu 20.04 Server Install

Pinterest LinkedIn Tumblr

This guide is meant to recommend things you ought to do on a fresh ubuntu server install. These include securing the server and configuring it with the best practices.

Update the system

First things first — check if your machine is running the latest components and features provided

sudo apt update
sudo apt upgrade -y

Install common software packages

sudo apt install -y \
    vim \
    telnet \
    htop \
    wget \

Set hostname

sudo hostnamectl set-hostname ${HOSTNAME}

Enable Firewall

UFW is the built-in Firewall for Ubuntu and it is highly reliable one. By default it is not enabled and you have to enable it manually. Simply follow these steps to enable it on your Ubuntu.

To Enable

sudo ufw enable

To Manage it in GUI

sudo apt-get install gufw

To Disable

sudo ufw disable

Configure timezone

Set up the server timezone

Get a list of timezones with this:

timedatectl list-timezones

Set your timezone with this command replacing Asia/Dubai with your timezone

timedatectl set-timezone Asia/Dubai

Typing this command timedatectl will display timezone display timezone details

# timedatectl
               Local time: Thu 2021-08-05 06:58:44 UTC
           Universal time: Thu 2021-08-05 06:58:44 UTC
                 RTC time: Thu 2021-08-05 06:58:44
                Time zone: UTC (UTC, +0000)
System clock synchronized: yes
              NTP service: active
          RTC in local TZ: no

Create a sudo user

sudo adduser user

You will be prompted to enter user info and details
Add user to sudo

sudo usermod -aG sudo user

I am a Devops Engineer, but I would describe myself as a Tech Enthusiast who is a fan of Open Source, Linux, Automations, Cloud and Virtualization. I love learning and exploring new things so I blog in my free time about Devops related stuff, Linux, Automations and Open Source software. I can also code in Python and Golang.

Write A Comment