Prev | Current Page 73 | Next

Chris Tyler

"X Power Tools"


2.11 Starting X Within X
It can be a nuisance to continually switch VTs when testing an X setup. An alternative
is Xnest, an X server that does not drive a video card. Instead, Xnest displays its
output in a window on another X server??™s display.
The screen dump in Figure 2-1 is from a Fedora system and shows Xnest displaying a
KDE session in a window within a GNOME session.
To start Xnest on the current display, use the following:
$ Xnest :1
It is necessary to specify the display number to prevent conflicts with the existing
display.
To start Xnest with a particular client, you can use the startx script:
$ startx /usr/bin/startkde -- /usr/bin/Xnest :1
2.12
2.12 No Mouse! 37
Since Xnest does not directly interact with any real hardware, you can set the screen
size to any arbitrary value using the -geometry option. You can also test a multiscreen
display using the -scrns option. To start Xnest with two screens of 600 ?— 400
pixels, use the following:
$ Xnest -scrns 2 -geometry 600x400 :1
The Xnest server has not been updated for several years, so it does not
include current extensions such as RENDER. This may cause newer
applications to operate poorly or to completely fail.


Pages:
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85