apt-get update
apt-get upgrade
apt-get install apache2
echo “hostmanager” > /etc/hostname
#you can choose whatever hostname you want#
hostname -F /etc/hostname
cd …
cd etc
nano hosts
IPv4
127.0.0.1 localhost.localdomain localhost
xxx.xxx.xxx.xxx hostmanager.mydomain.com hostmanager
IPv6
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
dpkg-reconfigure tzdata
apt-get install mysql-server
apt-get install php5 libapache2-mod-php5 php5-cli php5-cgi php5-mysql php-pear
/etc/init.d/apache2 restart
nano /etc/hostname
( hostmanager )
root@hostmanager ~ # hostname -f
apt-get install phpmyadmin
apt-get install subversion
apt-get install maven2
apt-get install locate
apt-get install ifstat
apt-get install sysstat
( mpstat )
apt-get install bind9
apt-get install dnsutils
apt-get update
apt-get upgrade
cd …
cd etc
cd apt
nano sources.list
#you can uncheck the following if you want to use them lets say for installing sun java#
(deb http://archive.canonical.com/ubuntu lucid partner)
(deb-src http://archive.canonical.com/ubuntu lucid partner)
apt-get update
apt-get upgrade
apt-get install sun-java6-jdk
root@hostmanager ~ # java -version
update-alternatives --config java
(There are 2 choices for the alternative java (providing /usr/bin/java).
Selection Path Priority Status
0 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 auto mode
1 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 manual mode
- 2 /usr/lib/jvm/java-6-sun/jre/bin/java 63 manual mode
Press enter to keep the current choice[*], or type selection number:
( i chosed #2# because i needed sun java)
#Webalizer#
wget ftp://ftp.mrunix.net/pub/webalizer/webalizer-2.23-04-src.tgz
tar xzfv webalizer-2.23-04-src.tgz
apt-get update
apt-get upgrade
INSTALLING Virtualmin#
the following two lines install the depreciated libmd5 that is needed for Virtualmin and webmin#
wget http://ftp.debian.org/pool/main/libm/libmd5-perl/libmd5-perl_2.03-1_all.deb
dpkg -i libmd5-perl_2.03-1_all.deb
#continuing with Virtualmin GPL installation#
aptitude -y install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl libmd5-perl apt-show-versions libapt-pkg-perl
wget http://software.virtualmin.com/gpl/scripts/install.sh
/bin/sh install.sh
Please wait a little for Virtualmin to be installed (it may take sometime-don’t be dissapointed)
Go to you browser and type https://mydomain.com:10000/
Log in as root
put your root password
Continue to configure Virtualmin GPL
#Below is a print out of the installation#
login as: root
root@xxx.xxx.xxx.xxx’s password:
Linux hostmanager 2.6.32-29-generic-pae #58-Ubuntu SMP Fri Feb 11 19:15:25 UTC 2011 i686 GNU/Linux
Ubuntu 10.04.2 LTS
Welcome to Ubuntu!
- Documentation: https://help.ubuntu.com/
Last login: Sat Apr 9 13:10:42 2011 from xx.xxx.xx.xxx.dsl.dyn.something.hh
root@hostmanager ~ # wget http://software.virtualmin.com/gpl/scripts/install.sh
–2011-04-09 13:22:21-- http://software.virtualmin.com/gpl/scripts/install.sh
Resolving software.virtualmin.com… 67.228.198.99
Connecting to software.virtualmin.com|67.228.198.99|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 44010 (43K) [application/x-sh]
Saving to: `install.sh’
100%[======================================>] 44,010 80.6K/s in 0.5s
2011-04-09 13:22:22 (80.6 KB/s) - `install.sh’ saved [44010/44010]
root@hostmanager ~ # /bin/sh install.sh
Welcome to the Virtualmin GPL installer, version 1.0.5
WARNING:
The installation is quite stable and functional when run on a freshly
installed supported Operating System, but upgrades from existing .wbm-
based systems, or systems that already have Apache VirtualHost
directives or mail users, will very likely run into numerous problems.
Please read the Virtualmin Administrators Guide before proceeding if
your system is not a freshly installed and supported OS.
This script is not intended to update your system! It should only be
used to install Virtualmin, on a supported OS. If you have previously
installed Virtualmin via this script or the GPL version of this script,
upgrades and updates should be handled within Virtualmin itself. Once
Virtualmin is installed, you never need to run this script again.
The systems currently supported by install.sh are:
CentOS 4 and 5 on i386 and x86_64
Debian 5.0 and 6.0 on i386 and amd64
Ubuntu 8.04 LTS and 10.04 LTS on i386 and amd64
If your OS is not listed above, this script will fail. More details
about the systems supported by the script can be found here:
http://www.virtualmin.com/os-support.html
Continue? (y/n) y
Checking for HTTP client…found /usr/bin/wget -nv
Checking for perl…found /usr/bin/perl
2011-04-09 13:22:31 URL:http://software.virtualmin.com/lib/spinner [579/579] -> “spinner” [1]
Loading log4sh logging library…
2011-04-09 13:22:32 URL:http://software.virtualmin.com/lib/log4sh [21395/21395] -> “log4sh” [1]
INFO - Started installation log in /root/virtualmin-install.log
INFO - Checking for fully qualified hostname…
INFO - Hostname OK: fully qualified as hostmanager.e-learnproject.com
INFO - Installing serial number and license key into /etc/virtualmin-license
INFO - Loading OS selection library…
2011-04-09 13:22:33 URL:http://software.virtualmin.com/lib/oschooser.pl [4461/4461] -> “oschooser.pl” [1]
INFO - Download of http://software.virtualmin.com/lib/oschooser.pl Succeeded.
INFO - Loading OS list…
2011-04-09 13:22:33 URL:http://software.virtualmin.com/lib/os_list.txt [3048/3048] -> “os_list.txt” [1]
INFO - Download of http://software.virtualmin.com/lib/os_list.txt Succeeded.
INFO - Operating system name: Ubuntu Linux
INFO - Operating system version: 10.04.2
INFO - Configuring package manager for Ubuntu Linux 10.04.2…
INFO - Enabling universe repositories, if not already available…
INFO - Disabling cdrom repositories…
Hit http://mirror.hetzner.de lucid Release.gpg
Hit http://mirror.hetzner.de lucid-updates Release.gpg
Hit http://mirror.hetzner.de lucid-security Release.gpg
Hit http://mirror.hetzner.de lucid Release
Hit http://mirror.hetzner.de lucid-updates Release
Hit http://mirror.hetzner.de lucid-security Release
Hit http://mirror.hetzner.de lucid/main Packages
Hit http://mirror.hetzner.de lucid/restricted Packages
Hit http://mirror.hetzner.de lucid/universe Packages
Hit http://mirror.hetzner.de lucid/multiverse Packages
Hit http://mirror.hetzner.de lucid-updates/main Packages
Hit http://mirror.hetzner.de lucid-updates/restricted Packages
Hit http://mirror.hetzner.de lucid-updates/universe Packages
Hit http://mirror.hetzner.de lucid-updates/multiverse Packages
Hit http://archive.canonical.com lucid Release.gpg
Hit http://mirror.hetzner.de lucid-security/main Packages
Hit http://security.ubuntu.com lucid-security Release.gpg
Hit http://mirror.hetzner.de lucid-security/restricted Packages
Hit http://mirror.hetzner.de lucid-security/universe Packages
Hit http://mirror.hetzner.de lucid-security/multiverse Packages
Hit http://archive.canonical.com lucid Release
Hit http://security.ubuntu.com lucid-security Release
Hit http://archive.canonical.com lucid/partner Packages
Hit http://security.ubuntu.com lucid-security/main Packages
Hit http://archive.canonical.com lucid/partner Sources
Hit http://security.ubuntu.com lucid-security/restricted Packages
Hit http://security.ubuntu.com lucid-security/main Sources
Hit http://security.ubuntu.com lucid-security/restricted Sources
Hit http://security.ubuntu.com lucid-security/universe Packages
Hit http://security.ubuntu.com lucid-security/universe Sources
Hit http://security.ubuntu.com lucid-security/multiverse Packages
Hit http://security.ubuntu.com lucid-security/multiverse Sources
Hit http://de.archive.ubuntu.com lucid Release.gpg
Hit http://de.archive.ubuntu.com lucid-updates Release.gpg
Hit http://de.archive.ubuntu.com lucid Release
Hit http://de.archive.ubuntu.com lucid-updates Release
Hit http://de.archive.ubuntu.com lucid/main Packages
Hit http://de.archive.ubuntu.com lucid/restricted Packages
Hit http://de.archive.ubuntu.com lucid/main Sources
Hit http://de.archive.ubuntu.com lucid/restricted Sources
Hit http://de.archive.ubuntu.com lucid/universe Packages
Hit http://de.archive.ubuntu.com lucid/universe Sources
Hit http://de.archive.ubuntu.com lucid/multiverse Packages
Hit http://de.archive.ubuntu.com lucid/multiverse Sources
Hit http://de.archive.ubuntu.com lucid-updates/main Packages
Hit http://de.archive.ubuntu.com lucid-updates/restricted Packages
Hit http://de.archive.ubuntu.com lucid-updates/main Sources
Hit http://de.archive.ubuntu.com lucid-updates/restricted Sources
Hit http://de.archive.ubuntu.com lucid-updates/universe Packages
Hit http://de.archive.ubuntu.com lucid-updates/universe Sources
Hit http://de.archive.ubuntu.com lucid-updates/multiverse Packages
Hit http://de.archive.ubuntu.com lucid-updates/multiverse Sources
Reading package lists… Done
INFO - Cleaning up apt headers and packages, so we can start fresh…
INFO -
2011-04-09 13:22:35 URL:http://software.virtualmin.com/lib/apt.conf.noninteractive [243/243] -> “apt.conf.noninteractive” [1]
INFO - Download of http://software.virtualmin.com/lib/apt.conf.noninteractive Succeeded.
INFO - Installing Webmin and Virtualmin package signing keys…
2011-04-09 13:22:35 URL:http://software.virtualmin.com/lib/RPM-GPG-KEY-virtualmin [1690/1690] -> “RPM-GPG-KEY-virtualmin” [1]
INFO - Download of http://software.virtualmin.com/lib/RPM-GPG-KEY-virtualmin Succeeded.
2011-04-09 13:22:35 URL:http://software.virtualmin.com/lib/RPM-GPG-KEY-webmin [1320/1320] -> “RPM-GPG-KEY-webmin” [1]
INFO - Download of http://software.virtualmin.com/lib/RPM-GPG-KEY-webmin Succeeded.
INFO - OK
INFO - OK
INFO - Hit
INFO - Removing Debian standard Webmin package, if they exist…
INFO - Removing Debian apache packages…
INFO - Installing dependencies using command: /usr/bin/apt-get --config-file apt.conf.noninteractive -y --force-yes install postfix postfix-pcre webmin usermin ruby libapache2-mod-ruby libxml-simple-perl libcrypt-ssleay-perl unzip zip quota
…in progress, please wait…
…
INFO - /usr/bin/apt-get --config-file apt.conf.noninteractive -y --force-yes install postfix postfix-pcre webmin usermin ruby libapache2-mod-ruby libxml-simple-perl libcrypt-ssleay-perl unzip zip quota: Succeeded.
INFO - Succeeded.
INFO - Installing Virtualmin and all related packages now using the command:
INFO - /usr/bin/apt-get --config-file apt.conf.noninteractive -y --force-yes install virtualmin-base
…in progress, please wait…
Extracting templates from packages: 100%
Extracting templates from packages: 100%
…
INFO - /usr/bin/apt-get --config-file apt.conf.noninteractive -y --force-yes install virtualmin-base: Succeeded.
INFO - Checking for updates to Virtualmin-related packages…
…in progress, please wait…
.
INFO - /usr/bin/apt-get --config-file apt.conf.noninteractive -y --force-yes install postfix postfix-pcre webmin usermin ruby libapache2-mod-ruby libxml-simple-perl libcrypt-ssleay-perl unzip zip quota: Succeeded.
INFO - Updating SpamAssassin rules…
INFO - Rule updates done
root@hostmanager ~ #
If you think there are any mistakes or better ways, please reply so we can all benefit.
Hope you will enjoy it!!!