On setting up the server…
With two more days before I get back to Madrid, and from there go to Manchester, I finally managed to set up the new server just as I wanted it to be.
My first challenge was to find a host service that would allow me to use OpenSuSe or SuSe. I wanted to be able to have OpenSuse because my idea was to use a Mono project and do some Mono based applications that I wanted to have running on the server. I have tried to install the latest Mono implementation in different linux distros (CentOS, Fedora, Ubuntu) and it has always been a headache to do so, or at least to get what I wanted. Because Mono is a Novell project it is easier to install on a *SusSe installation and I am not willing to waste my time with an other system :P
My host service just installs the OS for you which means that I had to do all the dirty work to get everything up and running, as usual the first thing to do was to add all the repositories I needed/wanted:
zypper sa http://download.opensuse.org/distribution/10.2/repo/oss/ oss
zypper sa http://download.opensuse.org/distribution/10.2/repo/non-oss/
non-oss
zypper sa http://download.suse.com/update/10.2/ update
zypper sa http://dl.google.com/linux/rpm/stable/x86_64 google
zypper sa http://packman.mirrors.skynet.be/pub/packman/suse/10.2/ packman
zypper sa http://www.go-mono.com/download-stable/suse-102-i586 mono
zypper sa
http://download.opensuse.org/repositories/GNOME:/Community/openSUSE_10.2/
gnome-community
zypper sa
http://download.opensuse.org/repositories/GNOME:/STABLE/openSUSE_10.2/
gnome-stable
zypper sa
http://download.opensuse.org/repositories/Java:/addon/openSUSE_10.2/ java
After executing all the above, I updated the system with:
zypper -r update
Once I updated the system I just had to install mono, which is very simple using zypper:
zypper in mono-complete
And tried to install the tool I was going to use to manage the server. My first attempt was to use Cpanel. I like Cpanel because I have used it before in an other server I have and I wanted to give it a go on this new one. Well after a number of tries (I think 4 or 5) I gave up. Installing CPanel was not the hardest step, but getting it to work as it should was incredibly hard. I believe the main problem resides on the fact tat the CPanel developers are focused on 3 systems:
- RedHat Enterprise
- CentOS
- BSD
And the leave the rest of us out of the equation… This means that it assumes a number of paths that are not used in all the different distros and after my hard work it clearly does not use the right ones on SuSe… Dammed, I wasted around 4/5 hours of my life.
If you check my Twitter you will see that I was heavily complaining about CPanels’ installation and thankfully Steve pointed me to Webmin (and told me not to spell gym the Spanish way: gim, thanks Steve :D ).Webmin installation on OpenSuse is straigh foward:
wget http://garr.dl.sourceforge.net/sourceforge/webadmin/webmin-1.430-1.noarch.rpm
rpm -ivh webmin*
Once Webmin has been installed it can be accessed through port 10000. Remember that you have to open that port in the Firewall, otherwise you will look as stupid as I did for a couple of minutes :P, I next step is to sort out everything for the virtual hosts etc… For the next day or so I’ll be reading Webmin documentation to get all my domains correctly set with the email addresses etc…