home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.ultrix
- Path: sparky!uunet!haven.umd.edu!decuac!alf.dec.com!decatl.alf.dec.com!ford
- From: ford@decatl.alf.dec.com (Jeff Ford)
- Subject: Re: Use of xdm for local display
- Message-ID: <1993Jan12.212148.14852@netnews.alf.dec.com>
- Lines: 114
- Sender: ford@squirm.alf.dec.com (Jeff Ford)
- Reply-To: ford@alf.dec.com
- Organization: Digital Equipment Corporation
- References: <1993Jan12.123849.17107@magnus.acs.ohio-state.edu> <1993Jan12.145053.13131@nntpd.lkg.dec.com>
- Date: Tue, 12 Jan 1993 21:21:48 GMT
-
-
-
- This is the worksheet that I FAX to my users who want to switch from dxsession
- to xdm.
- - Jeff Ford/DEC Customer Support
-
- --------------------------
-
- Switching from /usr/bin/login and /usr/bin/dxsession to xdm:
-
- (1) Make sure you have installed the MIT X utilities (UDXUNMIT4xx)
- from the unsupported tape.
-
- (2) Add xdm startup lines to /etc/rc.local
-
- .
- .
- .
- #
- # xdm startup
- #
- [ -f /usr/bin/X11/xdm ] && {
- /usr/bin/X11/xdm -error /usr/adm/X0.msgs &
- echo " X Window System Started" > /dev/console
- }
-
- (3) Comment out/remove the console startup line from /etc/ttys
-
- #:0 "/usr/bin/login -P /usr/bin/Xprompter -C /usr/bin/dxsession -e" none on
- secure window="/usr/bin/Xws -bs -su bc -once"
-
- (4) Copy the /usr/lib/X11/xdm/Xservers.ws template file to
- /usr/lib/X11/xdm/Xservers
-
- (5) Modify the last line of /usr/lib/X11/xdm/Xservers to start up the
- Xserver. Replace the X server that's there with the server startup
- line you commented out in /etc/ttys following "window="
-
- .
- .
- .
- :0 local /usr/bin/Xws -bs -su bc -once
-
- (6) Create a file called .xsession in each user's login area. This file
- should be an executable shell file that takes the place of .X11Startup
- and .Xdefaults. In it, you start up any applications that need to be
- started, and then you start up the window manager.
-
- The xdm session is over when execution of the .xsession file completes.
- That is why the last command in the .xsession file can't be placed in
- the background. That last command is called the "controlling process."
- When the controlling process exists, your xdm session is over, and you
- are logged out of the workstation.
-
- Here is a sample .xsession file. The window manager is the controlling
- process.
-
- #!/bin/csh
- xrdb <.Xdefaults
- xhosts +
- dxue &
- /usr/bin/mwm
-
- If you wanted to start an application, this is where you would put it.
-
- Important: do not put the window manager in the background.
-
- Important: make the .xsession file executable
-
- % chmod +x .xsession
-
- (7) To exit from this xdm session, you must quit out of the window manager.
- If you are running Motif, you can use the root menu to do that. If you
- don't already have a .mwmrc in your home directory, copy
- /usr/lib/X11/system.mwmrc to ~/.mwmrc.
-
- Modify the RootMenu definition in the following way:
-
- Menu RootMenu
- {
- "Workspace" f.title
- "Shuffle Up" f.circle_up
- "Shuffle Down" f.circle_down
- "Next Window" f.next_key
- "Previous Window" f.prev_key
- no-label f.separator
- "Pack Icons" f.pack_icons
- "Options" f.menu MwmCustomizeRootMenu
- no-label f.separator
- "Restart..." f.restart
- "Help" f.menu MwmHelpRootMenu
- }
- becomes:
-
- Menu RootMenu
- {
- "Workspace" f.title
- "Shuffle Up" f.circle_up
- "Shuffle Down" f.circle_down
- "Next Window" f.next_key
- "Previous Window" f.prev_key
- no-label f.separator
- "Pack Icons" f.pack_icons
- "Options" f.menu MwmCustomizeRootMenu
- no-label f.separator
- "Restart..." f.restart
- no-label f.separator |
- "Quit MWM" f.quit_mwm |
- "Help" f.menu MwmHelpRootMenu
- }
-
- This will enable you to quit out of Mwm by clicking and holding the MB3
- button on the root window, and dragging down to the "Quit MWM" option and
- releasing the MB3 button.
-