Tuesday, November 30, 2010

Instructions to install, configure and run XMing on putty

first of all, make sure there connectivity from your server to your laptop:
log into your server and ping your laptop!


download:
http://sourceforge.net/projects/xming/

execute Xming-6-9-0-31-setup.exe

full installation (choose all defaults)

launch XMing

allow access to all networks

you should see an icon of the XMing XServer 3.0 service in the bottom right


open file X0.hosts in the XMing installation folder and add the IP of your target server (example 11.36.32.93)

restart XMing

create a putty connection and tick "Connection/SSH/X11/Enable X11 Forwarding"
login to your server (example 11.36.32.93)

export DISPLAY=11.192.1.41:0
(10.192.1.41 is your IP, you can find it with ipconfig and look at LAN IP)

to test, run "xclock" in putty

in case of problems, right-click on the XMing icon and "view log"


This error:

Xlib: connection to "11.192.1.41:0.0" refused by server
Xlib: No protocol specified

means that you haven't added the server's IP in X0.hosts

1 comment:

Felipe said...

THANK YOU MAN!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!