Installation

From Webmin Documentation
Jump to: navigation, search

Webmin is easy to install on most systems, just select your distribution and follow instructions.

pkg (FreeBSD)

Installation of Webmin on FreeBSD is simple using the pkg system. This should be done as a root user and will also work on FreeNAS inside of a Jail. If installing in a FreeNAS jail use passwd to set a root password before installation. This should work on any FreeBSD based system using pkg.

As root run:

pkg update
pkg install webmin
/usr/local/lib/webmin/setup.sh
echo "webmin_enable="YES"" >> /etc/rc.conf
/usr/local/etc/rc.d/webmin start

apt-get (Debian/Ubuntu/Mint)

By adding the webmin repository and Jamie Cameron's key it is possible to install & maintain the latest Webmin/Usermin versions.

Just Cut&Paste the entire text below and hit enter. This will install the latest Webmin version by adding the webmin-repo and corresponding key as well as installing necessary packages:

sudo sh -c 'echo "deb http://download.webmin.com/download/repository sarge contrib" > /etc/apt/sources.list.d/webmin.list'
wget -qO - http://www.webmin.com/jcameron-key.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get install webmin

yum (CentOS/RedHat/Fedora)

By adding the Webmin repository and Jamie Cameron's key, it is possible to install & maintain the latest Webmin/Usermin versions.

The following will install the latest Webmin version by adding the webmin-repo and corresponding GPG key. Yum will resolve all the necessary dependancies.

Just Cut&Paste the entire text below and hit enter/return:

(echo "[Webmin]
name=Webmin Distribution Neutral
baseurl=http://download.webmin.com/download/yum
enabled=1
gpgcheck=1
gpgkey=http://www.webmin.com/jcameron-key.asc" >/etc/yum.repos.d/webmin.repo;
yum -y install webmin)

zypper (SUSE)

Very similar to the yum commands. You can add the Webmin repository here, too, and the command to import Jamie Cameron's key is the same. Just Cut&Paste the entire text below and hit enter.

(echo "[Webmin]
name=Webmin Distribution Neutral
baseurl=http://download.webmin.com/download/yum
enabled=1" >/etc/zypp/repos.d/webmin.repo;
rpm --import http://www.webmin.com/jcameron-key.asc
zypper -n install openssl libopenssl-devel
zypper -n install perl perl-Net-SSLeay perl-Crypt-SSLeay
zypper -n install webmin)

At least in openSUSE 13.2 and from SLES 11 on the development package for openssl is named libopenssl-devel. In older versions this may still be named openssl-devel.

Windows

Post installation

Once started you can access webmin at the ip or web address you supplied or were given by the system at the port.

Example:

https://192.168.1.100:10000/

If the webmin server doesn't respond, you might need to adjust firewall settings to allow port 10000

IPTables

Make sure that the Linux Firewall does allow port 10000.

iptables-save > /tmp/tabsav
vi /tmp/tabsav
iptables-restore < /tmp/tabsav

Use the commands above to make the firewall rules look like below

# Generated by iptables-save v1.4.7 on Thu Sep 26 00:02:49 2013
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [3044:1198306]
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 10000 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
COMMIT
# Completed on Thu Sep 26 00:02:49 2013

Firewalld

firewall-cmd --zone=public --add-port=10000/tcp --permanent
firewall-cmd --reload

See also