Ubuntu
Ubuntu Server
Articles
How to Install October CMS on Ubuntu 18.04 LTS
Ubuntu 18.04 is end of life; these steps are for Ubuntu 24.04 (and Debian 12 / AlmaLinux/Rocky 9).
October CMS is a CMS built on Laravel. The current version is...
How to Install PHP on Ubuntu 26.04 and 24.04 (CLI, PHP-FPM and Extensions)
To install PHP on Ubuntu, pick the package that matches how you will use it:
# command line only (scripts, cron jobs, Composer)
sudo apt update
sudo apt install...
How to Install PuTTY on Ubuntu and Convert Keys with puttygen
You don’t download PuTTY from a website on Ubuntu: it is in the Ubuntu repositories, so install it with apt:
sudo apt update
sudo apt install putty
This installs...
How to Install Sendmail on Debian 9 (Stretch)?
Debian 9 is end of life. Sendmail is one of the oldest mail transfer agents. It still works on Debian 12 and Ubuntu 24.04, but most new servers use Postfix, which is...
How to Install Ubuntu Server 26.04 LTS (Step by Step)
To install Ubuntu Server, download the live server ISO, boot the machine from it and follow the text installer. Two defaults catch people out: the OpenSSH server is...
How to Install Wiki.js on Ubuntu 18.04 LTS
Ubuntu 18.04 is end of life. Wiki.js is a modern open-source wiki with a Markdown editor, search and Git sync. The current version is 2.5; it needs Node.js 20 or newer...
How to Install a GUI on Ubuntu Server (GNOME or Xfce)
Ubuntu Server has no graphical interface, but you can add one with a single package. For Ubuntu’s own GNOME desktop, run sudo apt install ubuntu-desktop-minimal...
How to Install a Specific Package Version on Ubuntu and Debian with apt (Hold, Downgrade, Download)
List the versions apt can see, then install one with package=version, using the exact version string from the list. If the package has companion packages built from...
How to Install and Use traceroute on Ubuntu (UDP, ICMP and TCP Traceroute)
On Ubuntu, traceroute is not installed by default. Install it with sudo apt install traceroute, then run traceroute example.com. If the output is mostly *, try ICMP...
How to Install xrdp on Ubuntu for Remote Desktop Access
xrdp lets you connect to a Linux desktop with the normal Windows Remote Desktop app (or any RDP client) on port 3389. We installed xrdp 0.9.24 on Ubuntu 24.04. A...
How to List All Disks, Volumes and Unmounted Partitions in Linux
To list all disks and partitions in Linux, with their size, file system and where they are mounted, run lsblk. It needs no root rights and works the same on every...
How to List Installed Packages on Ubuntu and Debian (apt and dpkg)
Ubuntu and Debian keep a database of every installed package. You can read it with apt (easy to read) or dpkg (better for scripts). We tested every command on Ubuntu...
How to List and Find Running Processes in Linux (ps, top)
To list all running processes in Linux, run ps aux. It shows every process with its user, process ID (PID), CPU and memory use and the command. For a live view that...
How to Monitor Network Traffic on Ubuntu: vnstat, iftop, nethogs and nload
To see network traffic on an Ubuntu server from the command line, pick the tool that answers your question:
How much right now, per interface? nload or vnstat -l...
How to Open Ports on Ubuntu with UFW (Allow SSH and Enable)
To open a port on Ubuntu, allow it in UFW, Ubuntu’s firewall tool: sudo ufw allow 8080/tcp. If UFW is not switched on yet, allow SSH first and then enable it, or...
How to Open a Terminal in Ubuntu (Desktop, Server and VPS)
On Ubuntu Desktop, press Ctrl+Alt+T. A terminal window opens straight away. On Ubuntu Server there is no desktop: you are already at a terminal after you log in, and...
How to Recover a Deleted Directory or Folder in Linux: Trash, extundelete, ext4magic and PhotoRec
A folder removed with rm -r or rm -rf does not go to a trash folder: Linux marks its space as free straight away. You can often still recover a deleted directory, but...
How to Restart the Network on Ubuntu (netplan apply, networkctl and NetworkManager)
On Ubuntu Server the network is configured by netplan and run by systemd-networkd. After you change a file in /etc/netplan/, the right way to “restart the...
How to Secure Nginx with NAXSI on Ubuntu 16.04?
Ubuntu 16.04 is end of life. NAXSI, a web application firewall module for Nginx, is no longer packaged for current Ubuntu, and its original project was archived in...
How to Set Up Remote Logging with rsyslog on Ubuntu and AlmaLinux
Ubuntu 14.04 is end of life; these steps are for Ubuntu 24.04 and AlmaLinux 9 / Rocky Linux 9, which all use rsyslog. Sending logs to a central server keeps them safe...
How to Set Up an FTP Server on Ubuntu (vsftpd with TLS)
To run an FTP server on Ubuntu, install vsftpd with sudo apt install vsftpd, turn on TLS, lock each FTP user into their own folder and open port 21 plus a passive port...
How to Set a Static IP on Ubuntu with Netplan (Ubuntu 24.04)
Ubuntu configures its network with Netplan: YAML files in /etc/netplan/ that Netplan turns into settings for systemd-networkd (on servers) or NetworkManager (on...
How to Setup Kerberos Server and Client on Ubuntu 18.04 LTS?
Ubuntu 18.04 is end of life; these steps are for Ubuntu 24.04. Kerberos provides single sign-on: users authenticate once and get tickets for other services. For a...
How to Update Ubuntu Repositories and Use a Local Mirror or apt-cacher-ng to Save Bandwidth
To update the Ubuntu repositories, run:
sudo apt update
This downloads the latest package lists from every repository your server uses. It installs nothing; sudo apt...
How to Upgrade Ubuntu to 26.04 LTS: Steps, Checks and Changes
To upgrade Ubuntu to a new release, first install every update for the release you have, then run the release upgrader:
sudo apt update
sudo apt full-upgrade
sudo...