9.4.4 X clients
Most X client programs can be started with a command like this:
client $ xterm -geometry 80x24+30+200 -fn 6x10 -display hostname:0 &
Here, the optional command-line arguments mean:
The default displayname for the X client program
(application side) can be set by the DISPLAY environment variable. For
example, prior to running an X client program, executing one of the following
commands achieves this:
$ export DISPLAY=:0
# The default, local machine using the first X screen
$ export DISPLAY=hostname.fulldomain.name:0.2
$ export DISPLAY=localhost:0
Its startup can be customized by ~/.xinitrc
. For example:
xrdb -load $HOME/.Xresources
xsetroot -solid gray &
xclock -g 50x50-0+0 -bw 0 &
xload -g 50x50-50+0 -bw 0 &
xterm -g 80x24+0+0 &
xterm -g 80x24+0-0 &
twm
As described in
Custom X sessions, Section 9.4.5.1,
this overrides everything normal execution of Xsession
does when
started from startx
. Use ~/.xsession
instead and use
this approach only as the last resort. See xsetroot(1x)
,
xset(1x)
, and
X resources, Section
9.4.10.