CS009 Cygwin Installation Tutorial

1.  Download the file CygwinInstall_cs009.zip from the CS009-2 Resources page .

2.  Unzip CygwinInstall_cs009.zip to your C:\ drive.  Windows XP has its own zip wizard to help you do this.  If you do not have WinXP, there are many free compression programs on the web, such as Winzip.  After unzipping it, confirm that the directory "C:\CygwinInstall_cs009" exists and is the unzipped contents of CygwinInstall_cs009.zip.

3. Download and open the Cygwin installer setup.exe from Cygwin's home. Note: if you ever want to install/uninstall Cygwin components, you will need the setup.exe file. 

4.  When the installer asks you for a download source, select "Install from Local Directory."

5. Specify a "root" directory where you wish to install Cygwin (e.g., "C:\Cygwin").

6. Specify "C:\CygwinInstall_cs009" as the Local Package Directory.

7.  Squarely place your mouse cursor over the word "Default" (highlighted below) next to the word "All" and click EXACTLY once.  The program may not seem to be responding, but it is actually working really hard (if you have Windows 2000 or XP, you can use the Task Manager to see that the Cygwin setup process is vying for as much %CPU as Windows will dish out). 

When all the instances of "Default" change to "Install" click "Next."

After the installer finishes the next step, it should be done.

 

To set up ssh in cygwin so that you can remote login to CS department machines through cygwin, follow the department's tutorial for setting up OpenSSH, which can be found here. Just remember to do the following:

1. Name your private key "id_dsa" and your public key "id_dsa.pub" and keep them in your /home/<Windows user name>/.ssh/ directory in cygwin on your home machine (where "Windows user name" is your Windows user name that you use to log into Windows, which is not necessarily your CS user name that you use to login to CS dept machines like the Sun Lab computers).

2. When you want to ssh into the department from cygwin, use the command:

% ssh dsuttle@ssh.cs.brown.edu

where "dsuttle" is your CS user name. This assumes that your keys are in the aforementioned directory and will forward you to a sunlab node with (presumably) the most CPU cycles to spare. If, however, it seems to be running slow (you can check the %CPU with the "top" command), just disconnect by typing "exit" (and press enter) and ssh again.

To get ssh to "tunnel X connections" (so that you can open linux programs on the sunlab machines while you're remote logged in), you need to make a file in your cygwin file system (you can use "touch"):

/etc/ssh_config

Inside the file you need the line:

ForwardX11 yes

you will also need an x server of some sort on your machine. Either install exceed from CIS (recommended) or run cygwin's free x server (very slow). To do the former, just run exceed (after getting it from CIS) while you'red ssh-ed. To do the latter, run "startxwin" from your shell.