About HPC Systems Software User Guides Education Partners

  / rcc / hpc / guides / cygwin


Cygwin

Hammer

LION-XI

LION-XJ

LION-XC

LION-XB

LION-XO

Mathematica Fonts

PuTTY SSH

RealVNC

Unisys

WinSCP File Transfer

Xming X11

Cygwin Installation How-To

Overview

Cygwin provides a Linux-like environment running under Windows. It provides an API emulation layer, a collection of powerful tools that give a Windows user some of the functionality found in Linux. For users interested in running graphical interactive software remotely from a *nix environment, it also provides a free X11 windowing server.

For more information, please visit Cygwin.

NOTE: If you are only in need of SSH and an X11 server for Windows (i.e. for the purpose of using our machines remotely), please visit our PuTTY SSH how-to and our Xming how-to.

Installation

Download and run the current setup executable available here from Cygwin. You will see the following intro screen. Click [Next].

Installation Step 1

The default installation type is "Install from Internet" - this is fine for the purpose of installing on one computer for the first time. Click [Next].

Installation Step 2

The default installation directory of "C:\cygwin" is required. You will want to leave the "Default Text File Type" as "Unix / Binary" but may choose to "Install For" all users or just yourself. It is recommended for ease of access to install for "All Users". Once you have selected the appropriate values, click [Next].

Installation Step 3

The "Local Package Directory" is where the installation program stores the downloaded files ised during installation. You can select any directory to which you have full access. Click [Next].

Installation Step 4

The connection type will depend on your network. Most users can use "Direct Connection" while those requiring a proxy will need to select "Use HTTP/FTP Proxy". Enter the appropriate settings for your proxy in the provided boxes. Click [Next].

Installation Step 5

The default download site for Cygwin should be fine. Click [Next].

Installation Step 6

*** VERY IMPORTANT: Click on "Default" next to "X11" to change the value to "Install". This will provide the required X11 packages for utilizing graphical aspects of programs written for use in an X11 environment.

SSH NOTE: OpenSSH is not installed with Cygwin by default. Expand The "Net" category (click on the "+"), and select the openSSH package - several dependencies will be selected automatically.

There are many packages available for installation. If you would like, explore the available packages, and when you have selected what you desire, click [Next].

Installation Step 7

The download and installation phase should commence. The time will vary depending on your internet connection.

Upon successful installation, you will be asked where you would like to place shortcuts. It is very convenient to check both "Create icon on Desktop" and "Add icon to Start Menu". Click [Finish].

Installation Step 8

Congratulations! Installation is complete. Click [OK] to move on to the last step.

Installation Step 9

For ease of use, you can place a shortcut to the Cygwin X-server. Navigate to "C:\cygwin\usr\X11R6\bin", right-click on the file "startxwin.bat" and select "Send To -> Desktop (create shortcut)". You should now see a shortcut on your desktop to startxwin.bat. Double-click this shortcut to start the X-server. Once the X-server is started, you should see a black "X" in your taskbar (near your clock).

Installation Step 10

If you would like to change the appearance and name of the shortcut, simply right-click on it, select "Properties" and use the "General" tab to change the name, and the "Shortcut" tab to change the icon. There are icons provided in the file "C:\cygwin\usr\X11R6\bin\XWin.exe" - use the "Browse..." button in the "Change Icon" dialog to navigate to and select that file, choosing one of the two available icons.

Using SSH

To connect to our clusters via SSH and to allow X11 connections, use the following command in the terminal opened by the startxwin.bat shortcut:

ssh -Y <hostname>.aset.psu.edu

Please send questions or suggestions about this web page to beatnic@aset.psu.edu

ASET | ITS | Penn State