Skip to main content

Server setup - updated and easier

Recently i rented a new server to replace my main server, since i original posted the basic server setup blog i have found a much easier and quicker way to setup everything including webmin and virtualmin.

As my server is hosted in a Data centre they install the base operating system (CentOS 5.x) for me but if you have physical access you can do this yourself, you just need to grab the dvd(s) or cd(s) images mirror list here

Once you have the base operating system installed its time to setup everything.
First i edit "/etc/hosts" and make it look like this

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1               localhost.localdomain localhost
192.168.0.200           server2.example.com server2
::1             localhost6.localdomain6 localhost6

Then i import the GPG keys for software packages

rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY*

Then i update the system

yum update

Then install some packages we will need (some may already be installed)

yum install wget bzip2 unzip zip openssl lynx fileutils ncftp gcc gcc-c++

Next i install Virtualmin GPL using their installer script.

wget http://software.virtualmin.com/gpl/scripts/install.sh
chmod +x install.sh
./install.sh


Because it downloads numerous packages from the Virtualmin website and your Linux distribution's repository, it may take up to 30+ minutes for the install to complete.
You can safely ignore any errors about clamav and spam assassin, for any other check out the Troubleshooting page.

Once it is done, you can login to Webmin at https://yourserver:10000/ to see the Virtualmin user interface.
On your first login to webmin/virtualmin it will walk you through some basic setup options.

That's its you now have a fully working setup with virtualmin/webmin all setup
only things left to do is setup ipv6 then re-configure postfix as per my other blog pages blocking spam and whitelisting and spf then setup munin and finally setup fail2ban.