Xwindows within Xwindow
Use Xephyr
Xephyr :1 -broadcast -screen 1024x768
# or
Xephyr :1 -query 1.2.3.4 1024x768
Xephyr -ac -screen 1280x1024 -reset -terminate 2> /dev/null :1 &
* The ":1" = your display (displays are numbered starting with 0)
* -ac = disable access control restrictions= allow you to forward X
* -screen 1280x1024 = screen size
* -reset -terminate= Xephyr should automatically close when the last X client is killed, does not always work.
* 2> /dev/null redirects error messages.
Configure xorg.conf
# generates xorg.conf.new in /root
Xorg -configure
# test the new config
Xorg -config xorg.conf.new
Xforwarding & ssh
ssh to the remote host and start graphical applications on local display
ssh -Y user@remote_host
firefox &
Using vnc with X window managers
VNC-server dependencies
xorg-x11-twm xterm xorg-x11-xauth xinitrc vnc-server
Put this in ~/.vnc/xstartup
#!/bin/sh
xrdb $HOME/.Xresources
xsetroot -solid grey
gnome-session
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
xterm &
I think you can do this to start xfce or kde instead
startxfce4 &
# OR
# startkde &
VNC and ssh tunnel
Start vnc via xinetd by putting this file in /etc/xinetd.d
service vnc
{ flags = REUSE
protocol = tcp socket_type = stream wait = no
user = admin
server = /usr/bin/Xvnc
server_args = -inetd -query localhost -once -securitytypes=none
only_from = 127.0.0.1
disable = no
}
Add a line to /etc/services, and restart xinetd
Then from the connecting workstation, issue the following to bring up a ssh tunnel and start vncviewer:
ssh -L15900:localhost:5900 user@remote-server.com
vncviewer localhost:15900
Capturing mouse / keyboard event under X
use xev
Enabling wide-screen support with ATI fglrx driver
Somehow, wide-screen resolution is not available after installing the ATI driver (I have a Raedon 9600). But it CAN be enabled by tweaking parameters in /etc/X11/xorg.conf. Specifically the line
Modes "1440x900" and
Virtual 1440 900. My full
xorg.conf∞
Section "Screen"
Identifier "aticonfig-Screen[0]"
Device "aticonfig-Device[0]"
Monitor "aticonfig-Monitor[0]"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1440x900" "1280x768"
Virtual 1440 900
EndSubSection
EndSection
There are no comments on this page. [Add comment]