Recently we built a nice desktop interface using Groovy's Griffon to
manage several back-end tasks. The idea was that data center and other
support folks don't want to figure out our scripts/code and that we
would provide a nice friendly interface to manage the complex tasks. So
far so good, until we had users who wanted to keep the application on a remote
Linux server and still have pretty GUIs locally. Nonchalantly, I recommended X11
(ahh its like 1995 all over again only this time better tools!). Umm
yeah... well it took me over an hour to figure out how to make it work
and how to make it work for free, so that's enough time for me to want
to write down the steps so that I don't need to repeat researching this
in the future.
Steps:
- Download Cygwin via the Cygwin.exe installer!
- Select the xinit app under the X11 libraries. The dependencies should be downloaded after being prompted to do so.
- Select openssh from the Cygwin libraries
- Open a Cygwin console. Type startxwin. More details on Cygwin/X can be found here.
- Install xauth on the remote server. I am using RedHat so all it required was 'yum install xauth'. You may also need to tweek the X11Forwarding setting in /etc/ssh/sshd_config file to allow X11 forwarding.
- type 'DISPLAY=:0.0' on you local machine
- type 'export DISPLAY' on your local machine
- ssh -Y username@remotehost (use -v option if errors occur)
- Start remote app.
The GUI should start up locally. Good luck!
No comments:
Post a Comment