HOWTO Install Cygwin

  • Upload
    raju

  • View
    253

  • Download
    0

Embed Size (px)

Citation preview

  • 8/14/2019 HOWTO Install Cygwin

    1/14

    HOWTO install Cygwin

    Cygwin is a Unix-like environment for windows.It can be obtained from: www.cygwin.comBelow are notes on how to install and setup cygwin for access to group computers.

    Installation Notes:

    1. Download setup.exe from www.cygwin.com .

    2. Run application from your local harddrive.

    3. Chose next on first screen.

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

    5. Enter preferred installation (Root) directory and click next.

    http://www.cygwin.com/http://www.cygwin.com/http://www.cygwin.com/http://www.cygwin.com/setup.exehttp://www.cygwin.com/http://www.cygwin.com/
  • 8/14/2019 HOWTO Install Cygwin

    2/14

    6. Enter a temporary installation directory and click next.

    7. Select "Direct Connection" and click next.

  • 8/14/2019 HOWTO Install Cygwin

    3/14

    8. Select a download site and click next.(Any site that you can connect to is fine. Some sites are morestable and/or faster than others. Try to pick one that works foryou.)

  • 8/14/2019 HOWTO Install Cygwin

    4/14

    9. Select the packages you want to install and click next.Packages you may want to install include:

    opennssh

    keychain (for ssh key pairs)

    gv

    ghostscript

    emacs

    vi

    grace

    tcsh

    gnu compilers

    tetex

    aspell

    gnuplot

    rsync

    Please note sometimes you may get a download incomplete and

  • 8/14/2019 HOWTO Install Cygwin

    5/14

  • 8/14/2019 HOWTO Install Cygwin

    6/14

    In the Environmental variables window select new under"Variables for User" window.

    Edit "User Variable" as follows:

    Variable name: HOMEVariable value: Path to where you want your home directorye.g. C:\Documents and Settings\User\MyDocuments\username

    In the Environmental variables window select Path under"System Variables" window.

  • 8/14/2019 HOWTO Install Cygwin

    7/14

    Edit "System variable" as follows:Append "; C:\cygwin\bin" to Variable value: (semicolon isvery important)

    Select "Ok" to close both "Environmental Variables" and"System Properties" windows.

    3. Setup and configuring cygwin files.A. Edit the passwd file.

    On your harddisk navigate to the passwd file.

    For a standard install this should be underC:\cygwin\etc\

  • 8/14/2019 HOWTO Install Cygwin

    8/14

  • 8/14/2019 HOWTO Install Cygwin

    9/14

    Installing Cygwin/XCygwin tools are, in the words of the Cygwin developmenthomepage, http://cygwin.com/ , "ports of the popular GNU development tools andutilities for Windows 95, 98, and NT. They function by using the Cygwin librarywhich provides a UNIX-like API on top of the Win32 API." Cygwin allows thecompilation of the X Window System source on Win32; several patches were made tothe X Window System source to make it actually compile and run under Cygwin.

    Cygwin has a nice setup program that downloads and installs the necessary Cygwin packages for you.

    1. Open the Cygwin, http://cygwin.com/ page in your web browser 2. Click the "Install Cygwin Now" link in the upper-right hand corner of the page.

    This link downloads setup.exe from the primary Cygwin server;save setup.exe to the directory that you would like to store the downloaded

    packages in (e.g. c:\download ); do not save setup.exe to c:\cygwin , as that isthe default directory for the extraction and installation of the downloaded

    packages.3. Run setup.exe , you will see the welcome screen:

    4. Click Next to proceed to the next screen.5. Choose, Install from Internet, this will still save the package files to your

    download directory so that you can install Cygwin on any number of machines:

    http://cygwin.com/http://cygwin.com/http://cygwin.com/setup.exehttp://cygwin.com/http://cygwin.com/http://cygwin.com/setup.exe
  • 8/14/2019 HOWTO Install Cygwin

    10/14

    6. Click Next to proceed to the next screen.7. The default Install Root is c:\cygwin which should be fine for most

    installations. Leave Default Text File Type as UNIX. Leave Install For setto Allunless you lack local administrative privileges.

    8. Click Next to proceed to the next screen.9. Local Package Directory should default to the directory that you

    ran setup.exe from:

  • 8/14/2019 HOWTO Install Cygwin

    11/14

    10. Click Next to proceed to the next screen.11. Choose your proxy setup, or, just choose Direct Connection if no proxy is

    needed:

    12. Click Next to proceed to the next screen.

    13.Select your nearest mirror for downloading:

  • 8/14/2019 HOWTO Install Cygwin

    12/14

    14. Click Next to proceed to the next screen; setup will download a list of available packages as it moves to the next screen.

    15. On the next screen you will select the packages that will be downloaded andinstalled. A listing of the Cygwin/X packages is given below; a listing of thegeneral Cygwin packages would be beyond the scope of this document.

    Cygwin/X packages are located in the X11 category.

    xorg-server (required, the Cygwin/X X Server) xinit (required, scripts for starting the X

    server: xinit , startx , startwin.sh , startxwin.bat (and a shortcut on theStart Menu to run it), startxdmcp.bat )

    xorg-docs (optional, man pages)

    X-start-menu-icons (optional, adds icons for X Clients to the Startmenu)

    You may also select any X client programs you want to use, and anyfonts you would like to have available.

    You may also want to ensure that the inetutils or openssh packages areselected if you wish to use telnet or ssh connections to run remote Xclients.

  • 8/14/2019 HOWTO Install Cygwin

    13/14

    16. Click Next to begin the download process, you may want to try another mirror if you see a "Connecting" message on this screen for a long period of time:

    17.After the packages are downloaded, setup will automatically begin to installthem:

  • 8/14/2019 HOWTO Install Cygwin

    14/14

    18. I highly recommend allowing Cygwin Setup to create Desktop and Start Menuicons for you; these icons simply launch a bash shell:

    19. Click Finish to close the setup program.