Using Cygwin for remote use of Huygens
Table of contents
Cygwin/X is a port of the X Window system to the Microsoft Windows. Cygwin/X runs well on most versions of Windows. The X Window system allows to foward applications through the network over an SSH connection.
Cygwin is a solution for remote display using a Unix server and Windows client. See RemoteDisplay for other ways to display the Huygens user interface over a network.
To start the installer:
- Go to the Cygwin/X homepage: http://x.cygwin.com.
- Click on Install Cygwin/X now and run the setup.exe.
During the installation:
- Select Install from Internet
- Select the path where you want to install Cygwin (preferably a directory without spaces, e.g. but
- Select who should be able to use Cygwin (All Users or Just Me)
- For Default Text File Type select DOS
- Select a location where the files that will be downloaded for installation should be stored (different from the installation directory above).
- Select Direct Connection
- Select a Download site nearby.
- Choose what packages to download. The packages that you need for running huygens remotely are:
- Category Net:
- Catergory X11
- Category Net:
- When all desired packages are selected click 'Next'
The Installer will now download and install the software. After finishing the installation, the installer will ask whether you want to create icons on your desktop and in the start menu.
To run huygens on a computer named server and display the user interface on the Windows client, double click the Cygwin XTerm icon. In the XTerm console window type
ssh -X server, enter your password for the server, and type e.g.
huygensproto launch Huygens Professional:
user@client:~$ ssh -X server Password: Last login: Thu Dec 2 17:54:36 2010 from client.svi.nl Have a lot of fun... user@server:~> huygenspro
Start Huygens by a Double Click
- Open the Windows File Explorer and navigate to the directory where Cygwin is installed (for example
- Copy the file
- Open the file
- Scroll down to the line that reads
/run xterm -e /usr/bin/bash -land replace the end with
/run xterm -e /usr/bin/ssh -Y -C "user@server" essentialReplace
userwith your username and
serverwith the server name or ip address.
essentialis to start Huygens Essential, for Huygens Pro type
huygensproinstead, for Huygens Scripting type
- Make a shortcut to
huygens.bat(right-click→create shortcut) on your desktop.
Uninstallation of Cygwin
In case you want to de-install Cygwin on your computer please have a look here:
Install Cygwin SSH daemon
If you have already installed cygwin with its SSH components on a Windows computer, you can now make the SSH daemon run as a service to allow SSH connections to that machine. Note that this is not necessary for remote display.
Instructions for this can be found on multiple sites:
Installing the SSH daemon serviceLogin as Administrator and double click the Cygwin icon, or right click the Cygwin icon and choose Run as Administrator, as many of the following operations require administrator privileges.
With some releases of cygwin, there are permission problems. Type these three commands to fix some permission settings:
chmod +r /etc/passwd chmod +r /etc/group chmod 755 /var
ssh-host-config -yto create the service, set up the ssh host keys and create the
/etc/. Note that two local users may be created, one called sshd to handle privilege separation and one that is required on some Windows versions called sshd_server that runs the service in order to use public key authentication.
- If the script asks you about privilege separation, answer yes.
- If the script asks to create a local user sshd on this machine answer yes.
- If the script asks to install sshd as a service answer yes.
- If the script asks to reate a new local account ssh_server which has the required privileges answer yes.
Firewall configurationIf you have a firewall installed, you will need to open port 22. In Vista, go to the Control Panel, select Windows Firewall, and open inbound TCP port 22.
Running the sshd serviceYou can start the service from Services in the Control Panel, or using either of these commands in the Cygwin terminal:
net start sshd cygrunsrv -S sshd