I have been a fan of Ubuntu for a long time and their server addition is excellent. Today I am going to show you how to set-up your own Ubuntu Server and get it ready for whatever you plan on using it for. Once you have completed these steps you can move onto building an Apache server, or a Version Control Server and even a Mail server.

Step 1

Boot up your pc/server/virtual machine with the ISO file you downloaded earlier. I will not be covering how to burn the image to disc or flash drive. Make sure you have told the BIOS to boot from CD or USB. Now boot up your machine.

Step 2

As soon as the disc boots up you will have to choose the language for the installer. Go ahead and select the language you want.

Step 3

You will be presented with a few options but the one you need is Install Ubuntu Server. Go ahead and hit enter.

Step 4

Choose your main language

Step 5

Choose your region

Step 6

Select No for Detect keyboard layout. You can choose yes and follow the on screen instructions to automatically detect your keyboard layout. If you do this then skip ahead to step 9.

Step 7

Choose keyboard layout

Step 8

Choose local keyboard layout

Step 9

Enter the hostname for this server – A hostname is a name assigned to a device on a network and is used to identify it in various forms, like DNS for example. This will save you having to use the IP address all the time.

Step 10

Select yes if the time zone is correct.

Step 11

I choose to use the entire disk, but if you know what you are doing with Logical Volume Management and Encryption then carry on.

Step 12

Select the hard disk you wish to format. You may have multiple drives if using a physical machine so make sure you select the correct drive.

Step 13

Confirm and write the changes to disk. be warned, this is the actual part where the drive gets formatted so make sure you chose the right disk in the previous step. If not, then just go back and check.

Step 14

Now sit back for a few minutes while the disk is formatted and the base system gets installed.

Step 15

Enter your full name – I usually use a nickname here but you can type your full name in if you wish.

Step 16

Enter your password twice to confirm it.

Step 17

Choose whether you want to encrypt your home folders. For security it is usually a good idea.

Step 18

Set up your proxy information. Usually you will not be behind a proxy so just hit enter without putting any information in. If you are behind a proxy then make sure you enter the correct details. The system will configure apt and install the software.

Step 19

I choose to install all security updates automatically, saves me having to remember.

Step 20

In the initial software selection you only need SSH at the moment. Press the spacebar to tick the box next to OpenSSH Server, then press tab to jump down to continue and hit enter. The boot loader will now install. When asked, choose yes to install GRUB into the master boot record.

Step 21

The Grub boot loader will continue to install and when it is finished you are all done. If you are on a physical machine then remember to take out the CD or flash drive and hit enter to reboot. VM’s need not take the drive out, the VM will sort it out for you.

Once the server reboots and you have logged back in you will need to update it so you have the current versions of all the installed software.

sudo apt-get update && sudo apt-get upgrade -y

This command will update the system then grab all the available updates and install them. The -y tag just tells the terminal to say yes when asked if it is OK to go ahead and install the updates.

It is likely that the update came with a new kernel image so you will have to reboot and log back in.

sudo reboot

Now you are logged back in you need to enable the root account. Once you are finished with the root account you will disable it again. Type the following to enable to root account and give it a password.

sudo passwd root

You will be asked for your sudo password (that’s the password for your user account), then you will enter the new root password twice.

Now for the network, you are going to give the server a static IP address so it is easier to log into via SSH and Git later on.

sudo nano /etc/network/interfaces

Enter your password if it asks. The interfaces file will look similar to this:

The main network adapter is eth0, so that is the only one we be configuring.
You need to make this file look like the following. Make sure you remember to use your own network information in place of what I have written.

To save the file once you are finished press ctrl-x, type the letter y and hit enter. That basically tells nano that you want to quit and yes, save the changes. Networking will now need to be restarted for the changes to take effect.

sudo /etc/init.d/networking restart

Once the network has restarted issue this command to check that the changes have taken effect. This is similar to ipconfig on a windows machine. It shows you the details for each network interface on your machine.

ifconfig eth0

The 2nd line of the output should be something similar to the following:

inet addr:10.100.1.10 Bcast:10.100.1.255 Mask:255.255.255.0

I have highlighted the information you need to check. Once you are satisfied with the result reboot the server and you are finished.

I have lived in Cardiff for 5 years now, and this little shop around the corner from me has seen about 9 different estate agents over that time, they were either never open and/or disappeared after 6 months.

I usually refrain from writing about places close to home but I just have to mention the quaint little café that has replaced those “doomed from the start” estate agents. Finally the shop has a real purpose. The Bubble Cafe. In my opinion this little shop really needed to have something better on offer than a closed estate agents, and a café is just perfect.

The shop only has a small space to offer but these new guys have managed to squeeze in a variety of comfy chairs and sofas to relax in without actually feeling like you’re a sardine, which is always a good thing if you ask me. The atmosphere is a relaxed affair mixed with delicious decor of browns and reds which just add to the comfy cosy nature they were going for. Aside from all the good points my only issue is the music, we all know I hate pop trash and the radio so I tried to tune it out. As the majority of people like this pop shite I am sure the music is more than adequate for the customer base. Some nice easy listening music would be my preference, but we can’t all get what we want. Maybe some Cat Stevens would do the trick.

I have been a couple of times now, the first was just to grab a takeaway coffee which was damn tasty and hit the spot. While waiting for my coffee I tasted a free sample of the home made triple chocolate brownie. You know I bought one after that. tasty does not do it justice, the gooey chocolatey goodness will have you coming back for more all the time. The free samples seem to be on offer every day too so I have to force myself not to grab anymore or I could devour them all and end up fatter than i already am.

So today I decided to come round and actually have a sit down cup of tea and grab a BLT to go with it, as well as to write up the first draft of this post. Service was friendly and speedy, the sandwich was delicious and filled the gaping hole in my belly.

The staff all came across as friendly and eager to help you out, add this to the relaxed atmosphere and you really do have a coffee shop that reaches you on a personal level, and provides you with a better service than any of the big named coffee shops that are sprawled through Cardiff.

I highly recommend this place, even if you are just grabbing a takeout coffee. The prices will leave you with plenty of change in your pocket and a nice warm BLT (among a wide range of offerings) filled belly. Go there, drink, eat and say hi to the staff.

Check out the website and see what’s on offer for your munchable delights and thirst quenching drinks.

Just had a phone call regarding some potential future job prospects. The young lady had a lovely Northern Irish accent. Long gone are the days of my own NI accent as I have been in Wales far too long, but listening to that accent brings home so many memories. It has to be one of the sexiest accents ever (not from a bloke though).

I wathed the live take off of the last ever shuttle mission this afternoon. It took off around 16:30 UK time (or thereabouts) and was a sight to behold. It always amazes me how a machine that big and heavy can be thrust into space in less than 3 minutes. Even though I know the science behind the take off, I still sit in awe at the achievements mankind can make when we put our minds to it.

Having said all that, even here in the UK i felt a pang of regret as that shuttle took off, knowing it is the last ever launch. What have we come to when our exploration of space and knowledge comes to an end to favour a war we should not be fighting?

Sadly the Americans think it more prudent to spend NASAs yearly budget on a few days of war.

Heres to you NASA, and all that wish to travel through space in peace.

I had planned on writing up a small tute on how to get Airprint working on Ubuntu linux, but my good friend SDBillin has already done it. So instead of hashing it out here I am just going to link to his page.