Webmin

Install Webmin on Ubuntu 2x.04 - Step-by-Step

Step 1: Update Ubuntu Package List

1. In the terminal, run the following command to update the package list:

sudo apt update

2. When prompted, enter your administrator password and press Enter.

3. Install the update packages with:

sudo apt upgrade

4. Type Y and press Enter to confirm the update.

5. Install dependency packages to help you manage software repositories by using:

sudo apt install software-properties-common apt-transport-https

6. Type Y and press Enter when prompted to confirm the installation.


Step 2: Enable Webmin Repository

1. Add Webmin's GPG key with:

sudo wget -q http://www.webmin.com/jcameron-key.asc -O- | sudo apt-key add -

2. Manually add the Webmin repository using:

sudo add-apt-repository "deb [arch=amd64] http://download.webmin.com/download/repository sarge contrib"


Step 3: Install Webmin on Ubuntu

1. Start the Webmin installation using:

sudo apt install webmin

2. When prompted, type Y and press Enter to confirm the installation.

3. Once the installation is complete, check the status of the Webmin service:

sudo systemctl status webmin

Another method to confirm the installation is successful is to check the installed version of Webmin:

dpkg -l | grep webmin


Step 4: Configure the Firewall

1. Webmin uses the TCP port 10000 by default. Open this port on your firewall by using:

sudo ufw allow 10000/tcp

2. Reload your firewall for the changes to take effect:

sudo ufw reload


https://your_domain:10000 

Install Webmin on Ubuntu, Debian & LinuxMint

Step 1: Add APT Repository

To install or update webmin in Ubuntu systems using APT, Edit /etc/apt/sources.list file on your system and add the following lines at end of file

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

Step 2: Install GPG Key

Now we need to import GPG key by which above added repository is singed using following command.

$ wget http://www.webmin.com/jcameron-key.asc $ sudo apt-key add jcameron-key.asc

Step 3: Install Webmin

Let’s use the following command to install webmin in our system. Webmin is by default installed in /usr/share/webmin.

$ sudo apt-get update $ sudo apt-get install webmin

Step 4: Access Webmin

Webmin by default run on port 10000, we can simply access webmin by accessing our server on port 10000 in web browser. It will ask for user credentials. Use your system user or root login with password to access webmin. To access webmin remotely, replace localhost with your system’s IP address or hostname.

 http://localhost:10000/

Install Webmin On Ubuntu 14.04 / 15.04 and 16.04 LTS using official repository

Add the webmin official repository:

Edit file /etc/apt/sources.list,

sudo vi /etc/apt/sources.list

Add the following lines:

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

Add the GPG key:

sudo wget http://www.webmin.com/jcameron-key.asc sudo apt-key add jcameron-key.asc

Update the sources list:

sudo apt-get update

Install webmin using the following command:

sudo apt-get install webmin

Allow the webmin default port “10000” via firewall, if you want to access the webmin console from a remote system.

sudo ufw allow 10000

Access Webmin console

Open up your browser and navigate to the URL https://ip-address:10000/. The following screen should appear. Enter the user name and password to log in to webmin console.

                         ----------------------------X-------------------------------------------

-----------WEBmin--------------------------

root@worldcm:~# apt-get -y install apt-show-versions libapt-pkg-perl libauthen-pam-perl libio-pty-perl libnet-ssleay-perl

[2] Install Webmin.

root@worldcm:~# curl -L -O http://www.webmin.com/download/deb/webmin-current.deb 

root@worldcm:~# dpkg -i webmin-current.deb 

Selecting previously unselected package webmin.

(Reading database ... 115807 files and directories currently installed.)

Preparing to unpack webmin-current.deb ...

Unpacking webmin (1.780) ...

Setting up webmin (1.780) ...

Webmin install complete. You can now login to https://mail.worldcm.net:10000/

as root with your root password, or as any user who can use sudo

to run commands as root.

Processing triggers for ureadahead (0.100.0-16) ...

ureadahead will be reprofiled on next reboot

root@worldcm:~# vi /etc/webmin/miniserv.conf

# add follows to the end (IP addess you allow to access)

allow=127.0.0.1 10.0.0.0/24

root@worldcm:~# /etc/init.d/webmin restart 

-------USERmin-----------------

root@worldcm:~# apt-get -y install apt-show-versions libapt-pkg-perl libauthen-pam-perl libio-pty-perl libnet-ssleay-perl

[2] Install Usermin.

root@worldcm:~# curl -L -O http://www.webmin.com/download/deb/usermin-current.deb 

root@worldcm:~# dpkg -i usermin-current.deb 

Selecting previously unselected package usermin.

(Reading database ... 141844 files and directories currently installed.)

Preparing to unpack usermin-current.deb ...

Unpacking usermin (1.690) ...

Setting up usermin (1.690) ...

Usermin install complete. You can now login to https://mail.worldcm.net:20000/

as any user on the system.

Processing triggers for ureadahead (0.100.0-16) ...

root@worldcm:~# vi /etc/usermin/miniserv.conf

# add follows to the end (IP addess you allow to access)

allow=127.0.0.1 10.0.0.0/24

# prohibit root login

denyusers=root

root@worldcm:~# /etc/init.d/usermin restart 

----------------