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

BrownieBoy

> I'm told it's somewhat annoying when people have their Macs stolen > and Apple stores treat the thief as the owner, but there you go. Ouch,...

9 minutes ago by BrownieBoy on AMD Ultrathins to challenge Intel Ultrabooks
Moley

@kevinmchapman. OK, I acknowledge that 'most' was a gratuitous throwaway comment as an afterthought and too presumptuous. As to proof, as you...

5 hours ago by Moley on A tale of two distros: Ubuntu and Linux Mint
Jack Schofield

@BrownieBoy > Works really well for thieves.... >> Nice attempt to deflect the argument by tossing in a point that's totally >> irrelevant, even...

6 hours ago by Jack Schofield on AMD Ultrathins to challenge Intel Ultrabooks
raskolnikof

fantastic that the so called piracy bills have been withdrawn. however, these anti-democracy supporters are still in the shadows so lets be alert...

6 hours ago by raskolnikof on SOPA, Protect IP support wavers in face of online protest
Tony Douglas

Please God no; teach them anything you like - thinking rationally, the uses and misuses of data, what data is and what it's not - but leave the...

9 hours ago by Tony Douglas via Facebook on Kids are the future. Teach ’em to code.
BrownieBoy

@Jack, > Works really well for thieves.... Nice attempt to deflect the argument by tossing in a point that's totally irrelevant, even it were...

23 hours ago by BrownieBoy on AMD Ultrathins to challenge Intel Ultrabooks
bootlegger

Make that 13 people now - I got refused today at Manchester airport. I thought I was up to date on this legislation - I knew of the EU ruling from...

1 day ago by bootlegger on UK airport body scans will not be opt out
tinycg

Don't forget to check out apps like GoodReader or SlideShark either, they're indispensible for people on the go in presentation situations. Best...

1 day ago by tinycg on Four top iPad apps for people on the move
TerryRK

Well it seems there is something a number of us agree on. Why is the Ubuntu Unity launcher so ugly? I thought perhaps it was something to do with...

1 day ago by TerryRK on A tale of two distros: Ubuntu and Linux Mint
Freebies202

Duplicate comments are not made intentionally. Its very good to know that now you are keeping check on this problem because sometimes a commenter...

2 days ago by Freebies202 on Microsoft fixes blog comments, speeds up blogs with open source
kevinmchapman

"the very significant number of users" and "many (most) of us" - you have no evidence for these statements. It is a fact that most users are saying...

2 days ago by kevinmchapman on A tale of two distros: Ubuntu and Linux Mint
Marg Menzies Harrison

Another grammar faux pas is the improper use of "you". When sitting down down in a restaurant, for example, I get cringe when the waitress...

2 days ago by Marg Menzies Harrison via Facebook on 10 flagrant grammar mistakes that make you look stupid
zdnetukuser

And NOW, folks, for Canonical's next trick... Kubuntu is late. Here's a pencil. Draw your own conclusions. cf.:...

2 days ago by zdnetukuser on Linux Minterface
Moley

@kevinmchapman. The discussion here reflects the very significant number of users who really do like the traditional menu system and who wish to...

2 days ago by Moley on A tale of two distros: Ubuntu and Linux Mint
kevinmchapman

Er, no... It is an efficient means of finding the application/file/setting you need in one place. The icons are a simply a fallback for when you...

2 days ago by kevinmchapman on A tale of two distros: Ubuntu and Linux Mint
TerryRK

Isn't the provision of a text based search an admission by the developers that the mass of icons approach does not work? I don't need to use a...

2 days ago by TerryRK on A tale of two distros: Ubuntu and Linux Mint
kevinmchapman

"Unity and GNOME 3 both abandon the old text-based cascading menus in favour of a graphical icon-driven system." Point truly missed. Both use a...

2 days ago by kevinmchapman on A tale of two distros: Ubuntu and Linux Mint
TerryRK

whs001 - Thank you, I'm glad you liked the article. I absolutely agree with you on your first point. I should perhaps have made it clearer that...

2 days ago by TerryRK on A tale of two distros: Ubuntu and Linux Mint
Dennis Nilsson

If we allow corporate interest to dictate the way our government circumvents due process against foreign entities then we should accept the same...

2 days ago by Dennis Nilsson via Facebook on ACTA stumbles in Germany
GHar123

I totally dislike pirating of works, I fear that artists will be deterred from creating works if they think that they are going to get ripped off....

3 days ago by GHar123 on ACTA stumbles in Germany