Installation - before 2.00

From Webmin Documentation
Jump to: navigation, search

Webmin is easy to install on most systems. Just select your distribution, and follow the 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 (Debian/Ubuntu/Mint)

sudo apt install curl
curl -o setup-repos.sh https://raw.githubusercontent.com/webmin/webmin/master/setup-repos.sh
sudo sh setup-repos.sh
sudo apt install --install-recommends webmin

yum (CentOS/RedHat/Fedora)

You can add the Webmin repository (webmin-repo) and use Jamie Cameron's key to install and maintain the latest version of Webmin/Usermin. The commands below add the Webmin repository and the corresponding GPG key to your system and install the latest version of Webmin. Yum will resolve all dependencies.

Just input or copy and paste the 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)

CentOS 9 stream

(echo "[Webmin]
name=Webmin Distribution Neutral
baseurl=http://download.webmin.com/download/yum
enabled=1" >/etc/yum.repos.d/webmin.repo;
rpm --import https://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)

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 input or copy and paste the text below and hit Enter/Return:

(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 Webmin is installed and runing, you can access Webmin via the IP or web address you supplied or were given by the system. Specify port 10000.

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 the Linux Firewall allows port 10000.

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

Use the commands above to make the firewall rules look like this:

# 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