Get users diskless with Linux thin client

Daily Newsletters

Sign up to ZDNet UK's daily newsletter.

The entries in Listing A will export the two file systems, the LTSP root file system (/opt/ltsp/i386) and the LTSP swap files (/var/opt/ltsp/swapfiles), to any client system in the 10.0.0.0 network. Next, edit the /etc/dhcpd.conf.example, which defaults to 192.168.0.0 addressing. If you are using a 10.0.0.0 network, the /etc/dhcpd.conf file will look something like that in Listing B. As you can see, LTSP is configured so that dhcpd will give the workstation identified with the MAC address 00:50:BA:42:F7:0E an IP address of 10.0.5.51 and a domain name of ws001.mylan.net. The configuration in Listing B also tells LTSP to boot from the kernel /tftpboot/lts/vmlinuz-2.4.18-ltsp-1. The /tftpboot prefix should not be specified as it is assumed, and the kernel name should be replaced with whichever kernel is installed. (As of the time of this writing, the 2.4.18 kernel is the latest LTSP kernel.) If you have more workstations that will be used as thin clients, just continue to add host sections to your dhcpd.conf file. Remember to save the file as /etc/dhcpd.conf and not /etc/dhcpd.conf.example. Finally, change to the /opt/lts/i386/etc directory and modify the lts.conf file. This is the configuration file that LTSP uses for its primary configuration. In the lts.conf file, the [Default] section is for the server itself. The SERVER keyword must be changed to the IP address of the LTSP server, and everything else can use the default entry. Now it's time to configure the workstations. The [ws001] section is for workstation number 1; the ws001 entry specified in the dhcpd.conf file. The workstation section configures such things as which X server to use (this is relevant only if you need to use an XFree86 3.3.6 server) and the runlevel to start in. The defaults will usually work fine; in fact, you can (and probably should, to begin with) comment out all of these sections. The lts.conf file is heavily commented and shows a few illustrations of how to configure LTSP on the client side. (For example, it shows how to configure and use a printer connected to a client machine and how to load additional modules if required.) Keep in mind that every time this file is changed, the client system(s) will have to be restarted to see any of the changes. Restarting the services and firing up the clients
At this point, you will need to restart a few services. On most systems, you can do this by using these commands: # /etc/rc.d/init.d/portmap restart
# /etc/rc.d/init.d/nfs restart
# /etc/rc.d/init.d/dhcpd restart
# /etc/rc.d/init.d/xinetd restart This will restart (or start) the portmap, NFS, dhcpd, and xinetd daemons with the new configurations. If you're using the older inetd, restart it instead of xinetd. To make all this transparent, make sure that these services will start at bootup. That can be a simple matter of adding the above commands into the /etc/rc.d/rc.local file. If the server is already at runlevel 5 (graphical login), you should be able to start the client systems from the boot floppy. If not, you will need to start in runlevel 5 by rebooting the server or executing the telinit 5 command at the server's command prompt. This will restart the system into runlevel 5, for the graphical login. You may be satisfied with whichever display manager your Linux distribution uses by default (on Mandrake Linux, for example, it's KDM, the KDE display manager), but you can switch to a different display manager. This is somewhat system dependant, but on Mandrake Linux you can modify the /etc/sysconfig/desktop file and set the DISPLAYMANAGER equal to gdm (DISPLAYMANAGER=gdm). Check your documentation
Refer to your distribution's documentation on how to change the display manager if you don't want to use the default. At this point, head on over to the client system, insert your boot floppy, and boot from it. The system will use tFTP to obtain the kernel to boot from and will then use dhclient to obtain an IP address and other network information. Finally, once it has an IP address and knows a little something about the network, the system will mount the root filesystem via NFS and connect to the display manager you're running. You should find yourself quickly at a graphical login, just as you would if the system were running locally. Key benefits
During this entire process, the only hardware used on the client system will be the CPU, memory, and the floppy drive, and you'll find the bootup and the Desktop significantly faster than on a traditional Linux workstation. Applications are run on the LTSP server, so no overhead is incurred on the client system. This also means that a lack of powerful hardware will not hamper the speed with which your applications run. By deploying LTSP, you can use old 486 or Pentium systems as your end-user machines. The systems can be stripped so that they don't contain any hard drives, reducing the cost of those systems. (Remember, all that is required is a floppy drive.) Maintenance costs will also be reduced. Instead of maintaining each client system, you need to maintain only the LTSP server. This can save a lot of time maintaining and configuring each system. Provided you kept copies of the boot ROM images available, the most maintenance you might have to perform on these systems will be isolated to hardware -- and perhaps regenerating the odd boot floppy.
For a weekly round-up of the enterprise IT news, sign up for the
Enterpise newsletter. Find out what's where in the new Tech Update with our
Guided Tour. Tell us what you think in the
Enterprise Mailroom.

Talkback

Good article, however the Listing A & B links are dead links. Can you provide me with those link locations.

Thanks,
Ken Campbell

via Facebook 13 August, 2003 19:30
Reply

Hi,

