Thursday, November 09, 2006

Useful services for a linux server

I've been doing a lot of work upgrading my laptop and desktop lately with new linux installations (read my previous posts on xgl, aiglx, compiz and beryl). So, I thought it was time to do the same with my main server. My main server is a 64 bit gentoo linux server (compiled for 64 bit) As it stands, the services the server is now running: Apache - Web server FTP - Remote access to my files and shares via ftp server Samba - Basically a linux file server that is accessible not only from *nix boxes but normal windows workgroups/domains as well The server shows up in network places on a window box like any other server NFS - In addition to running samba shares I also changed a few of my shares to NFS (network file shares) SSH - Standard ssh access Subversion Server - A subversion server to house all of my code that is accessilbe via; SVN+SSH Webdav support for http access of subversion Websvn (sits on top of webdav) to provide a much nicer subversion browsing experience Complete with syntax highlighting in your browser via enscript and sed! One click can give you any folder or project zipped up ready to downoad Log viewing, diff comparison, version checking etc Wiki - MediaWiki with syntaxhighlighting support for all types of code and scripting (thanks Clinton) o custom tag for pointing out notes on a page MySQL - A mysql database with administration via PHPMyAdmin Backup - I've now got a proper backup routine to backup the entire file server (configurations, kernel, webserver, mysql database, subversion repository, the lot) minus actual media of course. There is no way to actually back that much data up. Unless of course you have another pc running to backup to. But I can do a full restore of my raid 5 array with the stage4 backup I now have. Portage - Portage is gentoo's package management system that is similar to debian's or suse apt-get. Though I beleive bettter, because being a source based distribution you get a lot more flexibility and choice over how you install things. I've centralised my portage cache and distfiles on the server now allowing other gentoo boxes on the lan to get packages from the server at LAN speed. This also means there is only one portage tree I need to keep synchronised. This saves both bandwidth and time. I just need to setup a cron job for the portage rsync: on the server now to do it nightly. Whilst other gentoo boxes on the lan now pull packages from the server they still rsync to other mirrors. I need to setup my clients to rsync with the server if it is available in the server's cache. Again, this is good netiquette for the rsync servers as I only have one pc in the house that needs to sync for the entire network. Next on the list The next overhaul I do on my server will probably include putting lvm on top of my raid 5 for a bit more flexibility. Hardware upgrade Currently the server only has 4x120gig sata's and is full :( Hopefully today, I'll have time to get 4x320gig sata II drives and migrate the raid 5 array across to those. Conclusion So what started out as a simple file server a year or two ago has expanded to provide many more services. Everything is just about configured the way I want, I'm just tying it all together now. I still need to put PHPMyAdmin and websvn into my wiki navigation bar for example and update the projects on my wiki to have their download sections to point to my websvn. Maybe provide browsing for ftp shares as well. Once everything is fully integrated is should all work seamlessly.

0 Comments:

Post a Comment

Links to this post:

Create a Link

<< Home