Webmin is web based system administration tool that can be used on Linux machines. Using it we can administer the Linux machines, we can use Webmin to set up user accounts or we can configure the Apache web server, manage DNS, configure the Postfix mail server etc etc. It has a a number of standard modules which we can install and use as per our own need & purposes.
In this tutorial, we will learn to install Webmin on CentOS machines as well as Ubuntu machines.
( Also Read : Install Java 9 on Linux machines )
Webmin installation on CentOS
There are two ways using which we can install Webmin on our CentOS machines
1- Using Webmin repository (YUM)
2- Using RPM package
Let's discuss both methods one by one,
1- Using Webmin repository (YUM)
To install Webmin using Yum, we will first create a repository for the Webmin, Create a file named ' webmin.repo' in ' /etc/yum.repos.d/' with the following repository information,
$ sudo vi /etc/yum.repos.d/webmin.repo
[Webmin]
name=Webmin Distribution Neutral
#baseurl=http://download.webmin.com/download/yum
mirrorlist=http://download.webmin.com/download/yum/mirrorlist
enabled=1
Next we need to install the GPG key with which the packages are signed. To install key, run the following command,
$ wget http://www.webmin.com/jcameron-key.asc
$ sudo rpm --import jcameron-key.asc
Now install the webmin,
$ sudo yum install webmin
All the dependencies will also be installed along with Webmin.
2- Using RPM package
If using RPM package to install Webmin, we firstly have to install some dependencies for Webmin. To install all the required dependencies, run the following
$ sudo yum install perl perl-Net-SSLeay openssl perl-IO-Tty perl-Encode-Detect
Than download the rpm with the following command ,
$ wget http://prdownloads.sourceforge.net/webadmin/webmin-1.850-1.noarch.rpm
& lastly install the downloaded rpm package with the following command,
$ sudo rpm -U webmin-1.850-1.noarch.rpm
This complete our installation of webmin on CentOS. We will now proceed for installation on Ubuntu system.
Webmin installation on Ubuntu
Like CentOS installation, there are two ways using which we can install Webmin on Ubuntu as well,
1- Using Webmin repository (APT)
2- Using DEB package
1- Using Webmin repository (APT)
To install Webmin using the official Webmin repository, open '/etc/apt/sources.list' file,
$ sudo nano /etc/apt/sources.list
& add the following line,
deb http://download.webmin.com/download/repository sarge contrib
Next install the GPG key with which package have been signed ,
$ cd /root
$ wget http://www.webmin.com/jcameron-key.asc
$ sudo apt-key add jcameron-key.asc
We are now ready to install Webmin on our Ubuntu sytems. To install Webmin, run the following commands,
$ sudo apt-get update
$ sudo apt-get install apt-transport-https
$ sudo apt-get install webmin
These commands will install Webmin along with all the dependencies required.
2- Using DEB package
While installing Webmin using the .deb packages, firstly install all the dependencies. Open terminal & execute the following command to install all the dependencies requried by Webmin,
$ sudo apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions python
Once the dependencies have been installed, download the Webmin .deb package using the following command,
$ wget http://prdownloads.sourceforge.net/webadmin/webmin_1.850_all.deb
& than install it,
$ sudo dpkg --install webmin_1.850_all.deb
Starting the service & accessing it
Now after the installation has been complete, we will start the service & enable it at boot time,
$ sudo service webmin start OR sudo systemctl start webmin
$ sudo chkconfig webmin on OR sudo systemctl enable webmin
Once the Webmin is up, we can access it using the Web browser with the following URL,
https://localhost or IP address:10000
Default user name for Webmin is 'root' & password is 'password'. Also we might an SSL warning while accessing the webmin portal for first time as webmin uses a self-signed certificate which gives warning , but we can add exception for it. Once logged in, we can use the Webmin to administer our server with a nice & clean GUI.
Our tutorial is now complete, in our future tutorial we will learn to add modules to Webmin. For now if facing any trouble or have any query , please leave them in the comment box below & we will surely address them.
If you think we have helped you or just want to support us, please consider these :-
Connect to us: Facebook | Twitter | Google Plus
Donate us some of you hard earned money: [paypal-donation]
Linux TechLab is thankful for your continued support.
How to uninstall Webmin?