Follower

Dienstag, 28. Dezember 2010

Build your own Server - Part 3: Installation of neccessary programs

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

Let's take another look on our previous goals


... [to be continued]

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

    Sonntag, 26. Dezember 2010

    Build your own Server - Part 1: Hardware

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

    Well, there are some ready-to-use miniservers out there.

    You might just want to grab one of those. But, if you do so be aware that it won't be the best you can get to the best price possible.

    A good one of the specific kind is the Zotac MAG HD-ND01. It features an nVidia ION graphic processor to playback HD video content. An Intel Atom CPU takes care of low power consumption and decent computation speed.
    Some problems we are dealing with here are the restriction to only ONE internal harddrive and some antique DDR2 RAM to slow the system down (a bit).

    If you are a bit like me, you will prefer the individual variant.

    After quite a few hours of internet search I came up with this configuration:

    • Mainboard: ASUS AT3IONT-I Deluxe, GeForce 9400
    • RAM: OCZ Gold XTC DIMM Kit 4GB PC3-8500U CL7-7-7-21 (DDR3-1066)
    • HDD x 2-3: Samsung EcoGreen F4 2000GB, SATA II (HD204UI/Z4)
    • SSD: OCZ Vertex 2 Extended 60GB, 2.5", SATA II
    • Case: Lian Li PC-Q08B schwarz, Mini-ITX
    • Casefan 1: Scythe S-FLEX 1200, 120mm, 1200rpm (SFF21E)
    • Casefan 2: be quiet! Silent Wings USC, 140mm, 1000rpm (BL014)
    • Fan controller x 2: Zalman Fan Mate 2
    • Display: ASUS 27T1E, 27", 1920x1080 (90LM931015A10D1C)

    Why do we need all this?

     

    The Mainboard features HDMI, VGA, WLAN, Bluetooth, a remote control, an efficient Intel Atom Processor, a heatpipe instead of a noisy fan. Moreover, the board comes with an external powersupply. You can plug in up to three SATA devices like your HDDs and the SSD to get them running on the needed electricity. "Only three devices?" you may ask. Yes, the fourth has to be connected via an Y-adapter. This cheap supply has to be bought separately when needed.
    The RAM is a decent DDR3 one, resulting in short memory read/write latencies.
    I choose the harddrives because of their low noise production and some good experience I had with similar drives.
    The SSD is a midrange model which combines a good speed with a fair price. If it's too slow for you, before switching to the high end Intel models think about this: SSD prices are dropping. You can get a significantly faster model in a few years for sure. And this for half the current price.
    The SSD will be used as our system-drive. The HDDs will bear our music, documents, videos and other data.
    The computercase of my choice is one of the few Mini-ITX cases that holds room for four or more harddrives. Mini-ITX is the special formfactor that defines the type of mainboard we are using, not unusually bearing an integrated CPU - in this case an Intel Atom 330. Furthermore, the case looks quite stylish ;)
    The casefans and -controllers are there to keep things cool and most significantly, to keep it QUIET. I can't stand a noisy computer, so all the compontents on the list do their part in preventing unnecessary noise.
    Last but not least, the display I bought for the computer made it on the list, too.
    You, of course, may use any other monitor device. I just have a high opinion of this particular one, so I added it.



    Prices


    Mainboard: 160€
    RAM: 50€
    HDD x 3: 70€ * 3
    SSD: 100€
    Case: 90€
    Casefan 1:10€
    Casefan 2: 15€
    Fan controller x 2: 2,50€ * 2
    Display: 260€
      Therefore, you can get all this stuff for about 640€ (~840$). (Without the display.)
      The Zotac MAG HD-ND01 in contrast is 250€ (~330$). But it's definitely not the same quality you would get. Well, the decision is up to you.


      Congratulations


      You now have a bunch of easy to assemble hardware. In a few you will be able to install a cool Operating System on it and bring it to life!

      Next: Installing an Operating System (Ubuntu Server)