Since i original posted the basic server setup blog many years ago i have found a much easier and quicker way to get a server setup using Virtualmin.
As my server is hosted in a Data centre they install the base operating system (CentOS 6.x) for me but if you have physical access you can do this yourself.
Once you have the base operating system installed its time to setup everything else.
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 server1.example.com server1 ::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
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 like which database to use Mysql or Postgre (i use Mysql) plus a few other bits.
That’s its you now have a fully working setup with virtualmin/webmin all setup
only things left to do is re-configure postfix as per my other blog post blocking spam and whitelisting and spf then setup munin and finally setup fail2ban.