Sunday, December 3, 2017

How To Install Webmin on Ubuntu 16.04

-- Form Digital Ocean

We need to add the Webmin repository so that we can easily install and update Webmin using our package manager. We do this by adding the repository to the /etc/apt/sources.list file.

Open the file in your editor:

sudo nano /etc/apt/sources.list

Then add this line to the bottom of the file to add the new repository: 
/etc/apt/sources.list
 
. . . 
deb http://download.webmin.com/download/repository sarge contrib

Save the file and exit the editor.

Next, add the Webmin PGP key so that your system will trust the new repository:

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

Next, update the list of packages to include the Webmin repository:

sudo apt-get update 

Then install Webmin:

sudo apt-get install webmin 

Once the installation finishes, you be presented with the following output:

Output

Webmin install complete. You can now login to https://your_server_ip:10000 as root with your 
root password, or as any user who can use `sudo`.

Please copy down this information, as you will need it for the next step.

If you installed ufw during the prerequisite step, you will need to run the command 

sudo ufw allow 10000 

in order to allow Webmin through the firewall. For extra security, you may want to configure your firewall to only allow access to this port from certain IP ranges.

No comments:

Post a Comment