Step 1: Update Ubuntu Package List
1. In the terminal, run the following command to update the package list:
sudo apt update
2. When prompted, enter your administrator password and press Enter.
3. Install the update packages with:
sudo apt upgrade
4. Type Y and press Enter to confirm the update.

5. Install dependency packages to help you manage software repositories by using:
sudo apt install software-properties-common apt-transport-https
6. Type Y and press Enter when prompted to confirm the installation.
Step 2: Enable Webmin Repository
1. Add Webmin's GPG key with:
sudo wget -q http://www.webmin.com/jcameron-key.asc -O- | sudo apt-key add -

2. Manually add the Webmin repository using:
sudo add-apt-repository "deb [arch=amd64] http://download.webmin.com/download/repository sarge contrib"

Step 3: Install Webmin on Ubuntu
1. Start the Webmin installation using:
sudo apt install webmin
2. When prompted, type Y and press Enter to confirm the installation.

3. Once the installation is complete, check the status of the Webmin service:
sudo systemctl status webmin

Another method to confirm the installation is successful is to check the installed version of Webmin:
dpkg -l | grep webmin

Step 4: Configure the Firewall
1. Webmin uses the TCP port 10000 by default. Open this port on your firewall by using:
sudo ufw allow 10000/tcp

2. Reload your firewall for the changes to take effect:
sudo ufw reload

Note: The firewall is disabled on Ubuntu by default. If your system's firewall is disabled, enable it with sudo ufw enable.
3. Check the status of your firewall to confirm the changes:
sudo ufw status

Step 5: Access Webmin on Ubuntu
1. Set the password for the Webmin root user with:
sudo /usr/share/webmin/changepass.pl /etc/webmin root [new password]
Note: Setting up a new password this way only works for existing users. You can't use this method to set up new users.
2. Open your Internet browser and enter the following as a web address using your server's IP:
https://[your server's IP]:10000/
You can use local or remote server's IP address.