Techy Findings

Just another Geek trying to be special

Posts tagged webmin

7 notes

Webmin installation script for Ubuntu 11.10

Ok, so its not rocket science to install webmin on Ubuntu, however as I spend a reasonable amount of time building up servers to try new applications or test particular versions of applications that I already use, I find I spend a fair amount of time repeating the same boring tasks; one of them being installing Webmin.

To use this script sudo in root using

sudo su

Make sure the script has the execute permision flag set you can simply ‘cd’ to the directory where you copied the script and type:

chmod +x webmin_install.sh

run the script by typing

./webmin_install.sh

This script will install the latest version of webmin on your machine.

Hmm… I cannot see how to attach the script file to this post, so instead I have copied the contents below, the details above assume you copy the script below into a file called webmin_install.sh

#!/bin/bash
#
# webmin install


# update system

echo ‘###############’
echo ‘update system’
echo ‘###############’
apt-get update

# install requirements
echo ‘###############’
echo ‘install requirements’
echo ‘###############’

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

#update repo
echo ‘###############’
echo ‘   Repo setup  ‘
echo ‘###############’

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
echo ‘###############’
echo ‘  Install GPG  ‘
echo ‘###############’
cd /root
wget http://www.webmin.com/jcameron-key.asc
apt-key add jcameron-key.asc

#Download and Install webmin
echo ‘###############’
echo ‘Install Webmin ‘
echo ‘###############’
apt-get update
apt-get install -y webmin


Filed under ubuntu webmin install script bash