Linux X-Terminals - or how to use those old computersX-terminals are computers that fetch all their data and programmes over the network from one or more central servers. The way this works is that you have one decent computer with all the programmes your group may need, and then all other computers can be slow old machines (486's or Pentium1's). These machines do minimal work (take input from keyboard and mouse, send it to the main computer (the server), receive info back and put it on the screen). This means obsolete computers can be used, and is an excellent, easy and extremely cheap way of providing up to date software and fast internet access to users (typical cost - one fairly new machine [ free to as much as you want to pay ], as many old Pentium1's as you have users [ free to £100 each ], ethernet cabling [ about £1 per metre ], ethernet cards [ generally free second hand ] and a hub [ free to £50 ]. Compare this to the cost of providing one fairly new machine per user (plus a hub and cabling and ethernet cards) if you chose to run MS Windows). Older computers find a new lease of life when used as a terminal for an application and file server. In this way the user can get the benefit of the speed and capacity of the server, but doesn't have to be physically sitting at the server, and several people can be using the same server. This is a simple, but extremely cheap and efficient way of using hardware. I'd recommend a fairly new machine for the server (Pentium III or above, but anything that you're happy to use will do really), and as many Pentium Is as you have users, with all computers being able to connect through a working network. 386's and 486's will also work perfectly well as terminal servers, but you're more likely to be able to get graphics cards with more than 1Mb RAM for Pentiums - this helps a lot when you're running something big like OpenOffice or manipulating images. How many terminals you can run off one server depends on what software you are running, and how powerful your server is. Generally a 1000MHz computer will comfortably serve between 10 and 40 terminals using fairly heavy software like OpenOffice and KDE. If you're running more than a few X-terminals then you're likely to get network congestion (ie your network slows down so much you can't work very much). One way round this is to have a 100Mb connection from your server to your hub (which obviously has to be able to deal with 100Mb), the connections to the X-terminals can be 10Mb. If you're not currently using Linux have a look at Linux - what and how? and Low Cost Computing for information about getting started with Linux. In true Linux style there are lots of different ways of doing X-terminals / Thin-Clients. Below is described the way we use, but if you prefer to use terminals without hard-drives check out LWN's diskless Terminals distribution list - (Thinstation looks good). back to topSetting up the ServerInstall Linux normally on your server, add all the programmes, users etc that you'll need. When asked during setup choose a graphical login (i.e. xdm, gdm or KDM), but not autologin (ie one user gets logged in automatically when you switch on). Choose network addresses for all your computers. For this example we'll be using 192.168.1.1 for the server. Find the file Xaccess - typically to be found in /etc/X11/xdm/ #* #any host can get a login window uncomment this line (remove the #) 192.168.1.* #any host can get a login window If you are using XF86 version 4.0 or above then edit xdm-config (in the same directory as Xaccess). Look for: ! DisplayManager.requestPort: 0 and make sure that it is commented out with an exclamation mark "!" If you use xdm as a login manager then you should be finished with the
server now. If however you are using the Gnome Login Manager (GDM) you will need
to find the gdm.conf file (try /etc/X11/gdm/gdm.conf). [xdmcp] and make sure that in that section: enable=true or enable=1 and NOT enable=false or enable=0 At this point it's easier to restart the whole computer than try to workout which services should be restarted to get things going. So go ahead and reboot. back to topSetting up the TerminalsNow configure the the terminals so that they don't boot into the graphical interface. If you're putting a new installation on them then you'll only need X (no window managers needed, but feel free to put them on if you have room) and the basic system. Make sure X isn't running, and on the commandline try: X -query 192.168.1.1 You should get X-windows starting and the login manager coming up... If you're looking at the login manager then congratulations - that's it. You may want the terminals to boot into this stage automatically, in which case you can add X -query 192.168.1.1 to your /etc/rc.local (RedHat, Mandrake and co.) or make a script for it to start at whatever runlevel (Debian). Another thing you can do is change the ctrl-alt-del function to shutdown instead of restart: ca::ctrlaltdel:/sbin/shutdown -t3 -r now change this to: ca::ctrlaltdel:/sbin/shutdown -t3 -h now Now terminals can be shutdown by first doing ctrl-alt-backspace (to kill X), then with ctrl-alt-delete. If you don't change this users will have to logon to the terminal itself in order to close it down (or of course do ctrl-alt-del and switch the computer off manually when it starts to reboot). Troubleshooting
Other ways of doing it
Client means the computer that will be the terminal (we're using the IP 192.168.1.2 for the client - change if necessary),back to top Seeds for Change: a non-profit activist training co-op |
