Wednesday, July 19, 2017

Debian: Install Webmin on Debian 9 Stretch

Installing webmin on debian 9 stretch is also the same as installing webmin on debian 8 jessie. If you are using debian jessie, you can check the link here. In this tutorial, we are going to install webmin on APT repository. With this installation,  if we update our system the webmin also update automatically. I encourage new linux user to install all applications in apt repository rather than installing deb files. 

Webmin is one of the most important application in the linux world today. Because of ease of doing configuration and system updates, you can either forget your ssh and scp command and start using web based to configure, update install application in your system. So lets start installing webmin on Debian 9 Stretch. 

1. Modify apt repository in /etc/apt/sources.list and add the codes below. Take note that all of the codes in the image are also important. After inserting the codes, save it to commit the changes to our repository. 

deb http://ftp.debian.org/debian/ stretch main non-free contrib
deb-src http://deb.debian.org/debian/ stretch main non-free contrib
deb http://download.webmin.com/download/repository sarge contrib

deb http://security.debian.org/debian-security stretch/updates main
deb-src http://security.debian.org/debian-security stretch/updates main
deb http://deb.debian.org/debian/ stretch-updates main non-free contrib
deb-src http://deb.debian.org/debian/ stretch-updates main non-free contrib
deb http://ftp.debian.org/debian/ stretch main non-free contrib
deb-src http://deb.debian.org/debian/ stretch main non-free contrib
deb http://kartolo.sby.datautama.net.id/mariadb/repo/10.2/debian stretch main
deb-src http://kartolo.sby.datautama.net.id/mariadb/repo/10.2/debian stretch main
deb http://download.webmin.com/download/repository sarge contrib
~
~
~
~
~
~
~
~
~
~
"/etc/apt/source.list"

2. Fetch and install GPG keys with which the repository is signed with the commands below. The command below states that we are going to install jcameron-key.asc and add the keys to our system. 

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


root@debian:~# wget http://www.webmin.com/jcameron-key.asc
--2017-07-19 11:50:32-- http://www.webmin.com/jcameron-key.asc
Connecting to 10.10.1.78:8080... connected.
Proxy request sent, awaiting response... 200 OK
Length: 1074 (1.OK) [text/plain]
Saving to: 'jcameron-key.asc'
jcameron-key.asc 100%[=================>] 1.05K --.-KB/s in 0s
2017-07-19 11:50:33 (308 MB/s) - 'jcameron-key.asc' saved [1074/1074]
root@debian:~# apt-key add jcameron-key.asc
OK
root@debian:~#

3. Update the system by using the command apt update and you may now be able to install with the command apt install apt-transport-https. Apt-transport-https is a dependency of webmin so we need to install it first before installing webmin.

apt update
apt install apt-transport-https


4. Install webmin by using the command below. Take note that installing webmin relies on ftp.debian.org. If you haven't include it yet, please include it in /etc/apt/sources.list. After entering the command below, Press Y to download the application into our system.

apt install webmin


5. After installing webmin, we can finally test our webmin application by opening our favorite browser and browse the ip address of the server with the port 10000. Take note that if you are using proxy on your host machine, you must disabled it to see the web interface. Please comment below if you have questions and reactions.

https://localhost:10000/