home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / ultrix / 9269 < prev    next >
Encoding:
Text File  |  1993-01-12  |  4.1 KB  |  127 lines

  1. Newsgroups: comp.unix.ultrix
  2. Path: sparky!uunet!haven.umd.edu!decuac!alf.dec.com!decatl.alf.dec.com!ford
  3. From: ford@decatl.alf.dec.com (Jeff Ford)
  4. Subject: Re: Use of xdm for local display
  5. Message-ID: <1993Jan12.212148.14852@netnews.alf.dec.com>
  6. Lines: 114
  7. Sender: ford@squirm.alf.dec.com (Jeff Ford)
  8. Reply-To: ford@alf.dec.com
  9. Organization: Digital Equipment Corporation
  10. References:  <1993Jan12.123849.17107@magnus.acs.ohio-state.edu> <1993Jan12.145053.13131@nntpd.lkg.dec.com>
  11. Date: Tue, 12 Jan 1993 21:21:48 GMT
  12.  
  13.  
  14.  
  15. This is the worksheet that I FAX to my users who want to switch from dxsession
  16. to xdm.
  17.                     - Jeff Ford/DEC Customer Support
  18.  
  19. --------------------------
  20.  
  21. Switching from /usr/bin/login and /usr/bin/dxsession to xdm:
  22.  
  23. (1) Make sure you have installed the MIT X utilities (UDXUNMIT4xx)
  24.     from the unsupported tape.
  25.  
  26. (2) Add xdm startup lines to /etc/rc.local
  27.  
  28.     .
  29.     .
  30.     .
  31. #
  32. # xdm startup
  33. #
  34. [ -f /usr/bin/X11/xdm ] && {
  35.     /usr/bin/X11/xdm -error /usr/adm/X0.msgs &
  36.     echo " X Window System Started" > /dev/console
  37. }
  38.  
  39. (3) Comment out/remove the console startup line from /etc/ttys
  40.  
  41. #:0 "/usr/bin/login -P /usr/bin/Xprompter -C /usr/bin/dxsession -e" none on
  42.     secure window="/usr/bin/Xws -bs -su bc -once"
  43.  
  44. (4) Copy the /usr/lib/X11/xdm/Xservers.ws template file to
  45.     /usr/lib/X11/xdm/Xservers
  46.  
  47. (5) Modify the last line of /usr/lib/X11/xdm/Xservers to start up the
  48.     Xserver. Replace the X server that's there with the server startup
  49.     line you commented out in /etc/ttys following "window="
  50.  
  51.     .
  52.     .
  53.     .
  54. :0 local /usr/bin/Xws -bs -su bc -once
  55.  
  56. (6) Create a file called .xsession in each user's login area. This file
  57.     should be an executable shell file that takes the place of .X11Startup
  58.     and .Xdefaults. In it, you start up any applications that need to be
  59.     started, and then you start up the window manager. 
  60.  
  61.     The xdm session is over when execution of the .xsession file completes.
  62.     That is why the last command in the .xsession file can't be placed in
  63.     the background. That last command is called the "controlling process."
  64.     When the controlling process exists, your xdm session is over, and you
  65.     are logged out of the workstation.
  66.  
  67.     Here is a sample .xsession file. The window manager is the controlling
  68.     process.
  69.  
  70. #!/bin/csh
  71. xrdb <.Xdefaults
  72. xhosts +
  73. dxue &
  74. /usr/bin/mwm
  75.  
  76.     If you wanted to start an application, this is where you would put it.
  77.  
  78.     Important: do not put the window manager in the background.
  79.  
  80.     Important: make the .xsession file executable
  81.  
  82. % chmod +x .xsession
  83.  
  84. (7) To exit from this xdm session, you must quit out of the window manager.
  85.     If you are running Motif, you can use the root menu to do that. If you
  86.     don't already have a .mwmrc in your home directory, copy
  87.     /usr/lib/X11/system.mwmrc to ~/.mwmrc.
  88.  
  89.     Modify the RootMenu definition in the following way:
  90.  
  91. Menu RootMenu
  92. {
  93.         "Workspace"             f.title
  94.         "Shuffle Up"            f.circle_up
  95.         "Shuffle Down"          f.circle_down
  96.         "Next Window"           f.next_key
  97.         "Previous Window"       f.prev_key
  98.         no-label                f.separator
  99.         "Pack Icons"            f.pack_icons
  100.         "Options"               f.menu MwmCustomizeRootMenu
  101.         no-label                f.separator
  102.         "Restart..."            f.restart
  103.         "Help"                  f.menu MwmHelpRootMenu
  104. }
  105.     becomes:
  106.  
  107. Menu RootMenu
  108. {
  109.         "Workspace"             f.title
  110.         "Shuffle Up"            f.circle_up
  111.         "Shuffle Down"          f.circle_down
  112.         "Next Window"           f.next_key
  113.         "Previous Window"       f.prev_key
  114.         no-label                f.separator
  115.         "Pack Icons"            f.pack_icons
  116.         "Options"               f.menu MwmCustomizeRootMenu
  117.         no-label                f.separator
  118.         "Restart..."            f.restart
  119.         no-label                f.separator                         |
  120.         "Quit MWM"              f.quit_mwm                          |
  121.         "Help"                  f.menu MwmHelpRootMenu
  122. }
  123.  
  124.     This will enable you to quit out of Mwm by clicking and holding the MB3
  125.     button on the root window, and dragging down to the "Quit MWM" option and
  126.     releasing the MB3 button.
  127.