How to install Virtualmin in Linux
Last Updated :
30 Dec, 2022
In this article, we will learn to install Virtualmin on Linux Operating System. Virtualmin is based on Webmin, a popular web server management user interface for Linux. It is a domain hosting and website control panel that enables the creation and management of multiple domains and simplifies automation and tasks. It is a cPanel and Plesk replacement. Let's look at how we can install this on our Linux machine using the command line interface terminal.
Note: To install Webmin, follow this tutorial: Webmin Installation
Installing Virtualmin on Linux OS using Terminal
To install Virtualmin in Linux, follow the steps below:
Step 1: Run the below command in the terminal to first install all updates on your Linux OS:
sudo apt update -y && sudo apt upgrade -y
Step 2: Install the wget package in Linux OS which will be used to download Virtualmin from the web using the below command:
sudo apt install wget
Step 3: Use the below command to download the Virtualmin installation script:
wget https://software.virtualmin.com/gpl/scripts/install.sh
Step 4: Set the fully qualified domain name of the server like this:
sudo hostnamectl set-hostname <domainname>
Step 5: Change the access mode of the file and make it executable using the below command:
chmod a+x install.sh
Step 6: Once you're done with all the above-given commands, execute the below-given command to install Virtualmin and all of its dependencies:
sudo ./install.sh
The above command will prompt the user to a confirming message about the changes that will take place in the Linux machine during installation. To confirm that we have to press y and continue with the installation process. Thereafter the script takes some time to complete as the installation is carried out in 3 phases.
Once the installation is done, we can set up the root password to run the web UI.
Configuring Webmin’s Root Password
Virtualmin is a Webmin extension that uses the system root user and password for web interface login. Let's configure Webmin for a web interface. This procedure will not alter the system's root password.
Step 1: Use the command given below to set up the root password for Webmin. Put the password into the following command:
sudo /usr/share/webmin/changepass.pl /etc/webmin root <Password>
Step 2: Now, restart the Webmin service to ensure that the changes get reflected using the below command:
sudo systemctl restart webmin
Step 3: Let's install the ufw which is a firewall configuration tool in Ubuntu using the below command:
sudo apt install ufw
Step 4: Using the ufw tool, allow access to Virtualmin through a firewall using the following command:
sudo ufw allow 10000
Step 5: Now, we are ready to access the Virtualmin and the Webmin web interface through our browser. Go to port 10000 with the below-given domain name:
http://<domainname>:10000
This would open a login authentication page:
Step 6: Perform login by using credentials for the root user and by using the password which was set up in step 8. The user interface for Webmin will open up after authentication. It will look something like this:
Similar Reads
How to Install VirtualBox in Linux? Virtual Machine abstracts the hardware of our personal computers, such as CPU, disk drives, memory, NIC (Network Interface Card), etc., into many different execution environments as per our requirements, hence giving us a feeling that each execution environment is a single computer. How to Install V
4 min read
How to Install VisualVM in Linux When operating on a Java Virtual Machine, the sophisticated tool VisualVM offers a visual interface for viewing in-depth details about local and remote Java applications (JVM). To see the program within the JVM, it makes use of and integrates some of the command-line tools that the JDK offers; this
3 min read
How to Install Vivaldi in Linux? Vivaldi is a Customizable web browser that lets you customize everything in that browser. It is a good customizable, freeware, cross-platform web browser that was developed by Vivaldi technologies. It is based basically on Chromium. This browser was initially targeted towards technically-inclined us
3 min read
How to install CSI Linux in VirtualBox? What if there is a multi-purpose operating system designed especially for cyber investigators, yes you read it right and the answer to that question is, yes there is one such operating system known as CSI Linux. It is an open-source 'theme park' for the cyber security industry enthusiast. It has ton
3 min read
How to Install Arch Linux in VirtualBox? Installing Arch Linux on a virtual machine is an excellent way to experience this powerful and flexible Linux distribution without affecting your main system. If you're looking to install Arch Linux in VirtualBox, this guide will take you through the process step-by-step. Arch Linux is known for its
7 min read