How to install Webmin in Ubuntu

To install Webmin in Ubuntu

Webmin is a web based configuration tool used for Unix and Linux Operating System. Using Webmin, you can setup and configure all the Operating System internals and also modify services such as DNS, DHCP, Apache, NFS, and Samba etc. This article gives a clear explanation about the installation of Webmin in Ubuntu.


Installation of Webmin

Before the installation of Webmin, use the following command to open the apt/sources.list file and add the below mentioned lines.

root@linuxhelp:~# vim /etc/apt/sources.list

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

Now, download the key for Webmin with the following command.

root@linuxhelp:~# wget http://www.webmin.com/jcameron-key.asc
--2016-11-10 23:37:54--  http://www.webmin.com/jcameron-key.asc
Resolving www.webmin.com (www.webmin.com)... 216.34.181.97
Connecting to www.webmin.com (www.webmin.com)|216.34.181.97|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1320 (1.3K) [text/plain]
Saving to: ‘ jcameron-key.asc’ 

jcameron-key.asc          100%[==================================> ]   1.29K  --.-KB/s    in 0s      

2016-11-10 23:37:54 (10.7 MB/s) - ‘ jcameron-key.asc’  saved [1320/1320]

Once the key is downloaded, add it by invoking the following command.

root@linuxhelp:~# apt-key add jcameron-key.asc
OK

Now use the following command to update the machine.

root@linuxhelp:~# apt-get update
Hit:1 http://security.ubuntu.com/ubuntu xenial-security InRelease
Ign:2 http://webmin.mirror.somersettechsolutions.co.uk/repository sarge InRelease
Hit:3 http://in.archive.ubuntu.com/ubuntu xenial InRelease          
.
.
.
Hit:9 http://download.webmin.com/download/repository sarge Release                                  
Reading package lists... Done

Once the machine is updated, invoke the following command to install the Webmin package.

root@linuxhelp:~# apt-get install webmin
Reading package lists... Done
Building dependency tree       
Reading state information... Done
.
.
.
Webmin install complete. You can now login to https://linuxhelp:10000/
as root with your root password, or as any user who can use sudo
to run commands as root.
Processing triggers for systemd (229-4ubuntu6) ...
Processing triggers for ureadahead (0.100.0-19) ...

After the installation, allow the Webmin port into firewall with the following command.

root@linuxhelp:~# ufw allow 10000
Rules updated
Rules updated (v6)

Once it is done, open the web-browser and enter your server-ip with webmin port number 10000. You' ll be taken to the Login page. Login to Webmin.

That’ s it, Webmin is installed successfully. Enjoy using Webmin to setup and manage services.

FAQ
Q
Free Web Based Control Panel - Webmin 1.791 For Linux?
A
FOLLOW TIS LINK : " https://www.linuxhelp.com/free-web-based-control-panel-webmin/ "
Q
What does the error pam_ck_connector(webmin:session): cannot determine display-device mean?
A
If you see this error in /var/log/auth.log , edit the file /etc/pam.d/webmin and change the line @include common-session to @include common-session-noninteractive . Then run /etc/webmin/restart .
Q
How do I change my Webmin password if I can't log in?
A
Assuming you have installed Webmin in /usr/libexec/Webmin, you could change the password of the admin user to foo by running

/usr/libexec/webmin/changepass.pl /etc/webmin admin foo
Q
How do I run setup.sh?
A
After extracting the Webmin tar file, cd into the Webmin-1.890 directory and type ./setup.sh. Because the root user on many systems does not have the current directory in his path, just typing setup.sh will not work.
Q
Can I run Webmin or Usermin under Apache?
A
Yes, this can be done with some configuration. See this document for details on running Webmin under Apache, or this page for details on running Usermin.
You can also run Webmin under the Zeus webserver in a similar way. See this documentation for instructions.