An introduction to Cygwin



Similar documents
PuTTY/Cygwin Tutorial. By Ben Meister Written for CS 23, Winter 2007

There s a variety of software that can be used, but the approach described here uses freely available Cygwin software: (1) Cygwin/X (2) Cygwin/openssh

Miami University RedHawk Cluster Connecting to the Cluster Using Windows

BIGPOND ONLINE STORAGE USER GUIDE Issue August 2005

Virtual Office Remote Installation Guide

Moxa Device Manager 2.3 User s Manual

STATISTICA VERSION 9 STATISTICA ENTERPRISE INSTALLATION INSTRUCTIONS FOR USE WITH TERMINAL SERVER

STATISTICA VERSION 10 STATISTICA ENTERPRISE SERVER INSTALLATION INSTRUCTIONS

Cygwin Installation s Guide

Driver Upgrade Instructions

Tutorial Guide to the IS Unix Service

Installation Instruction STATISTICA Enterprise Small Business

STATISTICA VERSION 12 STATISTICA ENTERPRISE SMALL BUSINESS INSTALLATION INSTRUCTIONS

and $HOME points to /home/username (your local login name) and this c:\cygwin\home\username to windows.

How to Tunnel Remote Desktop using SSH (Cygwin) for Windows XP (SP2)

Setting up FileMaker 10 Server

Adding Outlook to a Blackberry, Downloading, Installing and Configuring Blackberry Desktop Manager

SOS SO S O n O lin n e lin e Bac Ba kup cku ck p u USER MANUAL

Surf it Easy. User Guide

Important Notes for WinConnect Server VS Software Installation:

SSH Secure Client (Telnet & SFTP) Installing & Using SSH Secure Shell for Windows Operation Systems

Partner. Sage Pastel. Accounting. Installation Guide

Configuring for SFTP March 2013

Installing C++ compiler for CSc212 Data Structures

IT Quick Reference Guides Using Windows 7

Stellar Phoenix Exchange Server Backup

Moxa Device Manager 2.0 User s Guide

Installation Instruction STATISTICA Enterprise Server

EMBnet Norway User introduction pack (instructions and services overview) George Magklaras Head Systems Engineer Version 3.

SonicWALL CDP 5.0 Microsoft Exchange InfoStore Backup and Restore

Vodafone PC SMS (Software version 4.7.1) User Manual

Cloud Server powered by Mac OS X. Getting Started Guide. Cloud Server. powered by Mac OS X. AKJZNAzsqknsxxkjnsjx Getting Started Guide Page 1

Please note that a username and password will be made available upon request. These are necessary to transfer files.

Using WinSCP to Transfer Data with Florida SHOTS

Installing the Cygwin UNIX Emulator on Windows 7

SECURE MOBILE ACCESS MODULE USER GUIDE EFT 2013

DocAve Upgrade Guide. From Version 4.1 to 4.5

Global Image Management System For epad-vision. User Manual Version 1.10

Parallels. for your Linux or Windows Server. Small Business Panel. Getting Started Guide. Parallels Small Business Panel // Linux & Windows Server

Acronis Backup & Recovery 11

How to use FTP Commander

Colligo Manager 6.2. Offline Mode - User Guide

Sendspace Wizard Desktop Tool Step-By-Step Guide

Online Backup Client User Manual

Disabling Microsoft SharePoint in order to install the OneDrive for Business Client

Export & Backup Guide

CONNECTING TO DEPARTMENT OF COMPUTER SCIENCE SERVERS BOTH FROM ON AND OFF CAMPUS USING TUNNELING, PuTTY, AND VNC Client Utilities

GoAnywhere Director to GoAnywhere MFT Upgrade Guide. Version: Publication Date: 07/09/2015

How to install and use the File Sharing Outlook Plugin

Using. Microsoft Virtual PC. Page 1

VIVIDESK Desktops can be accessed with a Macintosh Computer by one of two methods:

Mesa DMS. Once you access the Mesa Document Management link, you will see the following Mesa DMS - Microsoft Internet Explorer" window:

STATISTICA VERSION 11 CONCURRENT NETWORK LICENSE WITH BORROWING INSTALLATION INSTRUCTIONS

Windows XP Pro: Basics 1

Web File Management with SSH Secure Shell 3.2.3

Install and configure SSH server

Online Backup Client User Manual Mac OS

Online Backup Client User Manual Mac OS

Microsoft SQL Database

Parallels Transporter Agent

Installing Microsoft Outlook on a Macintosh. This document explains how to download, install and configure Microsoft Outlook on a Macintosh.

