I use rootless mode.
#!/bin/sh # graphic mode #/usr/X11R6/bin/XWin.exe -screen 0 800x600 # fullscreen #/usr/X11R6/bin/XWin.exe -fullscreen -depth 32 # multiwindow #/usr/X11R6/bin/XWin.exe -multiwindow # rootless /usr/X11R6/bin/XWin.exe -rootless
$ run xwin -multiwindow -noclipboard <- start XWin Server $ export DISPLAY=":0.0" $ xhost + $ ssh -XC USER@192.168.0.10 <- -X : enable X11 port forwarding -C : Requests compression of all data # xauth list # xclock
$ startxwin.exe <- start XWin Server $ export DISPLAY="localhost:0.0" $ xhost 192.168.100.5 <- Linux Server
# export DISPLAY=192.168.0.10:0.0 <- Windows # xclock
Before 2014
$ startxwin.exe <- start XWin Server $ export DISPLAY=":0.0" $ xhost + $ ssh -XC USER@192.168.0.10 <- -Y : enable X11 port forwarding -C : Requests compression of all data # xclock
$ xauth list localhost/unix:10 MIT-MAGIC-COOKIE-1 yyyyyyyyyyyyyyyyyyy $ echo $DISPLAY localhost:10.0 $ su - # echo $DISPLAY localhost:11.0 # export DISPLAY=localhost:11.0 <- If you have if the result of 'echo $DISPLAY' is different # xauth add localhost/unix:11 MIT-MAGIC-COOKIE-1 yyyyyyyyyyyyyyyyyyy # xclock