How to install webmin?

How do I install webmin on Ubuntu 12.04?

Note: I am using the desktop edition, not Ubuntu Server.


Solution 1:

Installation

Open up Terminal and run the following commands, entering your password when prompted.
Press Enter after each command.
Accept any prompts you may receive.

echo "deb http://download.webmin.com/download/repository sarge contrib deb" | sudo tee -a /etc/apt/sources.list
echo "http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib" | sudo tee -a /etc/apt/sources.list
cd /tmp; wget http://www.webmin.com/jcameron-key.asc; sudo apt-key add jcameron-key.asc; cd
sudo apt-get update
sudo apt-get install webmin

That's it! Webmin should now be up and running.

Usage

By IP Address

To find your IP address, run the following command in Terminal:

ifconfig | grep eth -A 5 | grep 'inet addr:' | cut -d: -f2 | awk '{ print "IP Address: "$1}'

Browse to that IP address using your favorite web browser, appending :10000 to the end of the address. For example:

192.168.1.10:10000

Note: 10000 is the default port where Webmin resides, and you must specify it to access Webmin's control panel. If you don't, you'll be accessing the built-in web server's home page, not Webmin.

By Hostname

You may also browse to Webmin using your Ubuntu machine's hostname.
To find your hostname, run the following command in Terminal:

hostname

Note: Again, don't forget to append :10000 to the hostname in the web browser.