Follower

Montag, 27. Dezember 2010

Build your own Server - Part 2: The Operating System (Ubuntu)

This guide is divided into three parts:
  1. Which Hardware and why?
  2. Installing an Operating System (Ubuntu Server) <-- [[you are here]]
  3. Installation of neccessary programs

Which Operating System shall run on my machine?


This is an interesting question. Well, there is Windows 7, but it may not be the best choise for what we want to achive here. The downsides are
  • It costs a lot of money
  • It will definitely run slower over time (a Windows design issue, registry etc.)
  • You can't really do what you want with it
  • You have to install a full Desktop-Environment

To be honest, there is "Windows Server 2008" which is more suitable for this job than Windows 7. But in this guide we are concentrating on another operating system, tailored to our needs and completely free. Free as in Freedom as well as in free beer!

Installing Ubuntu 10.10 Server Edition


Ubuntu is a very userfriendly linux distribution based on the famous and rock solid Debian.
To install it do the following
  1. go to http://www.ubuntu.com/server
  2. download "ubuntu-10.10-server-amd64.iso"
  3. Burn this image on a CD or load in on an USB-Stick (Guide for that)
  4. Switch on or restart your new computer with the disc or stick inserted
  5. Follow the instructions on the screen

There are a few points worth mentioning about this fifth step. "Partitioning" and "Packages" sections will show you the important aspects.

Partitioning


SYSTEM: When the installation routine comes up with the question of partitioning your drives, choose to set "/" (that's the system directory-tree's root) on a partition located on the SSD. This makes sure to have all those files belonging to the operating system on our very responsive NAND memory. It's up to you whether you want the "/home" directory to be located on the same SSD or on the RAID partition we will set up shortly. I'd recomend it. But if you want to follow my suggestion here, please keep in mind to save your important files on the RAID and not on the SSD - respectively your "/home" directory.

RAID: To set up a new RAID with Ubuntu nowadays is as easy as pie. Don't be confused about some technical terms comming up along with this topic. For our needs it can be made really simple. If you are interested in different RAID-Systems, i'd recommend to read the excellent Wikipedia-Article covering this topic. Relevant are RAID1 and RAID5 - depending on the number of harddrives you are going to use for it.
  • 2 Harddrives --> RAID 1 (Mirroring)
  • 3 Harddrives --> RAID 5 (Parity Drive)
We are going to use a so called "Fake RAID", meaning that we do all the  computation needed for it on our CPU and not on a separate RAID-contoller. There is an more or less significant increase in write/read speed when using a dedicated controller for this task, but we are just looking for a cool and simple way to get our data securely stored on some drives, right? Don't worry, you definitely won't have to wait for your file transfer longer than before.
  1. To set this all up just set the focus on one of the new HDD devices and click on "new partition" in the partitioning menu
  2. If you are not sure what to do next, I suggest to use the whole 2 terrabyte of one drive as a single partition. Format it as "ext4" - do not "quick format" if it is offered, it would not detect possible corrupted parts on the drive
  3. Repeat the last step with the other 1-2 HDDs, choose the same partition size.
  4. Then click on the button that indicates the creation of a new RAID cluster (It is the only one featuring a "RAID" in it's textbox)
  5. Choose either RAID1 (2 drives) or RAID5 when you have three HDDs pluged in
  6. Get some Coffee or hot chocolate, because after hitting the "OK" button it is going to take quite some time to format all this bits and bytes on the discs :)

Packages


Later in the installation process, install the apache2 webserver and some of the other provided packages you may find necessary.
If you want a GUI running on your server you should also do the following last step. If you don't know what a "GUI" is, you most probably do want one! :)
As a command line (that means: when you see the flashing prompt) type in the following line:
sudo apt-get update; sudo apt-get install ubuntu-desktop
Then hit "Enter" or "Return" or however you might call it yourself.

Congratulations


You now have a working copy of Ubuntu Server installed on your new Server.
Now let's see what we can do with it.

Next: Installation of neccessary programs

    Keine Kommentare:

    Kommentar veröffentlichen