Step 3 – Install Webmin

Configure and Install Webmin

Log in to your Pi via SSH and enter the following at the terminal :

sudo -i  (Enter the root level with elevated privileges )

Edit file sources.list by entering the command below in your terminal:

nano /etc/apt/sources.list   (Use nano text editor to edit sources.list file located in the /etc/apt folder)

Paste the following lines once you are in nano :

deb http://download.webmin.com/download/repository sarge contrib
deb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib

Press Ctrl+x to exit and Y to save the changes.

You should see something like this:

edit_source.list

Next, step is to fetch and install the Webmin GPG key with which the repository is signed, with the commands :

Add the Webmin APT  repository

cd /root (Navigate to the root folder)

wget http://www.webmin.com/jcameron-key.asc (download the key )
apt-key add jcameron-key.asc (add the key to apt-key)

The Pi is now read to Install Webmin.  Enter the following commands :

apt-get update
apt-get install webmin

Webmin will now download and install with all dependencies resolved.

The system will give an installation complete confirmation and access instructions.
You can now login via a web browser with the ip address of your Pi and port :10000

Image001

The Raspberry Pi 2 Webmin Server can now be accessed by entering the ipaddress of your Pi and port 10000 (eg 192.168.0.10:10000)

ipaddress of your pi and port : 10000

Once you are logged in, you can update the pi, or install server modules,  create users, auto mount drives, monitor drives and whole lot more.

I for example used it to setup my DHCP and DNS servers in order to better control my network environment.

Caution : If you intend to remotely administer your Pi,  make sure all your passwords are changed from defaults, use the SSL protocol and make sure you following recommended security practices. Please read about SSH hardening, Server security and port forwarding. Also read the web server installation article.