How to administer Ubuntu Server remotely using Webmin

http://www.havetheknowhow.com/Configure-the-server/Install-Webmin.html

NOTE: If you're jumping into this guide here and have not been following from the start then it's worth mentioning that this guide has been tested on Maverick Meerkat 10.10, Lucid Lynx 10.04, Karmic Koala 9.10, 9.04 Jaunty, and 8.10 Intrepid.

Webmin is a fantastic application which makes the administration of Ubuntu Server a breeze. It's a web-based interface enabling you configure and maintain your server without having to go near any configuration files or learn any Linux commands.

To install Webmin via Putty you first need to go to http://www.webmin.com/download.html and look under the heading "Debian package suitable for Debian, Ubuntu or other derived Linux" to determine the latest version. At the time of writing this is webmin_1.580_all.deb.

NOTE: As and when later versions of Webmin are released you don't have to re-install the application from scratch using these instructions. Each time you launch Webmin via your browser Webmin automatically checks to see whether a newer version has been released and offers to perform the upgrade for you.

TIP: If you're using Putty and are going to be following this guide step-by-step then you can save yourself some typing by simply highlighting each command, right-clicking on it and selecting Copy. Then toggle over to your Putty Session and right-click once more. The command you've just copied from here will be automatically pasted into your Putty Session.

So, once you've determined the latest Webmin version type/paste the following command into a Putty Session:

wget http://prdownloads.sourceforge.net/webadmin/webmin_1.580_all.deb

which will download the package into your current directory. Obviously you should replace webmin_1.580_all.deb with whatever the latest version is called.

Now type the following commands:

sudo apt-get update

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

this will install the packages required by Webmin. Now type:

sudo dpkg -i webmin_1.580_all.deb

to unpack it. Obviously, as above, replace webmin_1.580_all.deb with whatever the latest version is called.

NOTE: If webmin says that it encountered errors preventing it from installing then type the following command to fix. Webmin will then re-install itself automatically:

sudo apt-get install -f

Once it's completed it should report a message along the following lines:

Webmin install complete. You can now login to https://MyMediaServer:10000/ as root with your root password, or as any user who can use sudo to run commands as root.

I recommend changing the Webmin password by typing the following command:

sudo /usr/share/webmin/changepass.pl /etc/webmin root YourNewPassword

where YourNewPassword is the password you want to use. This will return a message along the lines of "Updated password of Webmin user root".

You can now delete the Webmin installation file by typing:

rm webmin_1.580_all.deb

Launching Webmin

To launch Webmin type the following string into the address bar of your browser:

https://mymediaserver:10000/

where mymediaserver is the name you gave your server when you installed Ubuntu. Instead of using the server name the IP address of the server will work just fine.

The first time you launch Webmin your browser will likely complain about the certificate for this site so just add the site as an exception to continue.

You should then be prompted for a username and password. Enter root for the username and use the password you just created above. You should then see the Webmin Home Screen similar to the one below:

Webmin Homepage


Tag Cloud