Installing Webmin on Ubuntu Server

Webmin is a cool web based interface to manage servers. You can install this on a server using the following commands

You need the following packages first –

$ sudo apt-get install \
perl libnet-ssleay-perl openssl libauthen-pam-perl \
libpam-runtime libio-pty-perl libmd5-perl \
apt-show-versions libapt-pkg-perl

Now download webmin – look for the latest version and replace the URL

$ sudo wget http://prdownloads.sourceforge.net/webadmin/webmin_1.510-2_all.deb

Install webmin now

$ sudo dpkg -i webmin_1.510-2_all.deb

Update Ubuntu server

Ubuntu server doesn’t have GUI, unless you installed it. So here’s how you update the server using the command line

$ sudo apt-get update

This refreshes the update list and the following actually pulls to cache and installs it. It certainly is a long process – so choose a weekend time to be doing this.

$ sudo apt-get dist-upgrade

Just to be on the safer side, do a restart once everything gets alright.

Copy Ubuntu updates to other machines

All of the files that are updated by the update manager gets cached at the following location.

/var/cache/apt/archives

Simply make a tarball archive and use a USB stick to take it to another machine. You need to sudo

cd /var/cache/apt/archives
sudo tar -pczf updates.tar.gz *

Extract the contents in the target machines cache directory

sudo tar -zxvf updates.tar.gz

Now, run the update manager and you see that most of the stuff that you need are already marked downloaded. Simply download the rest depending on what you need and proceed with the installation. You may have to be around to approve certain dialog pop-ups.

That’s it, you have the most secure ubuntu installation on all your machines.