To install Webmin on Ubuntu and run in Azure/AWS/GCP, the best way is to deploy the template from the marketplace. It setups Ubuntu and automatically installs and fully configures Webmin for you. Click on the links below to deploy to your preferred cloud environment.
Setup Webmin on Ubuntu in AWS
Setup Webmin on Ubuntu in GCP
Once the VM has booted up, you can access the Webmin portal via the following URLs using the public or private IPs of your VM:
Login using the root user and password.
Create a new root user account
To create a root user and password. Open up your terminal and run the following commands:
adduser command to add a new user to your system.
Be sure to replace username with the user that you want to create.
sudo adduser username
Set and confirm the new user’s password at the prompt. A strong password is highly recommended!
Set password prompts
Enter new UNIX password:
Retype new UNIX password:
password updated successfully
Follow the prompts to set the new user’s information. It is fine to accept the defaults to leave all of this information blank.
User information prompts:
Changing the user information for username
Enter the new value, or press ENTER for the default
Full Name :
Room Number :
Work Phone :
Home Phone :
Is the information correct? [Y/n]
usermod command to add the user to the
sudo usermod -aG sudo username
By default, on Ubuntu, members of the
sudo group have sudo privileges.
You can now login to Webmin URL using the new account.
Support / Documentation
Refer to Webmin documentation on using Webmin on Ubuntu: https://doxfer.webmin.com/Webmin/Main_Page
Webmin Firewall Ports
If you have a firewall on your network/cloud infrastructure or Network Security Group in Azure/AWS/GCP you will need to make sure the following ports are open:
To setup AWS firewall rules refer to – AWS Security Groups
To setup Azure firewall rules refer to – Azure Network Security Groups
To setup Google GCP firewall rules refer to – Creating GCP Firewalls