Webmin Automated Script for Ubuntu


#!/bin/bash

Updating System
sudo apt-get update

Install Requirements
sudo apt-get install -y perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions python

Updating Repository
echo “deb http://download.webmin.com/download/repository sarge contrib” >> /etc/apt/sources.list
echo “deb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib” >> /etc/apt/sources.list

Install GPG key
cd /root
wget http://www.webmin.com/jcameron-key.asc
apt-key add jcameron-key.asc

Download & Install Webmin
apt-get update
apt-get install -y webmin

Flushing & Saving Iptables

sudo iptables -I INPUT -p tcp –dport 10000 -j ACCEPT

sudo service iptables save

Re-Starting the Service
sudo service webmin status
sudo service webmin restart

Installation is Completed
To Check the WEBMIN http://Ip-address:10000

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s