Linux

Installation

Windows

Installation

First, you need a standard Cygwin installation. Download the 32-bit Cygwin
installer
from http://cygwin.com/install.html (do not get the 64-bit variant). Run
the installer using standard paths (should install to
C:\cygwin). Eventually, it will ask you which packages to
install. Search for the following packages, and for each one, click "Skip" once so a version number appears, like in the image.

wget

tar (may already be selected)

gcc-core

libpng15

libpng-devel

openssh

xorg-server

xinit

xorg-docs

xterm

make

vim

emacs

The Cygwin installer will create a shortcut on the desktop which opens a Cygwin shell. If it fails, you can create a shortcut to C:\cygwin\bin\mintty.exe and change the "Start in" field to %USERPROFILE%.

To install cc0, you need to choose a location to install the cc0 package. In this example, we'll use a directory we'll create called opt in the cygwin directory. Launch Cygwin:

Update your PATH to make cc0 available without specifying the path
to the binaries:

$ echo 'export PATH=$PATH:/opt/cc0/bin' >> ~/.bashrc

After a restart of the Cygwin shell, cc0 should now be callable
programs from Cygwin (bash).

$ cc0

You can also use Cygwin to connect to AFS through SSH with

$ ssh -X <andrewid>linux.andrew.cmu.edu

If you need to use X-Forwarding to display images, use

$ startxwin

and type your ssh command in the new window that will pop up.

A note on text editors

Terminal based editors (Emacs and Vim) can be installed by
selecting the emacs or vim packages during the Cygwin installation
process. Alternatively, GUI Emacs exists as a Windows binary (see
http://ftp.gnu.org/gnu/emacs/windows/).

Emacs

The Windows command prompt has trouble interpreting some emacs keyboard
shortcuts. To avoid this, ensure that you are starting Cygwin with
c:\cygwin\bin\mintty.exe as the terminal.