Skip to content
Ufkun Karaman
Go back

Standard Configuration for Linux OS

1 min readEdit page

Before following any of the installation or infrastructure guides on this blog, apply these baseline configuration steps on your Linux servers.

Update and Upgrade OS

sudo apt-get update
sudo apt-get upgrade -y
sudo apt autoremove -y

Install Essential System & Troubleshooting Packages

Note

open-vm-tools is only required for VMware virtual machines. On Ubuntu 22.04+ and Debian 12+, prefer plocate instead of mlocate.

sudo apt install -y \
  net-tools vim nano git wget curl unzip dos2unix \
  procps htop iftop iotop ncdu sysstat rsync screen \
  links telnet traceroute gcc plocate open-vm-tools

Set Server Hostname & /etc/hosts

Update both the system hostname and /etc/hosts so local sudo invocations resolve cleanly without warnings:

sudo hostnamectl set-hostname hostname-01
echo "127.0.1.1 hostname-01" | sudo tee -a /etc/hosts

Found this guide useful in production? Support open technical docs:


Next Post
High Availability Kubernetes Cluster Installation with Kubespray