- From local shell, type "xhost +". This will allow this client to connect to all hosts
- ssh to remote machine as: "ssh -Y -o ForwardX11Trusted=yes
". If after following steps it does not work, try "ssh -X -o ForwardX11=yes " (although this is less secure)
- Once we're in remote machine, type "xhost +" as well.
- if we just want to redirect a single X application, we can pass -display directly to the application. For example, to bring remote xterm window to our local screen, just type "xterm -display address
:0", e.g.: xterm -display 192.168.1.4:0
- If we want to redirect all new X applications to our local screen, modify environment variable DISPLAY. For example: export DISPLAY=192.168.1.4:0 and then type any GUI applications.
Friday, October 3, 2008
Using Xwindow client-server
Before starting, make sure both client and server (remote machine) have port 6000 open for Xserver (on SuSE, file /etc/sysconfig/displaymanager should contain DISPLAYMANAGER_XSERVER_TCP_PORT_6000_OPEN="yes"). Once you have changed it, restart Xwindow (or refresh it by pressing CTL-SHFT-BKSPACE).