This rings so true when you look at what LinuxIT did for Baylis Logistics for example. There is a formidable case study on the net and the Linux company (www.linuxit.com) have even been nominated for awards reference the solution, against HP and IBM for example!

via Facebook 26 October, 2006 23:23
Reply

Post your comment

In order to post a comment you need to be registered and logged in.

You can also log in with Facebook. Log in or create your ZDNet UK account below

  • Login

Will not be displayed with your comment

By signing up for this service, you indicate that you agree to our Terms and Conditions and have read and understood our Privacy Policy. Questions about membership? Find the answers in the Community FAQ

Get ZDNet UK's daily newsletter

Enter your email address to sign up

ZDNet UK Live

Thomas Gellhaus

I also installed the KDE version; I also will probably try out razorqt since I really haven't had a chance to before. I'm looking forward to the...

3 hours ago by Thomas Gellhaus via Facebook on Mageia 2 Released
francisabigail

Acquiring when reinvention/cannibalization is too challenging for a large organization can be an excellent strategy- still, so many mergers stumble...

6 hours ago by francisabigail on Ariba buy parks SAP on Oracle's cloud turf
apexwm

All of the feedback regarding using a touch monitor for a desktop PC is right on. Several months ago, we installed a "demo" multitouch all-in-one...

11 hours ago by apexwm on Windows 8 could speed multi-monitor uptake
191706

anyone wanting to triple boot *their* own Mac

12 hours ago by 191706 on xTreme Triple Booting: Linux, Mac & Windows
SoapyTablet

Cont.. Biggest Bugbear: Win7's stop-animate-go approach to work, you develop a staggered (not in the above alchohol sense of the word) approach to...

12 hours ago by SoapyTablet on Windows 8 could speed multi-monitor uptake
SoapyTablet

Ah the joys of Windows 8 Consumer Preview... If Windows 7 was 'Vista with Lipstick', whats Windows 8? Vista with Lipstick, the morning after?...

12 hours ago by SoapyTablet on Windows 8 could speed multi-monitor uptake
daveveej

Though the metro look is quite cool on the windows mobile platform I think that think that microsoft ARE MESSING THINGS UP because what has they...

13 hours ago by daveveej on Windows 8 could speed multi-monitor uptake
Custonian

I agree, we have a few touch screen monitors in work but as Windows7 and the applications we use are not touch screen friendly (the size of the...

13 hours ago by Custonian on Windows 8 could speed multi-monitor uptake
archerthom

I find it amusing that Microsoft added the mouse, which was deemed awkward, but people were forced to use it so it stuck, and now they're saying,...

16 hours ago by archerthom on Windows 8 could speed multi-monitor uptake
BrownieBoy

Agree with other comments. Nobody's going to start reaching out to start tapping their desktop monitors with their fingers. Their arms would tire...

1 day ago by BrownieBoy on Windows 8 could speed multi-monitor uptake
Random_Error

The only way a touch monitor would be any good is if it were horizontal on the desk, with a virtual keyboard so you could do away with that as well...

1 day ago by Random_Error on Windows 8 could speed multi-monitor uptake
JBDragon

This is just dumb! Forget that I think Windows 8 will bomb, but really, people are going to go out and buy touch Monitors now??? Just pretend...

1 day ago by JBDragon on Windows 8 could speed multi-monitor uptake
Jake Rayson

@Andy Bolstridge > Unfortunately, we need the majority to work 9-5 And therein lies the lie. I work very hard indeed for my idleness, early starts...

1 day ago by Jake Rayson on The Idle Self-employed
Burn-IT

What happens when one hosting platform "acquires data" from another? If I forced the first one to remove it, who is responsible for chasing the...

2 days ago by Burn-IT on Google picks holes in EU's 'right to be forgotten'
JohnTalich

iSpring Pro is a nice tool, that allows PowerPoint to SCORM conversion. They also have free tool, that also generates SCORM compliant courses.

2 days ago by JohnTalich on How To Convert PowerPoint To SCORM Compliant Course
aaron.sloman

I think the answer to the question requires a deeper analysis of where the income can come from who else is now competing for it, who else will be...

2 days ago by aaron.sloman on The three big questions about Facebook's IPO
Brent Pieczynski

Your correctness about Government websites not being compliant with their own websites is correct. Most criticism of other people takes so many...

2 days ago by Brent Pieczynski on Privacy watchdog to chase big companies over cookie law
Kelvyn Taylor

802.11ac does promise some tricks to improve range & reliability, but not sure how these will work in practice until I get real products to play...

2 days ago by Kelvyn Taylor via Facebook on Next-generation 802.11ac routers
mrudang009

My wife and I love our new Kindle Fire. It's lightweight, easy to use and has a great interface. The first thing I recommend anyone with a new...

2 days ago by mrudang009 on Waterstones to sell Kindles with in-store offers
mrudang009

It basically unlocks all the Android marketplace apps and unlocks the device. I am one very happy Kindle owner!

2 days ago by mrudang009 on Waterstones to sell Kindles with in-store offers