Computer Aided Engineering Journal & Forums

Full Version: How to get GUI (using Cygwin) from a remote server
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Here is a mini howto. For quick reference.

If you use windows and want to access an application running on a remote server and you need a display on your local machine (which is of course connected to the netweork), you need to install an X-server. So in short, X-server runs on your local windows machine and display GUI from remote X-clients.

Thats where cygwin comes in. Its free !
Get it from here

Important thing is to select everything under the 'X11' section while installing.

You might also need to use ssh client along with Cygwin to get this working.

1. First step is to start ssh client and make sure that the X11 tunnelling is turned on in ssh. check by
Code:
Edit > Settings > Tunnelling
save the session.

2. Next is to start Cygwin terminal (command window) and start the X-server by:
Code:
xwin -multiwindow

3. Connect to the remote server using from ssh where your application is installed. as always, check with your admin -Smile

If things are working well,
check if you have a display by running
Code:
echo $DISPLAY

There should be some output like localhost:15.0.
Thats good and the application should start without any problem.

A good graphics card also helps in handling the X window system.

Possible problems:
If there is no output that means X11 tunnelling is not turned on.

If there is an error message like x connection to localhost:15.0 broken then Cygwin is not runnig properly. restart Cygwin. If the error persists, then reinstall Cygwin with all the X11 stuff checked.
That's it.

There are othe applications that provides X-servers for windows.
Eg., X-win32, and Exceed. They are not free and IMO, not any better than Cygwin.
Awesome. thank you for posting this. really helpful to folks 'not' running linux.
anyone use hummingbird?
thanks. i got it working.but the gui is extremely slow. my network connection is fast. ansys crashes all the time when i try to to zoom or rotate the objects.. any clues.?
Reference URL's