Webmin is a web administration tool to help you take control of your server settings and monitoring using secure web interface. GPL licence.
Go to Webmin.com downloads page: http://webmin.com/deb.html and look for link to recent version of Webmin.
$ wget http://prdownloads.sourceforge.net/webadmin/webmin_1.630_all.deb
Install libraries needed for dependencies
$sudo apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions python
$sudo dpkg --install webmin_1.630_all.deb
If you get any complaints of errors, try fixing it with
$sudo apt-get -f install, worked in my case.
After your Webmin is successfully installed, you will see following message in the terminal.Webmin install complete. You can now login to
https://your.ip.address.number:10000/ as root with your root password, or as any user who can use sudo to run commands as root.
Well, on your EC2 instance, your.ip.address.number is for example your assigned elastic public IP, you have to login to AWC console and add a Custom TCP rule for inbound port 10000 to 0.0.0.0./0, to make your Webmin accessible from internet.
As EC2 default has no root / sudo user password, because you are encouraged to use Key Pair, to log into Webmin, you should create a new user name webmin and add him to sudo group, create a password for this user and then you are ready to login to Webmin.
$ sudo useradd -g sudo webmin
$ sudo passwd webmin
Use SSL, it means add https instead of http before your Elastic IP or domain name.
Unless you own and have already installed trusted SSL certificate on your webserver, you will be first asked to add an security exception in your browser, your certificate will be marked as not trusted, it is OK, just accept it or buy a trusted one, this one is for free.
To log into the Webmin, use username: webmin with password you have chosen above, that’s it.