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)[edit]

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)[edit]

By adding the webmin repository and Jamie Cameron's key it is possible to install & maintain the latest Wemin/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 (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 |apt-key add -;
apt-get update;
apt-get install webmin;)

yum (CentOS/RedHat/Fedora)[edit]

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:

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

zypper (SUSE)[edit]

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 openssl-devel
zypper -n install perl perl-Net-SSLeay perl-Crypt-SSLeay
zypper -n install webmin)

Windows[edit]

Post installation[edit]

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[edit]

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[edit]

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

See also[edit]