home *** CD-ROM | disk | FTP | other *** search
/ BURKS 2 / BURKS_AUG97.ISO / BURKS / LINUX / HOWTO / mini / xterm.txt < prev    next >
Text File  |  1997-07-07  |  29KB  |  638 lines

  1. The X Terminal HOWTO
  2.  
  3. How to connect an X terminal to a Linux PC
  4. Version 1.0 BETA (July 1995)
  5. Scot W. Stevenson <scot@catzen.gun.de>
  6.  
  7.  
  8.     This document gives a brief introduction to how to connect an X terminal 
  9.     to a Linux PC. It assumes a basic knowledge of the X Window System, 
  10.     TCP/IP addressing, and ethernet cards. 
  11.  
  12.  
  13. 1.0 Introduction
  14.  
  15.     This is the first version of the document and should be considered BETA.
  16.     It is more of a been-there, done-that text than a comprehensive treatment.
  17.     Discussions of access control mechanisms (e.g. xaccess, xhost, 
  18.     MIT-COOKIEs), and the use of NFS, are not yet included.
  19.  
  20.     Most X terminals now have a whole host of advanced features which allow
  21.     them to be more than mere X servers. For the most part, these features
  22.     will be ignored.
  23.  
  24.  
  25. 1.1 Changes from previous versions
  26.  
  27.     (There are no previous versions, so everything was changed)
  28.  
  29.  
  30. 1.2 Disclaimers
  31.  
  32.     Neither the author nor the distributors of this HOWTO are in any way
  33.     responsible for physical, financial, or moral damage incurred by 
  34.     following the suggestions in this text. In short: "Yea though I talk...." 
  35.            
  36.  
  37. 1.3 Copyright
  38.  
  39.     The Linux Xterminal HOWTO is copyrighted (C) 1995 by Scot W. Stevenson. 
  40.     Linux HOWTO documents may be reproduced and distributed in whole or in
  41.     part, in any medium physical or electronic, as long as this copyright
  42.     notice is retained on all copies. Commercial redistribution is allowed
  43.     and encouraged. The author, however, would like to be notified of any 
  44.     such distributions.
  45.  
  46.     All translations, derivative works, or aggregate works incorporating
  47.     any Linux HOWTO documents must be covered under this copyright notice.
  48.     In othe words, you may not produce a derivative work from a HOWTO and
  49.     impose additional restrictions on its distribution. Exceptions to these
  50.     rules may be granted under certain conditions.
  51.  
  52.     In short, we wish to promote dissemination of this information through
  53.     as many channels as possible. However, we do wish to retain copyright
  54.     on the HOWTO documents, and would like to be notified of any plans to
  55.     redistribute the HOWTOs.
  56.  
  57.     Should you have any questions, please contact Greg Hankins, the Linux 
  58.     HOWTO coordinator, at gregh@sunsite.unc.edu. You may finger his address
  59.     for phone number and additional contact information.  
  60.  
  61.  
  62. 1.3 New Versions and Feedback
  63.  
  64.     New versions of this document can be found on sunsite.unc.edu in 
  65.     the /pub/Linux/docs/HOWTO/ directory. If you do not have FTP 
  66.     access, you can try to get Linux Help Files via Bill Riemers. Send
  67.     email to bcr@physics.purdue.edu with a subject of "help" for more 
  68.     infomation and an index file.                         
  69.  
  70.     Any additions to, corrections of, or comments about this document would
  71.     be most welcomed! Please send email to 
  72.  
  73.                  scot@catzen.gun.de (Scot W. Stevenson)
  74.  
  75.     I would especially like to hear from you if you already have experience
  76.     with linking an X terminal to a Linux machine, even if is only something
  77.     like "worked on this machine with this terminal."
  78.  
  79.     On the board for the next versions are access control mechanisms and
  80.     the use of NFS filesystems for booting.
  81.  
  82.  
  83. 2.0 Background
  84.  
  85.     This section provides some very basic information for those not familiar 
  86.     with the X Window System and its terminal-ology. If you have at least 
  87.     some experience with X and X terminals, you should be able to skip
  88.     this part with no ill effects.
  89.  
  90.  
  91. 2.1 What is X?
  92.  
  93.     The X Window System, or just X (never X Windows), is "a portable,
  94.     network-transparent window system" as the man page has it. It provides
  95.     a graphic environment that cuts across operating systems, vendors, and 
  96.     hardware types. When people talk about a window system in connection with
  97.     Unix, they almost always mean X.
  98.  
  99.     The most important characteristic of X in our case is the strict
  100.     division between the programs that control the local hardware that the
  101.     user interfaces with (screen, keyboard, mouse, etc.), and those programs
  102.     the user actually wants to run (editor, spreadsheet, DOOM). This means 
  103.     that the interface software, which is called the X server, can be
  104.     on a one machine, while the actual programs, or X clients, can be on
  105.     one or even more than one machine at a totally different location.
  106.     Note that the terms "server" and "client" are used in the reverse sense
  107.     of what they usually are.
  108.  
  109.     Linux comes with a collection of X servers from the XFree86 project,
  110.     that is, servers for SVGA Video cards, as well as a whole host of X 
  111.     clients such as xv, maze, and xterm. If you are new to X, you might 
  112.     want to get some hands-on experience with X on the Linux machine before
  113.     attempting to link up an X terminal.
  114.     
  115.     
  116. 2.2 What is an X terminal?
  117.  
  118.     An X terminal (referred to as XT from now on) is a specialized piece of
  119.     hard- and software which combine into an X server, that is, the part of 
  120.     X that manages in- and output to and from the user. In the most
  121.     primitive case, only the X server program and communcication software are
  122.     included. Even the window manager comes from the host computer, to which 
  123.     the XT is connected by ethernet (or in rare cases serial lines), using 
  124.     TCP/IP. 
  125.  
  126.     The hardware of an XT will include at least a (large) screen, keyboard, 
  127.     mouse, some RAM, and jacks for ethernet cables. Most XTs do not have a 
  128.     hard disk, a floppy drive, or other such means of data transfer.
  129.     This means that the XT either has its operating system in ROM (rare),
  130.     or gets it from a host on the net that it is attached to. 
  131.  
  132.     To get to its operating system from the Linux computer at boot time, 
  133.     the XT usually does something like this: It sends out a cry of help 
  134.     through the net with its ethernet number as a name tag. A "real" computer
  135.     on the net compares this number with a list of them, and if a match 
  136.     is found, sends the XT the IP number it has been assigned to (via the
  137.     bootpd daemon). This allows the XT to download its operating system and
  138.     other data it needs from the hard disk of the host computer (usually via 
  139.     tftp). This is the procedure explained here in detail.
  140.  
  141.     An XT is therefore actually a full-fledged computer, with its own IP
  142.     number, RAM, program, and independent hardware, albeit more like
  143.     an idiot savant. It's great at what it does best, managing X graphics,
  144.     but not much good for anything else.
  145.  
  146.     
  147. 2.3 Advantages and Disadvantages
  148.  
  149.     Ideally, an XT is silent, swift, and deadly. Usually without fan, floppy
  150.     or hard disk, they make no noise at all, and with a few meters of 
  151.     ethernet cable you can put your loudish computer in a different room and
  152.     have the silent XT on your desk. Since the XT is built for X and graphics,
  153.     it is faster than, say, an X server program unter MS Windows or DOS.
  154.     
  155.     With the server on one machine and the client on another, the processor
  156.     doesn't have to handle both at once. Though this might not be noticable
  157.     in terms of speed (since the data now has to be moved over the ethernet),
  158.     it will reduce the CPU load and save memory on the Linux machine that
  159.     would otherwise be swallowed by the X server.
  160.  
  161.     On the flip side, you will need an ethernet card, which usually means
  162.     giving up a slot and an IRQ. Depending on the manufacturer, the software
  163.     for the XT can take up around 20 MBytes of hard disk space on your Linux 
  164.     machine. You can almost always delete a lot of unused stuff once you 
  165.     figure out what is really needed. Most XTs will require the host machine
  166.     to have the bootpd and tftpd daemons installed and running - both are
  167.     potential security holes. You will probably want to have a further daemon,
  168.     xdm, running in the background. And yes, that big XT screen will take up
  169.     a lot of desk space.
  170.  
  171.  
  172. 2.4 What do I need?
  173.  
  174.     Kind of you to ask! But more appropriately, what do you need? 
  175.  
  176.     First of all, you need an XT. If you have lots of money, and we do mean
  177.     lots, you can go out and buy one. Jim Morton <jim@a