Step 1 — Installing Webmin

First, update your server’s package index if you’ve not done so recently:

sudo apt update

Then we need to add the Webmin repository so that we can install and update Webmin using our package manager. We do this by adding the repository to the /etc/apt/sources.list file.

Open the file in your preferred editor. Here, we’ll use nano:

sudo nano /etc/apt/sources.list

Then add this line to the bottom of the file to add the new repository:

/etc/apt/sources.list . . .  deb http://download.webmin.com/download/repository sarge contrib

Save the file and exit the editor. If you used nano, do so by pressing CTRL+X, Y, then ENTER.

Next, you’ll add the Webmin PGP key so that your system will trust the new repository. In order to do that, though, you must install the gnupg1 package, which is GNU’s tool for secure communication and data storage.

Following that, download the Webmin PGP key with wget and add it to your system’s list of keys:

wget -q -O- http://www.webmin.com/jcameron-key.asc | sudo apt-key add

Next, update the list of packages again in order to include the now-trusted Webmin repository:

sudo apt update 

Then install Webmin:

sudo apt install webmin 

Once the installation finishes, you’ll be presented with the following output:

Output . . . Webmin install complete. You can now login to https://your_server:10000 as root with your root password, or as any user who can use sudo. Note: If you installed and enabled ufw during the prerequisite step, you will need to run the following command in order to allow Webmin through the firewall: sudo ufw allow 10000 For extra security, you may want to configure your firewall to only allow access to this port from certain IP ranges.