How to install Webmin on Ubuntu 16.04 LTS

Managing a Linux server through command line isn’t difficult, if you’re used to the command line. But sometimes a nice GUI makes things easier and faster, and is especially nice when you’re working from smaller devices like a phone or tablet.

Webmin has been around for quite a long time; I remember using it in 2004, setting up Fedora Core 3 machines with Samba. I’m sure it goes back even further than that.

These days, it’s every bit as powerful and more, and looks as slick as an other web app. It’s also extremely easy to install, thanks to a continually updated repository that you can add to your Ubuntu install.

To install it, just do the following:

  1. Log into your Ubuntu Server (or desktop; it’ll work on either)
  2. Type (or copy/paste from here) the following command, which adds a new Apt source file for updates –

    sudo nano /etc/apt/sources.list.d/webmin.list

  3. Add the following line to this new file –

    deb http://download.webmin.com/download/repository sarge contri

  4. Hit the ctrl+X key to save the file, and Y for yes.
  5. Type or c/p this command to import the repository’s key, so you don’t get errors when grabbing files from it –

    sudo wget http://www.webmin.com/jcameron-key.asc 

  6. Add the key by typing or c/p this into the terminal window –

    sudo apt-key add jcameron-key.asc

  7. Type this in to update your repositories, so your Ubuntu install knows it’s there –

    sudo apt-get update

  8. And finally, type this in to install webmin –

    sudo apt-get install webmin

That’s it! Your Webmin interface will be available at https://YourServerName:10000, with the admin user’s credentials working. From here, all the servers you have installed, such as Samba, Apache, MySQL, etc. will be here to control, as well as system items like Cron jobs, users and groups, etc.

It makes for a nice lean system, running a GUI-less server, but with a nice web interface to manage it.

Posted in Tech.