Build An Ubuntu Server
Tuesday, February 7th, 2012I 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.
The accent
Friday, October 7th, 2011Just 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 could listen to it for hours.
Ahhhh
NASA and the last shuttle launch
Saturday, July 9th, 2011I 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.
Xbox LIVE Update Preview!
Thursday, September 23rd, 2010So I just signed up for the Xbox LIVE Update Preview at connect.microsoft.com so I can get the new dashboard update early.
Not everyone will be granted access, but they are looking for a good few thousand people to test it. You could just be in luck.
You will be asked to answer a few questions, and the decision will be made as soon as you save the details.
Within 2 weeks you will have a shiny new dashboard.
Stay tuned for more updates as they come in. Not sure I can get screenshots directly from the 360 but i will try and get some
Broken Comments
Sunday, June 27th, 2010It appears that the commenting system was broken. It has only just come to my attention after an upgrade pointed it out. It was an old plugin that I was using and it has now been deactivated until I can fix it.
Sorry to anyone who has tried posting a comment and it failed.
Search
Previous Posts
- Enable Airprint on Ubuntu Posted by Soddengecko June 27, 2011
- Ubuntu Install Screenshots Posted by Soddengecko February 7, 2010
- HOW TO: Move Ubuntu Home folder to another drive Posted by Soddengecko February 7, 2010
- HOW TO: Random password generator on Ubuntu and other Linux systems Posted by Soddengecko February 7, 2010
- HOW TO: Perform system backup in Ubuntu – Part 2 – Restore Posted by Soddengecko February 7, 2010
- HOW TO: Perform system backup in Ubuntu – Part 1 – Backup Posted by Soddengecko February 7, 2010
- SBS 2003: Mapping network drives for users at logon Posted by Soddengecko February 7, 2010
- Sharepoint Services not configured for use with ASP.NET 2.xxxxx Posted by Soddengecko November 26, 2009
- Customising Firefox 3 Posted by Soddengecko May 13, 2008
- How to: Install Ubuntu packages with HTML link Posted by Soddengecko March 15, 2008
Recently Updated
Archives
People
Linkies
- Matthew Moore This blog belongs to an associate of mine. He likes to jibber jabber on a bit, and he has decided to document his exercising habits lately, but look back and check out some of the good stuff. Added on March 22nd, 2008 @ 12:08
- Fight for Kisses Probably the best shaving advert I have seen. Not much by the way of pretentious bullshit and it actually has a couple of funny moments. Worth a watch. Added on October 25th, 2007 @ 09:52
- Speedtest.net Speedtest.net is a broadband connection analysis tool with a huge selection of geographically dispersed testing servers. Ookla provides this service free to hundreds of thousands of people every day. If you are experiencing slowness with your Internet connection or are simply interested in testing your speed, Speedtest.net is for you. Added on October 15th, 2007 @ 22:09
- Sadikhov Forums A forum of like minded people helping others achieve the coveted CCNA qualification. The site is aimed at helping those understand the complex issues presented in the exams and making sure you understand them before wasting your money. Added on October 15th, 2007 @ 22:09
- RouterSim.com RouterSim has been the leader in IT simulation training since 1999. RouterSim’s Industry expert Todd Lammle offers you the best learning tools available. We have expanded our offerings to match your budget and needs. RouterSim offers simulators, computer-based training videos, online CCNA simulation testing, and exam preparation software. Added on October 15th, 2007 @ 22:08
- Generic Linux rules of thumb for security The only secure box is turned off and locked in the back room — but it’s also not much use to anyone Added on October 15th, 2007 @ 22:06




by @ 17:24