home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / sun / admin / 8199 < prev    next >
Encoding:
Internet Message Format  |  1992-11-12  |  3.7 KB

  1. Path: sparky!uunet!ogicse!uwm.edu!rpi!psinntp!psinntp!intell!emcguire
  2. From: emcguire@intellection.com (Ed McGuire)
  3. Newsgroups: comp.sys.sun.admin
  4. Subject: xdm FAQ information (was: xdm)
  5. Message-ID: <EMCGUIRE.92Nov11153614@fuller.intellection.com>
  6. Date: 11 Nov 92 21:36:14 GMT
  7. Article-I.D.: fuller.EMCGUIRE.92Nov11153614
  8. References: <1992Nov10.010607.26431@ucc.su.OZ.AU>
  9. Sender: emcguire@intellection.com (Ed McGuire)
  10. Organization: Intellection, Inc.
  11. Lines: 77
  12. In-Reply-To: matth@extro.ucc.su.OZ.AU's message of Tue, 10 Nov 1992 01:06:07 GMT
  13.  
  14. In article <1992Nov10.010607.26431@ucc.su.OZ.AU> matth@extro.ucc.su.OZ.AU (Matthew Hannigan) writes:
  15.  
  16.    There seems to be a bit of interest in running xdm (I
  17.    would recommend it myself - we ran xdm even before getting
  18.    X terminals).  Is there interest in me posting a summary
  19.    of what is required?  Or is this info posted elsewhere?
  20.    (comp.windows.x FAQ?)
  21.  
  22. We run xdm and I've tried a couple of different startup methods with
  23. good success.
  24.  
  25. But first, note that I link the /usr/openwin files to the canonical
  26. MIT locations.  I wrote a script which maintains these links so that I
  27. can NFS import /usr/openwin or MIT X11R4 and easily set up the
  28. canonical paths on a client.  The same script also links in OSF/Motif.
  29. The links maintained are:
  30.  
  31.     /usr/include/X11
  32.     /usr/bin/{X11,mwm,uil}
  33.     /usr/lib/{X11,Mrm,Xm,uil}
  34.     /usr/lib/lib*.a (a link for each ar library)
  35.  
  36. Here is how to start xdm from /etc/rc.local If you don't create the
  37. canonical links, you would need to edit the paths to go through
  38. OPENWINHOME and also set LD_LIBRARY_PATH.
  39.  
  40. if [ -f /usr/bin/X11/xdm ]; then
  41.     OPENWINHOME=/usr/openwin /usr/bin/X11/xdm -config /usr/lib/X11/xdm/xdm-config &&
  42.                 echo -n ' xdm (OpenWindows)'
  43. fi
  44.  
  45. Or, init can spawn xdm as a replacement for the console getty; in that
  46. case, the following line in /etc/ttytab will work, in conjunction with
  47. the script which follows it.  The assumptions here are the same as for
  48. the /etc/rc.local excerpt above.
  49.  
  50. console "/usr/local/admin/startxdm"    X        on local secure
  51.  
  52. #! /bin/sh
  53. OPENWINHOME=/usr/openwin ; export OPENWINHOME
  54. exec /usr/bin/X11/xdm -nodaemon -config /usr/lib/X11/xdm/xdm-config
  55.  
  56. Note that it should be unnecessary to use -config to locate the config
  57. file, but Sun changed the default path from the standard one.
  58.  
  59. Several other changes were necessary in /usr/lib/X11/xdm:
  60.  
  61.   o  Sun added fancy custom colors to Xresources for some of the xlogin
  62.      resources, and these needed to be removed again or a B/W terminal
  63.      displayed fonts and backgrounds in the same color.
  64.  
  65.   o  Sun customized the standard MIT Xsession file, changing the name
  66.      of the user startup file from .xsession to .xinitrc, which just
  67.      confused people and caused problems with existing .xinitrc files
  68.      breaking xdm, so I reverted it to .xsession (the name in the man
  69.      page).
  70.  
  71.   o  Sun changed DisplayManager*authorize in xdm-config to true, which
  72.      gratuitously breaks all X terminals unless you go to the trouble
  73.      of setting up magic cookie authorization.
  74.  
  75.   o  Sun redirected the location of the authorization file to
  76.      /usr/tmp/server-auth, a big no-no that flies directly in the face
  77.      of the man page warning: "It should be kept in a directory which
  78.      is not world-writable as it could easily be removed, disabling
  79.      the authorization mechanism in the server."
  80.  
  81. If you put in the links I suggested above, you can just throw away the
  82. Sun config files and replace them with standard MIT X11R4 ones,
  83. avoiding all the crap.
  84.  
  85. Regards, Ed
  86. -- 
  87. Ed McGuire                   1603 LBJ Freeway, Suite 780
  88. Systems Administrator/       Dallas, Texas 75234
  89.  Member of Technical Staff   214/620-2100, FAX 214/484-8110
  90. Intellection, Inc.           <ed@intellection.com>
  91.