Migrating a Computer Lab From XP to GNU/Linux Magically

You don’t believe in magic in the 21st century? Try this:

  • take twenty-four eight to ten years old PCs running XP Pro taking minutes to boot
  • collect their network connections to one switch with two gigabit/s ports
  • add a GNU/Linux terminal server to the uplink
  • boot from a floppy each client, loading software from the server into RAM
  • run a script on the server to wipe the hard drives and install a boot-loader on the hard drives

Then, for a couple of hours of work, the client machines provide virtual desktops from a newer server and the users feel the speed and responsiveness of the newer server instead of the ancient PCs.

Perhaps it is not magic but only sufficiently advanced technology, but it is a wonderful way to upgrade a lab with very little equipment costs. The ancient PCs can be made useful again and give a few more years of service. When they finally must be replaced they can be replaced with new thin clients which cost $100 or less and are tiny, cool and quiet. This is a great solution for schools. Replace the management of many PCs with the effort required to manage one.

A few details:

  • The terminal server is an AMD64 3000 with 2gB RAM dating from 2004, not young but a generation or two more advanced than the clients. Most importantly, it has a 200gB RAID 1 array to speed disc storage. It also provides local services like chat/web/database so users have much better response than the Internet.
  • The clients work in an NFS share from the server which contains an LTSP 4.2 environment. Clients have two sessions, GUI and local BASH shell but also have keyed SSH access, useful for the scripting.
  • Script run on the server:

for f in list-of-ip-addresses-spaced ; ssh $f /nfsroot/script.sh& done

  • Script the client runs:

script.sh at /opt/ltsp-4.2/i386

modprobe ide-generic # loads driver

dd if=/dev/zero of=/dev/hda # wipes drive to free licence

dd if=/nfsroot/boot-loader-from-rom-o-matic.net of=/dev/hda #write netboot loader

haltsys

It cannot be emphasized too much how great an improvement this small effort gives to each user of the lab every day in every way:

  • faster booting because there is less software to boot
  • faster login because the first user to login loads all the necessary files into shared memory
  • faster loading of applications because the files are already in shared memory on the server, much faster than reading from a hard drive
  • files are accessed by processes on the server from drives on the server so there is no network traffic/bottlenecks for data
  • no need to run AV scanning for each user
  • web applications and data from the local server are much faster than going through the Internet bottleneck
  • RAID storage is much faster and more reliable than the hard drives on the client

I demonstrated this technology to teachers at a conference last week and they were amazed as one should be by magic.

Don’t have a GNU/Linux terminal server? Install Debian GNU/Linux or Ubuntu or K12LTSP. Debian packages to add is ltsp-server-standalone. It sets up DHCP for the subnet on the switch and the tftpd service to boot clients and sets up the file share. Every school should have a few of these terminal servers.

- Robert Pogson

0 Responses to “Migrating a Computer Lab From XP to GNU/Linux Magically”


  1. No Comments

Leave a Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>




Archives by Month

Recent Comments

My Mission

My observations and opinions about IT are based on 40 years of use in science and technology and lately, in education. I like IT that is fast, cost-effective and reliable. I do not care whether my solution is the same as yours. I like to think for myself.

My first use of GNU/Linux in 2001 was so remarkably better than what I had been using, I feel it is important work to share GNU/Linux with the world. I have been blessed by working in schools where students and school systems have benefited by good, modular software easily installed in most systems.

I have shown GNU/Linux to thousands of students and hundreds of teachers over the years and will continue in some way doing that until I die in spite of the opposition.

Posts

March 2009
S M T W T F S
« Feb   Apr »
1234567
891011121314
15161718192021
22232425262728
293031  

    Writing

    3433 articles
    30615 comments

      Comments

      platforms
      linux 17485
      windows 12769
      macos 206
      sun 3
      wp 2

      browsers
      firefox 23933 
      safari 11870 
      chrome 11722 
      ie 4636 
      iceweasel 4268 
      opera 1642 
      konqueror 198 
      netnewswire 14 
      epiphany 2 
      flock 0 
      bonecho 0 
      lynx 0 

Bad Behavior has blocked 6981 access attempts in the last 7 days.