How to install Webmin

This article has the different ways to install Webmin (note: this only contains Webmin, not Virtualmin).

YUM (RHEL-based)

(echo "[Webmin]
name=Webmin Distribution Neutral
gpgkey=" >/etc/yum.repos.d/webmin.repo;
yum -y install webmin)

APT (Debian/Ubuntu)

On Debian, make sure wget is installed first.

sudo sh -c 'echo "deb buster main non-free" > /etc/apt/sources.list.d/nonfree.list'
sudo apt update
sudo apt install wget

Once wget is installed or on Ubuntu/Mint, you can then run the following:

wget -qO - | sudo apt-key add -
sudo sh -c 'echo "deb sarge contrib" > /etc/apt/sources.list.d/webmin.list'
sudo apt update
sudo apt install webmin

Post installation

Make sure port 10000 is opened in your system firewall and then navigate to https://<your-hostname-or-IP>:10000 and then login with your server's root user/pass and complete the setup.