KAJames.com
Home Musings Projects Portfolio Contact

Projects -> Linux Server

Linux Server

Hardware

Like any good techie putting together a new computer, one of the most exciting parts is the shopping. I got everything for this one at tigerdirect.com which generally has good prices, though they do a lot of rebates... which means you actually have to put in some work and send in the rebate forms to get the prices they list.

I figured I didn't need anything super fast for a box that will mostly be used for serving web pages so here are the specs:

  • Shuttle XPC SN41G2 Barebones kit
  • AMD Athalon XP 3000
  • 512 MB PC3200 DDR RAM
  • 160 GB HD
  • DVD±RW
  • 9 Format Multi-Card Reader

Distribution

I've tried a good number of different linux distributions. I'd been running Gentoo on my laptop for about 6 months, but I'd gotten pretty sick of having to recompile everything every time a major release of any of the base system.

You can get binaries though portage (the Gentoo package manager), but that kind of defeats the purpose of the whole Gentoo distribution. At that point it acts essentially just like a Debian distribution... so I decided to go with a Debian derivative instead since the package management systems are similar and I didn't want to be compiling.

Ubuntu is an up and coming Debian based distro. I can't stand Gnome though, so I decided to use their KDE version, Kubuntu instead.

Often people don't put KDE or Gnome on a server at all, but I want to be able to use it to test sites in Konqueror, and maybe use as another desktop if my laptop is in use for something else.

The Plan

So I had to determine what exactly I wanted this box to be able to do. This is an ongoing project, but there are several main functions I have in mind for this:

  • File Server - I want to be able to share files between the other computers in the house. Karine has a desktop, I have my laptop, and I have a couple older computers that I may someday hook up.
  • Print Server - The printer is currently hooked up to Karine's desktop, but that means for me to print anything I have to turn on her computer. It would be nice to have the printer attached to the server since it'll be on all the time anyway.
  • Web Server - If I'm going to move the site to it I need to have a web server running. However, I'd also like to be able to host sites for my friends and family at some point, so I've got to set it up for virtual hosting. Apache luckily makes this fairly easy.
  • FTP Server - I'll also need an FTP server running for people to upload their files through. The aim is to also have this set up for virtual hosting.
  • Mail Server - Of course, if I move the site here, I also have to have the mail come here. Which means if I'm going to host for friends and family I need to be able to support virtual domains for mail as well.

File Server

First things first. I want to be able to use the server to store files so I can access them from any computer. It didn't take me too long to get Samba up and running. I can't say there were any major issues with this, and since you can probably find multiple different places explaining how to install and configure it, I won't bother to go into detail here.

Print Server

Currently being worked on

Web Server

It was fairly easy to set up Apache on the server. I wanted to have virtual domains, but that wasn't much of an issue. What turned out to be a bit of a pain though was setting up suPHP. Not getting it to work for scripts in a user directory, that wasn't a big deal... but I also wanted to be able to set up common scripts that could be run under the users account from common directories.

Valid CSS Validated XHTML 1.0
Copyright © K.A.James Consulting Inc. 2008, 2009