So I’m now using my second laptop as a Linux dev server. Ubuntu is what all the cool kids are using so I thought I’d give it a go. Wait a minute, oh crap, I have to make a choice between Ubuntu Desktop Edition and Ubuntu Server Edition. Well I want to use it as a LAMP server but at the same time I want a desktop and all that comes with it. I figured I’d be able to download the Desktop Edition and sort it out later. I am happy to report I was correct, but I learned a little on the way. Here’s how you do it.

First off I downloaded and installed Ubuntu Desktop Edition. That went very smoothly, however I was a little concerned that although I created a user account during installation I wasn’t asked to specify a root password. All became clear after I discovered that they use sudo instead - in fact there is actually no root account by default.

This is also the first time I’ve used a Debian based distribution. Only now can I see why people have been banging on about apt-get and how slick it is.

sudo apt-get install apache2

As simple as that. Done. Apache 2 is now installed and ready to use. Amazing.

sudo apt-get install php5
sudo /etc/init.d/apache2 restart

Same for php5. Wow.

sudo apt-get install mysql-server
sudo apt-get install libapache2-mod-auth-mysql
sudo apt-get install php5-mysql
sudo apt-get install phpmyadmin

You get the picture…

I just had to edit php.ini to enable the extension.

gksudo gedit /etc/php5/apache2/php.ini
extension=mysql.so

Restart Apache again and I’m done.

My gob is still smacked.

I’m still adjusting to this whole no root account business, but at first glance Ubuntu gets the thumbs up from me.

See my follow-up post here.