Xnest
From Gentoo Linux Wiki
Contents |
[edit] About
Xnest is a client and a server. Xnest is a client of the real server which manages windows and graphics requests on its behalf.
Xnest is a server to its own clients.
Xnest manages windows and graphics requests on their behalf. To these clients Xnest appears to be a conventional server.
-Xnest man page
[edit] Running KDE inside a window using Xnest
For KDE you need a to make the file: .xinitrc-kde in your home directory that contains the following:
#!/bin/sh
exec /usr/kde/3.4/bin/startkde code>
Note that you may need to change the location of startkde
To find the location of startkde you can simply:
slocate */bin/startkde code>
To start a new kde session inside of a 1024x768 window simply issue the following command:
xinit ~/.xinitrc-kde -- `which Xnest` :5 -geometry 1024x768 code>
TIP: su to a different user before running the command to run KDE as that user, but remeber to copy the .xinitrc-kde file to the users home you wish to login as.
cp ~/.xinitrc-kde /home/USER code>
su USER code>
xinit ~/.xinitrc-kde -- `which Xnest` :5 -geometry 1024x768 code>
[edit] Making an Alias
To make an alias add the following to ~/.bashrc (per user alias) or /etc/bashrc (Globaly):
alias nestkde="xinit ~/.xinitrc-kde -- `which Xnest` :5 -geometry 1024x768" code>
Then to make the alias active (with out restarting bash)
source ~/.bashrc OR source /etc/bashrc code>
now all you have to do is run nestkde and up will pop KDE in a 1024x768 window.
for full alias information visit: TIP_alias
[edit] Displays
The default X server ":0" will be in use and therefore you will not be able to use it, thus we must use a display higher than that (and that is not in use) Also, if you want to be able to launch more than one Xnest session, each of these will need to have a different display number.
The -geometry argument tells Xnest the size of window you want.
If you get an error try using a different display :6 and so on.
For more info:
man Xnest code>
[edit] Arguments for Xnest
use: X [:<display>] [option]
- -a #
- mouse acceleration (pixels)
- -ac
- disable access control restrictions
- -audit int
- set audit trail level
- -auth file
- select authorization file
- bc
- enable bug compatibility
- -br
- create root window with black background
- +bs
- enable any backing store support
- -bs
- disable any backing store support
- -c
- turns off key-click
- c #
- key-click volume (0-100)
- -cc int
- default color visual class
- -co file
- color database file
- -core
- generate core dump on fatal error
- -dpi int
- screen resolution in dots per inch
- dpms
- enables VESA DPMS monitor control
- -dpms
- disables VESA DPMS monitor control
- -deferglyphs
- [none|all|16] defer loading of [no|all|16-bit] glyphs
- -f #
- bell base (0-100)
- -fc string
- cursor font
- -fn string
- default font name
- -fp string
- default font path
- -help
- prints message with these options
- -I
- ignore all remaining arguments
- -ld int
- limit data space to N Kb
- -lf int
- limit number of open files to N
- -ls int
- limit stack space to N Kb
- -nolock
- disable the locking mechanism
- -logo
- enable logo in screen saver
- nologo
- disable logo in screen saver
- -nolisten string
- don't listen on protocol
- -noreset
- don't reset after last client exists
- -reset
- reset after last client exists
- -p #
- screen-saver pattern duration (minutes)
- -pn
- accept failure to listen on all ports
- -nopn
- reject failure to listen on all ports
- -r
- turns off auto-repeat
- r
- turns on auto-repeat
- -render
- [default|mono|gray|color] set render color alloc policy
- -s #
- screen-saver timeout (minutes)
- -sp file
- security policy file
- -su
- disable any save under support
- -t #
- mouse threshold (pixels)
- -terminate
- terminate at server reset
- -to #
- connection time out
- -tst
- disable testing extensions
- ttyxx
- server started from init on /dev/ttyxx
- v
- video blanking for screen-saver
- -v
- screen-saver without video blanking
- -wm
- WhenMapped default backing-store
- -x string
- loads named extension at init time
- -maxbigreqsize
- set maximal bigrequest size
- +xinerama
- Enable XINERAMA extension
- -xinerama
- Disable XINERAMA extension
- -dumbSched
- Disable smart scheduling, enable old behavior
- -schedInterval int
- Set scheduler interval in msec
- +extension name
- Enable extension
- -extension name
- Disable extension
- -query host-name
- contact named host for XDMCP
- -broadcast
- broadcast for XDMCP
- -multicast
- [addr [hops]] IPv6 multicast for XDMCP
- -indirect host-name
- contact named host for indirect XDMCP
- -port port-num
- UDP port number to send messages to
- -from local-address
- specify the local address to connect from
- -once
- Terminate server after one session
- -class display-class
- specify display class to send in manage
- -cookie xdm-auth-bits
- specify the magic cookie for XDMCP
- -displayID display-id
- manufacturer display ID for request
The X Keyboard Extension adds the following arguments:
- -kb
- disable the X Keyboard Extension
- +kb
- enable the X Keyboard Extension
- [+-]accessx [ timeout [ timeout_mask [ feedback [ options_mask] ] ] ]
:enable/disable accessx key sequences
- -ar1
- set XKB autorepeat delay
- -ar2
- set XKB autorepeat interval
- -noloadxkb
- don't load XKB keymap description
- -xkbdb
- file that contains default XKB keymaps
- -xkbmap
- XKB keyboard description to load on startup
- -display string
- display name of the real server
- -sync
- sinchronize with the real server
- -full
- utilize full regeneration
- -class string
- default visual class
- -depth int
- default depth
- -sss
- use software screen saver
- -geometry WxH+X+Y
- window size and position
- -bw int
- window border width
- -name string
- window name
- -scrns int
- number of screens to generate
- -install
- instal colormaps directly
Sizaint 00:39, 23 May 2006 (UTC)
