X(1) X(1) NAME X − a portable, network-transparent window system SYNOPSIS The X Window System is a network transparent window system which runs on a wide range of com- puting and graphics machines. It should be relatively straightforward to build the X Consortium soft- ware distribution on most ANSI C and POSIX compliant systems. Commercial implementations are also available for a wide range of platforms. The X Consortium requests that the following names be used when referring to this software: X X Window System X Version 11 X Window System, Version 11 X11 X Window System is a trademark of X Consortium, Inc. DESCRIPTION X Window System servers run on computers with bitmap displays. The server distributes user input to and accepts output requests from various client programs through a variety of different interprocess communication channels. Although the most common case is for the client programs to be running on the same machine as the server, clients can be run transparently from other machines (including machines with different architectures and operating systems) as well. X supports overlapping hierarchical subwindows and text and graphics operations, on both mono- chrome and color displays. For a full explanation of the functions that are available, see the Xlib - C Language X Interface manual, the X Window System Protocol specification, the X Toolkit Intrinsics - C Language Interface manual, and various toolkit documents. The number of programs that use X is quite large. Programs provided in the core X Consortium distri- bution include: a terminal emulator (xterm), a window manager (twm), a display manager (xdm), a con- sole redirect program (xconsole), a mail interface (xmh), a bitmap editor (bitmap), resource list- ing/manipulation tools (appres, editres), access control programs (xauth, xhost, and iceauth), user pref- erence setting programs (xrdb, xcmsdb, xset, xsetroot, xstdcmap, and xmodmap), clocks (xclock and oclock), a font displayer (xfd), utilities for listing information about fonts, windows, and displays (xls- fonts, xwininfo, xlsclients, xdpyinfo, xlsatoms, and xprop), screen image manipulation utilities (xwd, xwud, and xmag), a performance measurement utility (x11perf), a font compiler (bdftopcf), a font server and related utilities (xfs, fsinfo, fslsfonts, fstobdf), an X Image Extension exerciser (xieperf), a display server and related utilities (Xserver, rgb, mkfontdir), remote execution utilities (rstart and xon), a clip- board manager (xclipboard), a keyboard description compiler (xkbcomp), a utility to terminate clients (xkill), and a utility to cause part or all of the screen to be redrawn (xrefresh). Many other utilities, window managers, games, toolkits, etc. are included as user-contributed software in the X Consortium distribution, or are available using anonymous ftp on the Internet. See your site administrator for details. STARTING UP There are two main ways of getting the X server and an initial set of client applications started. The particular method used depends on what operating system you are running and whether or not you use other window systems in addition to X. xdm (the X Display Manager) If you want to always have X running on your display, your site administrator can set your machine up to use the X Display Manager xdm. This program is typically started by the sys- tem at boot time and takes care of keeping the server running and getting users logged in. If you are running xdm, you will see a window on the screen welcoming you to the system and asking for your username and password. Simply type them in as you would at a normal ter- minal, pressing the Return key after each. If you make a mistake, xdm will display an error message and ask you to try again. After you have successfully logged in, xdm will start up your X environment. By default, if you have an executable file named .xsession in your home directory, xdm will treat it as a program (or shell script) to run to start up your initial clients X Version 11 Release 6 1 X(1) X(1) (such as terminal emulators, clocks, a window manager, user settings for things like the back- ground, the speed of the pointer, etc.). Your site administrator can provide details. xinit (run manually from the shell) Sites that support more than one window system might choose to use the xinit program for starting X manually. If this is true for your machine, your site administrator will probably have provided a program named "x11", "startx", or "xstart" that will do site-specific initial- ization (such as loading convenient default resources, running a window manager, displaying a clock, and starting several terminal emulators) in a nice way. If not, you can build such a script using the xinit program. This utility simply runs one user-specified program to start the server, runs another to start up any desired clients, and then waits for either to finish. Since either or both of the user-specified programs may be a shell script, this gives substantial flexi- bility at the expense of a nice interface. For this reason, xinit is not intended for end users. DISPLAY NAMES From the user’s prospective, every X server has a display name of the form: hostname:displaynumber.screennumber This information is used by the application to determine how it should connect to the server and which screen it should use by default (on displays with multiple monitors): hostname The hostname specifies the name of the machine to which the display is physically con- nected. If the hostname is not given, the most efficient way of communicating to a server on the same machine will be used. displaynumber The phrase "display" is usually used to refer to collection of monitors that share a common keyboard and pointer (mouse, tablet, etc.). Most workstations tend to only have one keyboard, and therefore, only one display. Larger, multi-user systems, however, frequently have sev eral displays so that more than one person can be doing graphics work at once. To avoid confusion, each display on a machine is assigned a display number (beginning at 0) when the X server for that display is started. The display number must always be given in a display name. screennumber Some displays share a single keyboard and pointer among two or more monitors. Since each monitor has its own set of windows, each screen is assigned a screen number (beginning at 0) when the X server for that display is started. If the screen number is not given, screen 0 will be used. On POSIX systems, the default display name is stored in your DISPLAY environment variable. This variable is set automatically by the xterm terminal emulator. Howev er, when you log into another machine on a network, you will need to set DISPLAY by hand to point to your display. For example, % setenv DISPLAY myws:0 $ DISPLAY=myws:0; export DISPLAY The xon script can be used to start an X program on a remote machine; it automatically sets the DIS- PLAY variable correctly. Finally, most X programs accept a command line option of -display displayname to temporarily over- ride the contents of DISPLAY. This is most commonly used to pop windows on another person’s screen or as part of a "remote shell" command to start an xterm pointing back to your display. For example, % xeyes -display joesws:0 -geometry 1000x1000+0+0 % rsh big xterm -display myws:0 -ls </dev/null & X servers listen for connections on a variety of different communications channels (network byte streams, shared memory, etc.). Since there can be more than one way of contacting a given server, The hostname part of the display name is used to determine the type of channel (also called a transport layer) to be used. X servers generally support the following types of connections: X Version 11 Release 6 2 X(1) X(1) local The hostname part of the display name should be the empty string. For example: :0, :1, and :0.1. The most efficient local transport will be chosen. TCP IP The hostname part of the display name should be the server machine’s IP address name. Full Internet names, abbreviated names, and IP addresses are all allowed. For example: x.org:0, expo:0, 198.112.45.11:0, bigmachine:1, and hydra:0.1. DECnet The hostname part of the display name should be the server machine’s nodename, followed by two colons instead of one. For example: myws::0, big::1, and hydra::0.1. ACCESS CONTROL An X server can use several types of access control. Mechanisms provided in Release 6 are: Host Access Simple host-based access control. MIT-MAGIC-COOKIE-1 Shared plain-text "cookies". XDM-AUTHORIZATION-1 Secure DES based private-keys. SUN-DES-1 Based on Sun’s secure rpc system. MIT-KERBEROS-5 Kerberos Version 5 user-to-user. Xdm initializes access control for the server and also places authorization information in a file accessi- ble to the user. Normally, the list of hosts from which connections are always accepted should be empty, so that only clients with are explicitly authorized can connect to the display. When you add entries to the host list (with xhost), the server no longer performs any authorization on connections from those machines. Be careful with this. The file from which Xlib extracts authorization data can be specified with the environment variable XAUTHORITY, and defaults to the file .Xauthority in the home directory. Xdm uses $HOME/.Xau- thority and will create it or merge in authorization records if it already exists when a user logs in. If you use several machines and share a common home directory across all of the machines by means of a network file system, you never really have to worry about authorization files, the system should work correctly by default.
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages12 Page
-
File Size-