Suppose we have 2 Linux machines. One (mongo) is in front you and another (kiwi) is on upstair. You want to start some X Windows Applications on kiwi but don't want to go upstair. What you can do is start xterm on mongo.
mongo > xhost +kiwi
mongo > ssh -X username@kiwi
Once you are ssh-ed in kiwi, run the X Windows Applications, for example, evolution, or mozilla. The graphic interface will pop up on mongo instead.
kiwi > mozilla
When all done, exit from kiwi ssh session, and remove the remote host if not needed anymore
mongo > xhost -kiwi
If not ssh, you also need set DISPLAY on kiwi. For example, if you are using bash,
kiwi > export DISPLAY=mongo:0
One related topic, you can use
/usr/X11R6/bin/X -query the.unies.server
mongo > xhost +kiwi
mongo > ssh -X username@kiwi
Once you are ssh-ed in kiwi, run the X Windows Applications, for example, evolution, or mozilla. The graphic interface will pop up on mongo instead.
kiwi > mozilla
When all done, exit from kiwi ssh session, and remove the remote host if not needed anymore
mongo > xhost -kiwi
If not ssh, you also need set DISPLAY on kiwi. For example, if you are using bash,
kiwi > export DISPLAY=mongo:0
One related topic, you can use
/usr/X11R6/bin/X -query the.unies.server
Comments
Post a Comment