Sunday, 21 October 2007

Windows v MAC (Part 2)

My honeymoon period with the MAC is officially over as I have used it extensively enough to find out it's ins and outs.

What do I think of it for the everyday?

It's better than Windows in one key area - productivity. Since owning the MAC, all work I have done at home has been infinitely more productive than it ever was using a PC. My MACBook hasn't crashed, frozen, stopped when loading an application. It just works, it's quicker booting and shutting down and applications seem to be more intuitive.

I have used Office 2004 for most of my work and it is - in my opinion - better and easier to use than any version of Office on the PC prior to 2007. My company uses and trains people in Microsoft Office rather than any other solution as it really is a standard - admittedly OpenOffice and NEOOffice it's MAC equivalent are mighty close, and iWork 08 is also very good (Keynote thrashes Powerpoint for effectiveness of presentations - and porting files from one system to another was effortless.

The MACBook keyboard also deserves a special mention, this is outstanding, there are less keys than a Windows keyboard and there are gaps between them, at first sight you think WTF, yet it is actually easier to use and nowhere near as cramped as a PC keyboard.

Managing multiple Windows is also better as hitting F9 expands your desktop and shows you all the windows at once and you can click the one you are after. Again this is far superior to Windows.

I think the biggest thing about using the MAC for me though is that it is like a holiday, I can still go home and be enthusiastic about using the computer. I thought at first it was just because it was different from Windows, yet it turned out to be that I was actually enjoying it because it was better, everything about the MAC is better, except perhaps two things: Games and quantity of applications, the first one I realised I didn't miss at all as since having kids I have been playing consoles more, and liking them more, HALO on XBOX is far better for me on the console than on the PC, same with Half-Life 2 and if I was that desperate I would use Parallels or Crossover and run the PC version. Quantity of applications also isn't an issue really either, no there isn't as much available as with Windows and certainly not as much as Linux, yet the quality is better, so you don't need as much, for example Adium the instant messenger works with every messaging system out there including MSN and AOL. Additionally you can run a lot of Linux applications using Apples X11 interface.

The downsides to the MAC if there are any, are really issues I have with Apple. Just as with Microsoft, Apple links some of it's system in with paid content, this is truthfully less evident with Microsoft but Apple flagrantly try and make you pay roughly $80 a year to have a .Mac account, the reason for this is to allow the iLife applications to publish content seamlessly, however, and perhaps I'm just British and tight, but $80 is just too much, especially when it used to be offered free and without it, it renders iChat inoperable. The other thing is that iTunes, which I personally find a bit weird won't let you convert downloaded music to any other format that the proprietry MP4 format, on Windows and Linux there are ways around this but the MAC is short of free options and I'm not buying an iPod.

Outside of this though the MAC is great even my better half likes them now, can't say much more than that!

Monday, 8 October 2007

Linux,Windows and Setting them up as Mailservers

Recently I have been trying to set up a mail server for my organisations trainees, being a fan of OpenSource software I had to try to do it in Linux. For the uninitiated, this is probably one of the hardest things you can do, only because of the different software and dependencies required and getting each element to integrate. N.B: This whole scenario is much easier if you set up the users on Linux, I - fool that I am - decided on a virtual style setup which makes things immeasurably harder, If you do set them up as per the latter (or run LDAP) you can install Dovecot and away to go.

I decided that for the benefit of our trainees, to use one of the groupware solutions available rather than just Webmail, I settled on E-Groupware after testing several (which I will post about soon).

Ingredients:
One stable machine capable of running the Linux distribution of your choice (more on this later)
Cyrus Imap
MySQL
PHP 5
Postfix
Webmail client
Apache
Webmin
Sharp Stick to repeatedly poke in eye (optional)

How To:

Begin by installing your Linux software on your server, I used Ubuntu just for ease of use and installed the packages as above using apt-get.

N.B: When installing PHP 5 make sure you get the additional PEAR package as this is essential for accessing MySQL using PHP.

If you've ever set up a MailServer on Windows it is usually a one application deal, run setup, follow the prompts and Bingo! your done. Not Linux though - oh no, in Linux land everything has to be infinitely configurable and therefore infinitely harder than is strictly necessary. In Windows you are sheltered from a lot of the things that Linux exposes you to. For example, to send SMTP mail, you at the very base level need a mail transport agent (MTA) - of your choice - in Windows you don't really see this in the same way so it spares you the pain.

I chose Postfix as my MTA as it is powerful and yet easy to configure. Sendmail is set up as default but isn't really as easy as Postfix. Postfix works pretty much straight out of the box, as does MySQL, although you do have to create an administrator user first. PHP was just as straightforward as was Apache.

I know most people probably know this already but Apache makes Linux boxes the best webservers, no, really, IIS is nothing more than a bloated piece of inflexible shite compared to Apache, I used the Virtualhost options and this allowed me to have a subdomain accessible for the mail server (mail.mycompany.com) rather than using www.mywebsite.com/mywebmail, this Apache does effortlessly and is something that is barely implemented in IIS.


After installing the groundwork I then installed Cyrus, as with all the other packages I used either the Synaptic package manager or apt-get, which is why I prefer Debian based distributions as it takes some of the hassle out of installing software in Linux. I configured Cyrus according to the guidelines on the Ubuntu website and soldiered onward.

After setting up the remaining features (MySQL, PHP5) I then installed Webmin. This really is an important feature as it lets you remotely administer your server over an http ssl link, it is extremely comprehensive and via their website you can install an additional plug-in to manage cyrus.

Finally I installed egroupware - I say installed, more unpacked into a suitable folder within Apache - The setup is handled entirely via the setup script and is very nice and polished and ensures any required modules e.g. PHP PEAR are installed. This done it was job complete, then it ran for a few hours and suddenly Cyrus wouldn't add users, no amount of fiddling would work. Tried various troubleshooting techniques, until finally the server started showing signs of a hardware problem, this is still outstanding as due to deadlines the only spare server I could find was a Windows one and I had to install on that. At this point if this happens to you grab the aforementioned sharp stick and repeatedly poke into the eye of your choice.

Setting up a similar setup on Windows is a little easier as you don't have to worry about the MTA, I do recommend however, stay away from the various pre-packed WAMP systems and install each application yourself as this makes it easier in the long run especially installing PEAR on Windows which lacks instructions. I also used hmailserver which is a great freeware mailserver.

So what did I learn from this? Linux is great, and the free software is extremely powerful, no client access licences as with Windows servers, however, it is more complicated than Windows to integrate the various elements, especially Cyrus which can only be described as massive, perhaps others would recommend Courier IMAP.

What it also made me wonder was that given the talent of those in the open source community that no-one has come up with anything to rival Active Directory and Exchange, LDAP is close to Active Directory but lacks simplicity and there is nothing close to Exchange, the web based groupware solutions are generally excellent, but still feel marginally unfinished in certain areas.

If Linux had these features, implemented easily with a group policy style feature it could beat Windows hands down. Which makes it more amazing that no-one from the commercial distributions has done this yet either! Red Hat and SUSE, this means you.