Thursday, January 24, 2008

Accessing remote Linux UI from windows

Sometime you need to access UI of the remote *nix platform from windows machine, I need this quite often for testing my standalone Java swing application.

  1. Download Xming and install.
  2. Open ${xming_home}/X0.hosts file, add the IP of your linux box, this works like xhost config on *nix.
  3. Restart Xming from system tray.
  4. set the DISPLAY to your PC, e.g. for bash shell use cmd: export DISPLAY=${my_pc_ip}:0.0
  5. run your GUI command on the shell

No comments: