The clients are specified in the script ~/.xinitrc in your home directory,
2.10
36 Chapter 2: Starting a Local X Server
if it exists; otherwise, /etc/X11/xinit/xinitrc is used. Most distributions ship with the
default script configured to start a desktop environment (KDE or GNOME).
Some SVR4x configurations and Fedora use a system-wide xinitrc
script, which in turn looks for a script named ~/.Xclients. If present,
the ~/.Xclients file is used to start a customized list of clients. Note that
~/.xinitrc takes precedence over ~/.Xclients (also note the difference in
capitalization).
2.10 Switching VTs from the Shell Prompt
The Linux switchto or chvt command permits you to change the currently displayed
virtual terminal. If you are logged into VT1 in character mode, you can change to an
X server running on VT7:
$ switchto 7
Or:
$ chvt 7
You can run this using your normal user permissions from a character-mode VT.
However, you must use root privilege to run switchto/chvt from a X session:
# switchto 1
You can log in from another machine and run this command even when you can??™t
switch VTs using the keyboard. I??™ve used it to remotely change the VT of a new
Linux user while talking her through a problem on the phone (she had accidentally
switched to VT4 and couldn??™t get back to her X session).
Pages:
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84