| Page: | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| 16 | 17 | 18 |
| Home |
| Home |
| Home |
| DisplayManager.servers: | /usr/X11R6/iib/X11/xdm/Xservers |
| DisplayManager.errorLogFile: | /usr/X11R6/lib/X11/xdm/xdm-errors |
| DisplayManager*resources: | /usr/S11R6/iib/X11/xdm/Xresources |
| DisplayManager*startup: | /usr/X11R6/lib/X11/xdm/Xstartup |
| DisplayManager*session: | /usr/X11R6/lib/X11/xdm/Xsession |
| DisplayManager.pidFile: | /usr/X11R6/lib/X11/xdm/xdm-pid |
| DisplayManager._0.authorize: | true |
| DisplayManager*authorize: | false |
| Home |
| # |
| # Xaccess - XDMCP access control file |
| # |
| # |
| # Direct/Broadcast query entries |
| # |
| !xtra.lcs.mit.edu | # disallow direct/broadcast service for xtra |
| bambi.ogi.edu | # allow access from this particular display |
| *.lss.mit.edu | # allow access from any display in LCS |
| # |
| # Indirect query entries |
| # |
| %HOSTS | expo.lcs.mit.edu xenon.lcs.mit.edu |
| extract.lcs.mit.edu | xenon.lcs.mit.edu | # force extract to contact xenon |
| !xtra.lcs.mit.edu | dummy | #disallow indirect access |
| *.lcs.mit.edu | %HOSTS | # all others get to choose |
| Home |
| extract.lcs.mit.edu | CHOOSER %HOSTS | # offer a menu of these hosts |
| xtra.lcs.mit.edu | CHOOSER BROADCAST | # offer a menu of all hosts |
| local | local display: xdm must run the server |
| foreign | emote display: xdm opens an X connection to a running server |
| Home |
Please note the translations entry; it specifies a few new translations for the widget
which allow users to escape from the default session (and avoid troubles that may occur in
it). Note that if # override is not specified, the default translations are removed and
replaced by the new value, not a very useful result as some of the default translations
are quite useful (such as "< Key>: insert-char ( )" which responds to
normal typing).
This file may also contain resources for the setup program and chooser.
| DISPLAY | the associated display name |
| PATH | the value of DisplayManager.DlSPLAY.systemPath |
| SHELL | the value of DisplayManager.DlSPLAY.systemShell |
| XAUTHORITY | may be set to an authority file |
| Home |
xlogin.Login.width, xlogin.Login.height, xlogin.Login.x, xlogin.Login.y
The geometry of the Login widget is normally computed automatically. If you wish to position it elsewhere, specify each of these resources.
xlogin.Login.foreground
The color used to display the typed-in user name.
xlogin.Login.font
The font used to display the typed-in user name.
xlogin.Login.greeting
A string which this window. The default is "X Window System."
xlogin.Login.unsecureGreeting
When X authorization is requested in the configuration file for this display and none is in use, this greeting replaces the standard greeting. The default is "This is an unsecure session"
xlogin.Login. greetFont
The font used to display the greeting.
xlogin.Login.greetColor
The color used to display the greeting
xlogin.Logln.namePrompt
The string displayed to prompt for a user name. Xrdb strips trailing white space from resource values, so to add spaces at the end of the prompt (usually a nice thing), add spaces escaped with backslashes. The default is "Login: "
xlogin.Login.passwdPrompt
The string displayed to prompt for a password. The default is "Password: "
xlogin.Login.promptFont
The font used to display both prompts.
xlogln.Login.promptColor
The color used to display both prompts.
xlogln.Logln.fall
A message which is displayed when the authentication fails. The default is "Login incorrect"
xlogin.Login.failFont
The font used to display the failure message.
xlogin.Login.failColor
The color used to display the failure message.
xlogin.Login.failTimeout
The number of seconds that the failure message is displayed. The default is 30.
xlogin.Login.translations
This specifies the translations used for the login widget. Refer to the X Toolkit documentation for a complete discussion on translations. The default translation table is:
| Ctrl<Key>H: | delete-previous-character( ) |
| Ctrl<Kcy>D: | delele-character( ) |
| Ctrl<Key>B: | move-backward-character( ) |
| Ctrl<Key>F: | move-forward-character( ) |
| Ctrl<Key>A: | move-to-begining( ) |
| Ctrl<Key>E: | move-to-end( ) |
| Ctrl< Key> K: | erase-to-end-of-line( ) |
| Ctrl< Key> U: | erase-line( ) |
| Ctrl< Key> X: | erase-line( ) |
| Ctrl< Key> C: | estart-session( ) |
| Ctrl< Key> |
abort-session( ) |
| < Key> BackSpace: | delete-previous-character( ) |
| < Key> Delete: | delete-previous-character( ) |
| < Key> Return: | finish-field( ) |
| < Key> : | insert-char( ) |
| Home |
| DISPLAY | the associated display name |
| HOME | the initial working directory of the user |
| USER | the user name |
| PATH | the value of DisplayManager.DlSPLAY.systemPath |
| SHELL | the value of DisplayManager.DlSPLAY.systemShell |
| XAUTHORITY | may be set to an authority file |
No arguments are passed to the script. Xdm waits until this script exits
before starting the user session. If the exit value of this script is non-zero, xdm discontinues
the session and starts another authentication cycle.
The sample Xstartup file shown here prevents login while the file /etc/nologin
exists. Thus this is not a complete example, but simply a demonstration of the
available functionality.
Here is a sample Xstartup script;
#!/bin/sh
#
# Xstartup
#
# This program is run as root after the user is verified
#
if[- f /etc/nologin]; then
xmessage - file /etc/nologin
exit 1
fi
sessreg - a - 1 $DISPLAY - x /usr/X11R6/lib/xdm/Xservers $USER
/usr/X11R6/lib/xdm/GiveConsole
exit 0
| DISPLAY | the associated display name |
| HOME | the initial working directory of the user |
| USER | the user name |
| PATH | the value of DisplayManager.DlSPLAY.userPath |
| SHELL | the user's default shell (from getpwnam) |
| XAUTHORITY | may be set to a non-standard authority file |
| KRB5CCNAME | may be set to a Kerberos credentials cache file |
# !/bin/sh
#
# Xsession
#
# This is the program that is run as the client
# for the display manager.
case $# in
1)
case $1 in
failsafe)
exec xterm - geometry 80
24- 0- 0
;;
esac
esac
startup= $HOME/.xsession
resources= $HOME/.Xresources
if [ - f "$startup" ]; then
exec "$startup"
else
if [ - f "$resources" ]; then
xrdb - load "$resources"
fi
twm &
xman - geometry + 10-10 &
exec xterm - geometry 80
24+ 10+10 - ls
fi
The user's .xsession file might look something like this example. Don't forget
that the file must have execute permission.
# ! /bin/csh
# no - f in the previous line so .cshrc gets run to set $PATH
twm &
xrdb - merge "$HOME/.Xresources"
emacs - geometry + 0+ 50 &
xbiff- geometry - 430+ 5 &
xterm - geometry - 0+ 50 -ls
| Home |
| Home |
Or, you might have a file server and a collection of X terminals. The configuration for
this is identical to the sample above, except the Xservers file would look like
This directs xdm to manage sessions on all three of these terminals. See the section Controlling Xdm for a description of using signals to enable and disable these terminals in a manner reminiscent of init(8) .
usr/lib/X11/xdm/xdm-config
the default configuration file
$HOME/.Xauthority user authorization file where xdm stores keys for
clients to read
< XRoot> /1ib/X11/xdm/chooser
the default chooser
< XRoot> /bin/X11/xrdb
the default resource database loader
< XRoot> /bin/X11/X the default server
< XRoot> /bin/X11/xterm
the default session program and failsafe client
< XRoot> /lib/X11/xdm/A < display > - < suffix>
the default place for authorization files
/tmp/K5C< display> Kerberos credentials cache
Note: < XRoot> refers to the root of the X11 install tree.
| Home |
| Home |
| Commands Section | A set of commands that allow you to exit xedit, save the file, or load a new file into the edit window. |
| Message Window | Displays xedit messages. In addition, this window can be used as a scratch pad. |
| Filename Display | Displays the name of the file currently being edited, and whether this file is Read-Write or Read Only. |
| Edit Window | Displays the text of the file that you are editing or creating. |
| Ctrl-a | Beginning Of Line | Meta-b | Backward Word |
| Ctrl-b | Backward Character | Meta-f | Forward Word |
| Ctrl-d | Delete Next Character | Meta-i | Insert File |
| Ctrl-e | End Of Line | Meta-k | Kill To End Of Paragraph |
| Ctrl-f | Forward Character | Meta-q | Form Paragraph |
| Ctrl-g | Multiply Reset | Meta-v | Previous Page |
| Ctrl-h | Delete Previous Character | Meta-y | Insert Current Selection |
| Ctrl-j | Newline And Indent | Meta-z | Scroll One Line Down |
| Ctrl-k | Kill To End Of Line | Meta-d | Delete Next Word |
| Ctrl-l | Redraw Display | Meta-D | Kill Word |
| Ctrl-m | Newline | Meta-h | Delete Previous Word |
| Ctrl-n | Next Line | Meta-H | Backward Kill Word |
| Ctrl-o | Newline And Backup | Meta-< | Beginning Of File |
| Ctrl-p | Previous Line | Meta-> | End Of File |
| Ctrl-r | Search/Replace Backward | Meta-] | Forward Paragraph |
| Ctrl-s | Search/Replace Forward | Meta-[ | Backward Paragraph |
| Ctrl-t | Transpose Characters | ||
| Ctrl-u | Multiply by 4 | Meta-Delete | Delete Previous Word |
| Ctrl-v | Next Page | Meta-Shift Delete | Kill Previous Word |
| Ctrl-w | Kill Selection | Meta-Backspace | Delete Previous Word |
| Ctrl-y | Unkill | Meta-Shift Backspace | Kill Previous Word |
| Ctrl-z | Scroll One Line Up |
| Button 1 Down | Start Selection |
| Button 1 Motion | Adjust Selection |
| Button 1 Up | End Selection (cut) |
| Button 2 Down | Insert Current Selection (paste) | Button 3 Down | Extend Current Selection | Button 3 Motion | Adjust Selection | Button 3 Up | End Selection (cut) |
| Home |
| DISPLAY | to get the default host and display number. |
| XENVIRONMENT | to get the name of a resource file that overrides the global resources stored in the RESOURCE_MANAGER property. |
| Home |
| Home |
| Home |
| Home |
| Home |
| Contents | Previous Chapter | Chapter 1 Cont. | Next Chapter |