Sunday, February 17, 2013

How to connect to linux box and run the box's X windows?

This is another tutorial on how to connect to a linux box remotely and launch anything on the remote X windows. Here's the steps:

1. Launch Putty and login to remote linux box.
2. type 'startx &' to launch x windows on remote linux box if remote linux box's x windows was not launch yet.
3. Here's the important steps which is to type in 'export DISPLAY=:0' to make sure the ssh command will launch apps on the remote machine x windows. *The default is :0 and if there's x windows running elsewhere on the remote linux box, you may try to change 0 with other number.

 Have fun.