VP-ASP Shopping Cart Quick Start (Free Version) Guide Version 6.50 March

A survival guide to Radiance on Windows. When you have (almost) no choice :-(

MDM Mass Configuration Tool User s Manual

AdminToys Suite. Installation & Setup Guide

Configuration Guide. Remote Backups How-To Guide. Overview

How To Set Up Dataprotect

Attix5 Pro Server Edition

Call Recorder Quick CD Access System

Carry it Easy. User Guide

Option 1 Using the Undelete PushInstall Wizard.

CASHNet Secure File Transfer Instructions

How To Backup Your Computer With A Remote Drive Client On A Pc Or Macbook Or Macintosh (For Macintosh) On A Macbook (For Pc Or Ipa) On An Uniden (For Ipa Or Mac Macbook) On

Registry Tuner. Software Manual

You may have been given a download link on your trial software . Use this link to download the software.

QClaims Launch Instructions for Windows

6 USING WINDOWS XP 6.1 INTRODUCTION

Upgrading MySQL from 32-bit to 64-bit

Upgrading LytecMD from to 9.4 on Windows Server Best Practices. Revision Date: 7/29/2010 PLEASE READ:

Quadro Configuration Console User's Guide. Table of Contents. Table of Contents

New in this release: On-Demand Sync. Known Issues: Limitations: Previous version features:

Installing LearningBay Enterprise Part 2

Dell Statistica Statistica Enterprise Installation Instructions

Time Matters for Microsoft Outlook. Technology Preview User Guide

MATLAB on EC2 Instructions Guide

Creating a Web Site with Publisher 2010

SIMIAN systems. Setting up a Sitellite development environment on Windows. Sitellite Content Management System

Installation & Activation Guide. Lepide Active Directory Self Service

QUANTIFY INSTALLATION GUIDE

Magaya Software Installation Guide

4cast Client Specification and Installation

Using SSH Secure Shell Client for FTP

NETGATE Data Backup. User Manual. Document version 1. 1 EN ( ) Copyright (c) 2010 NETGATE Technologies s.r.o. All rights reserved.

Advantage for Windows Copyright 2012 by The Advantage Software Company, Inc. All rights reserved. Client Portal blue Installation Guide v1.

Multi-Share User Instructions

Cygwin: getting the setup tool

Introduction. POP and IMAP Servers. MAC1028 June 2007

Colligo Manager 6.0. Offline Mode - User Guide

Transcription:

Booth Engineering Center for Advanced Technology (BECAT) Seminar An introduction to Cygwin Lili He What is Cygwin? Cygwin = GNU + Cygnus + Windows. It is a collection of tools to allow Windows to act like a Unix/Linux system. A DLL (cywin1.dll) acts as a Linux API emulation layer to provide substantial Linux API functionality A collection of tools provide Linux-look and feel. The Cygwin tools are ports of the popular GNU development tools for Microsoft Windows. Why Use Cygwin/X? It provides an X server for Windows clients. It allows you to run X programs on remote hosts (Unix/Linux systems) and routes the display to your Windows desktop. It is similar to Hummingbird Exceed, while it is free! What Versions of Windows Are Supported? Cygwin can run on almost all modern 32 bit versions of Windows This includes Windows 95/98/ME/NT/2000/XP, but except for Windows CE. Cygwin will behave differently, and exhibit different limitations, on the various versions of Windows, since it can only do as much as the underlying OS supports. How Much Space Does Cygwin Require? It depends on what have been chosen to download and install. A full installation is probably larger than 800MB installed, not including the package archives themselves nor the source code. Download Source Go to http://cygwin.com/ and click on "Install Cygwin Now!. This is the most up-to-date version of Cygwin. To find the version of the Cygwin DLL installed, use `uname' as on Linux or `cygcheck'. Must log in as an administrator i user. 1

Installation Options Install from Internet creates a local directory to store the packages and then installs the contents. Download from Internet stores the packages locally. Install from Local Directory installs the contents of the packages. Installation Options Always choose Install for All Users, even if you are the only user planning to use Cygwin on the machine Selecting Just Me will cause problems for programs such as crond and sshd. The Default Text File Type should be left on Unix (that is, \n), unless you have a very good reason to switch it to DOS (that is, \r\n). Select Root Directory You d better not select something like `C:\' (the root directory on the system drive) for the Cygwin root. Otherwise, critical Cygwin system directories like `etc', `lib' and `bin' could easily be corrupted by other (non-cygwin) applications or packages that use `\etc', `\lib' or `\bin'. Select Local Package Directory The Local Package Directory is the cache where setup.exe stores the packages before they are installed. It must not be the same folder as the Cygwin root. After installing, it is no longer necessary, but it may be retained as backups. Select Connection Method The Direct Connection method of downloading will directly download the packages. Select Mirrors At least one mirror site should be chosen. Cygwin mirrors are geographically distributed around the world; http://cygwin.com/mirrors.html Multiple mirrors can be selected by holding down CTRL and clicking on each one. (http://www.mirrorservice.org; http://mirror.mcs.anl.gov are recommended) 2

Select Packages A chooser window that contains a list and basic information of packages will be available from mirror sites. Packages are grouped into categories. A minimal Cygwin installation will only includes the packages in the Base category and their dependencies by default. Select Packages To install Cygwin/X, scroll down to "X11" in the "Category" column and click on the word "Default", which should then change to "Install". Select Packages Openssh could also be installed. It is optional. Change View to Full and scroll down until you see "openssh" in the "Package, check it to install. Download and Installation Progress During the download and installation, progress bars will be shown for the current task and total remaining disk space. Complete Installation Environment Variables Shortcuts on the Desktop and/or Start Menu could be chosen to install. Finally, setup.exe will run any post-install scripts to finish correctly setting up installed packages. The safest way to launch bash initially is to use cygwin.bat file provided where the most important ones are set before bash in launched. CYGWIN variable is used to configure many global settings for the Cygwin runtime system. Initially you can leave CYGWIN unset or set it to tty (e.g. to support job control with ^Z etc...) by using C:\> set CYGWIN=tty notitle glob 3

Environment Variables The PATH environment variable is used by Cygwin applications as a list of directories to search for executable files to run. Set it so that it contains at least the root:\cygwin\bin directory. The HOME environment variable is used by many programs to determine the location of your home directory. Set it to point to your home directory before launching bash. Customize Bash To set bash up so that cut and paste work properly, make sure that "Quick Edit" is checked under "Properties" of the window, then on the Options" tab. What if Setup Fails? Make sure that the latest version of Cygwin Setup is used. The fails of not download the list of mirrors may be because the network is too busy or the download site not working. Try another mirror, or try again later. If setup behaved strangely, check the files `setup.log' and `setup.log.full' in /var/log (C:\cygwin\var\log by default) to get some clues as to what went wrong and why. If you're still baffled, email us appssupport@engr.uconn.edu Create Startxwin Shortcut Open C:/cygwin (the Cygwin installation root folder), and go to the /usr/x11r6/bin folder. Right-click on "startxwin" (it might appear as "startxwin.bat ). Select "Create Shortcut", and drag the resulting icon to your Desktop/someplace else convenient. Start Cygwin/X To start the Cygwin/X server, (double-click the startxwin shortcut that you created. After a few seconds, the "X" icon appears in the system tray and an Xterm window opens. This Xterm window starts with a local shell on your Windows machine. To run programs on a remote host, such as sgi1, you must first log into that host. Access Remote Host SSH Client Putty; SFTP Client WinSCP; Other SSH Clients; OpenSSH- double click Cygwin shortcut. Log into the remote host: ssh -X username@machine_name Type in your password. 4

Shut Down Cygwin/X To shut down the Cygwin/X server, right-click on the "X" icon in the system tray and click "Exit". Start an X Application Start the Cygwin/X server. Log into sgi1.engr.uconn.edu either by using Putty (make sure to enable X11 forwarding in Putty s configuration) or OpenSSH via Cygwin. Now you can run programs such as nedit, xclock, etc. Uninstall Individual Packages Run Cygwin Setup (setup.exe) as you would to install packages. In the list of packages to install, click on the "View" button to get a full listing. Click on the cycle glyph until the action reads "Uninstall". Click "Next to uninstall the selected package. Uninstall All of Cygwin Delete the Cygwin root folder and all subfolders Delete the Cygwin shortcuts on the Desktop and Start Menu, and anything left by setup.exe in the download directory. Finally, delete the registry tree `Software\Cygnus Solutions' under HKEY_LOCAL_MACHINE and/or HKEY_CURRENT_USER. Uninstall All of Cygwin Uninstall All of Cygwin 5

Cygwin Documentation There are quite a lot of document: http://cygwin.com/docs.html A comprehensive Cygwin User's Guide: http://cygwin.com/cygwin-ug-net/cygwin-ug-net.html The documentation for the individual GNU tools: http://www.gnu.org/manual 6