Intro to Scientific Computing
PHYS 27/193
Physics Department
University of the Pacific

CygWin

Cygwin is a set of unix-like components for MS Windows. Basically, you can set up a system which will have all of the basic (and many advanced features which we will explore) in a full fledged scientific computing environment under linux or solaris.

Getting Cygwin

Installing Cygwin is usually very easy. However, since Windows Vista was introduced, this is not always true. If you are using Windows XP, then you should be able to follow the outline below, starting from Installation. If you use Windows Vista then we will learn together what is best! There are various instructions on the web that I've found. Read this first:

Vista Pre-Installation Instructions

You can download Cygwin for free from the link below :

Download Cygwin setup.exe for windows

2. To install Cygwin click on setup.exe and Remember to Run setup as "Administrator" and with XP compatibility mode.

You will see Cygwin version that you are installing

3. Click next in Cygwin setup and select the root directory where you want to install Cygwin (C:\cygwin).

In Vista you need to select the install option: Just Me, because of Vista security, otherwise you will get errors afterwards.

XP and Vista

Below are the steps. The only slightly tricky part is picking the correct packages, which I'll discuss below.

The main cygwin site is: www.cygwin.com

Installation:

  1. Download setup.exe.

  2. Run the setup.exe application from your local harddrive.

  3. Chose Next on first splash screen.

  4. Select "Install from Internet" and click Next.



  5. Enter preferred installation (so called: "root") directory and click Next.

    Unless you have good reasons for choosing otherwise, leave it as C:\cygwin. Also, take the defaults All Users and Unix File Types.



  6. Enter a temporary installation directory. You can accept what it offers, which will put a folder on you Desktop. You can delete this folder later.

    So again, just click Next.



  7. Select "Direct Connection" and click Next.



  8. Select a download site and click next.
    (Any site that you can connect to is fine. Some sites are more stable and/or faster than others. Try to pick one that works for you. If one doesn't work, try another.)



  9. Next you select the Packages you want to install. We will add to the default selections, a number of scientific tools and utilities.

    The Default Packages are already chosen.



    Notice that each package group (Accessibility, Admin, Archive, Audio, etc.)
    has a little [+] beside it.

    You want to install the following additional Packages, which you do by clicking the [+] sign before the Application Category, then click the word Skip in front of each Package listed below.
    When chosen, the word Skip will change to a number, which is the version of the particular package to be installed. In addition there will be a little box with an [x] in it.

    Note that you can stretch this window to make it bigger (and the packages more easily readable, by grabbing the corner with your mouse and click/dragging it.

    In each package group below, check these packages for installation::

    [+] Devel   
    	->gcc-C
    	->gcc-C++
    
    [+] Editors 
    	->emacs
            ->emacs-X11
            ->emacs-el
            ->vim
    
    [+] Graphics
            ->ImageMagic
            ->ghostscript
            ->ghostscript-base
            ->ghostscript-X11
            ->gv
            ->jpeg
            ->libpng
            
    [+] Math
    	->gnuplot
            ->lapack
            ->octave
    
    [+] Net     
    	->Openssh
    
    [+] Perl    
    	->perl
    
    [+] Publishing
            ->tetex
    
    [+] Shells
    	->tcsh
    
    [+] Utils
            ->units
    
    [+] Web 
            ->wget
    
    [+] X11 
            ->xorg-base
            ->xfig
    

    Please note sometimes you may get a download incomplete and the setup application will return to step 8. Simply select another server and continue the installation process.

    Installation may take several (tens of) minutes, depending on the speed of your computer and the connection to the cygwin mirror.

  10. Once the installation is complete, click Finish.



Post Installation Notes:

Once you have installed the cygwin packages, we will configure your environment for use by following these steps.

  1. Setup Windows HOME Environment Variable: