CyberKnights Logo, click for background info Random banner image


Modern tools.
Traditional dedication.

Previous page Home | Purpose | Linux | Products | Legality | Special | Downloads | Articles | Contact Next page

Mandrake Terminal Server (v0.0)


You will require:


Run Mandrake’s Terminal Server wizard (as root): drakTermServ.

Click on the First Time Wizard button, then OK.

Click on the Use thin clients checkbox (then the OK button on the dialog which pops up) and Next button.

The panel should be filled out according to the specs of your LAN; if it’s connected to a typical NATted DSL, the parameters would be:

Network address (“Subnet”)
Default route (and all else; “Routers”)

drakTermServ thoughtfully pulls these values (and more) from your running system, but depending on how it’s configured, they may be wrong. The values are about to be applied to the DHCP (automatic address) server for your workstations. If these values are right for you, the rest of the parameters on the page should have values more or less like the following:

“Subnet Mask”
“Broadcast Address”
“Domain Name” (inside your LAN)whatever
“Name Servers”
“IP Range Start”
“IP Range End”

Click Write Config then Next (and OK on the small dialog which appears, and yes, it really will take a few minutes; it’s building separate boot kernel images and RAMdisk images for circa 60 different kinds of network cards).

Big pause... then click Next, Next, Next, Next, and now we get an opportunity to make some boot floppies, CDs or PXE images if we need them.

A Diagnostic Digression

Most people won’t, but in my case one of my clients was a laptop with a (built-)broken RTL8139; the first thing this braindead device does is identify itself . . . and then tack some semi-random crud onto the end of the ID string, which made it difficult for the PXE software to figure out which boot file to send it. This was cured by giving tftpd a remap option and file (I chose /etc/tftpd.remap), by adding “ -m /etc/tftpd.remap” to the server_args line in /etc/xinetd.d/tftp.

The remap file looks like this (the idea was pulled from a mailing list post found with Google and kept in its cache):

# strip ending garbage from filenames (Realtek PXE bug) r ^(boot-8139[[:graph:]]*)(.+)$ /eb-5.2.5-rtl8139.zpxe

In short, remap any graphic string starting with “boot-8139” and followed by junk to point to a PXE-to-Etherboot file (which we generate here).

And why not remap it to the kernel it needs straight away? Well, I’m glad you asked: because this never-to-be-sufficiently-condemned device then turns around and says that there’s not enough memory (like, only 512MB) to load the kernel into. So we bounce through Etherboot, which takes an extra fraction of a second but gets us clear of the Realtek bugfarm.

We also have to add a coping mechanism to DHCP to deal with this, a belt-and-braces approach, in the form of a sub-stanza like this inside the “class "PXE"” stanza in /etc/dchp.conf:

host laptop {
        hardware ethernet 00:0A:E4:20:40:65;
        if substring(option vendor-class-identifier,0,9) = "PXEClient" {
                filename "/eb-5.2.5-rtl8139.zpxe";
        } else if substring(option vendor-class-identifier,0,9) = "Etherboot" {
                filename "/boot-8139too.2.6.3-7mdk.nbi";

Such is the penalty for paying too little for one’s laptop – that and a memory-stick controller card from WinBond (anybody remember penny-pinching VL-buss IO cards with buffered 16450s masquerading as real 16550s? Same crew) with zero documentation and so no Linux driver (Linux doesn’t even admit to it existing, which at least shows good taste.

Now, where was I?

Oh, yes. Click Next.

When drakTermServ offers to restart the display manager, the safest answer is No. Restarting the Display Manager would take your current X session and all of the programs you have open in it (probably including a browser showing this text) and all of your remote sessions et al with it – if you logged in graphically. You can do the same thing later from a command line by typing service kdm restart (or gdm, if that’s what toots your whistle, but kdm is the default).

You are now, in principle, done. In reality, there will be some tweaking to do.

If your server and workstations are based around related chipsets, you possibly really are done. In my case, the server ran an ATI video card on an nVidia motherboard chipset (nForce2 sucks), the workstations a variety of chipsets including the above-mentioned laptop’s Intel chipset.

In most cases, the server will run one chipset, most of the workstations will run another, and a few workstations will dare to be different.

I handle this with ClusterNFS features by creating /etc/modules, /etc/modules.conf and /etc/X11/XF86Config-4 (this will change to something like /etc/xorg.conf with Mandrake 10.1) for the server, then another set /etc/modules$$CLIENT$$, /etc/modules.conf$$CLIENT$$ and so on for the most common workstation configuration, then nail specific network cards to specific addresses in dhcp.conf with stanzas not unlike the one used for the laptop above. I then create /etc/modules$$IP=$$ and so on with matching contents.

ClusterNFS does the rest. The hardest part is remembering to escape the $$ (as \$\$ or by enclosing the whole name in apostrophes).

A word on fatness

Terminal Server works in two basic modes. In “thin” mode, the workstations run just an X display server locally, on a network mount from the server. This display server connects to the main machine’s KDM (or whatever) service and logs in there, so the applications are all run on the actual main machine, and the workstations are being only a display (keyboard, mouse).

This is perfect for recycled 486es (in real life, recycled Pentium Is and Pentium IIs) but anything which pounds heavily on the screen (games and 3D applications) is going to work poorly if at all, and sound (if any) will be emitted at the server end (sad for audio and video programs). On the bright side, memory is shared very efficiently and programs load very fast, especially for computationally weak workstations.

“Fat” mode runs a local copy of KDM, logs in through that, and runs everything locally, over the network mounts. This makes programs slower to start (they have to be loaded over the network) but faster to display (no network lag), and everything like sound, 3D, high-bandwidth graphics and local devices work as normal. No memory sharing occurs and the workstations need more memory and processor power, but the server doesn’t need so much memory (or processor) to do its job.

To flip between thin and fat mode, change the last line of /etc/inittab$$CLIENT$$. Thin looks like this:

x:5:respawn:/usr/X11R6/bin/X -ac -query

Alter IP address to suit taste (ie, point it at your server). Fat looks like this:


When you think about it, and put a business hat on, the idea that Linux could start as this little hobby project that would in the course of less than a decade become this extremely popular piece of software that people would bet on for mission critical applications. . . how did that happen? Nobody is in charge of it. Nobody owns it. It’s not controlled by a corporation. It fundamentally depends on cooperation and collaboration. . . . It’s an amazing model of how to get stuff done. — Mitch Kapor, founder of Lotus

Last changed: 09-Sep-2008 18:29:30  Find out who links to this page. Verify for yourself that this page is pure, standard HTML, not Ruby.

[Powered by QWant]   Translate into     Linux™ Powered

No software patents! If you would like us to read email for USD$1000 per page, payable in advance, send it here.