# Cyg Win

## Linux-like tools and environment for Win32

MinTTY is a more windows-friendly interface

## Installation and setup

Run http://www.cygwin.com/setup.exe any time you want to update or install a Cygwin package.

I’ve been getting a lot of updates (?) every time, even when all I want is one small package.

Note that, when installing packages for the first time, setup.exe does not install every package. Only the minimal base packages from the Cygwin distribution are installed by default. Clicking on categories and packages in the setup.exe package installation screen will provide you with the ability to control what is installed or updated. Clicking on the “Default” field next to the “All” category will provide you with the opportunity to install every Cygwin package. Be advised that this will download and install hundreds of megabytes to your computer. The best plan is probably to click on individual categories and install either entire categories or packages from the categories themselves.

execute /usr/bin/makewhatis to allow the apropos command to work (source)

### my .baschrc

Okay, there’s not much there, there. And possibly even bad practices....

export TERM=xterm
export PATH=.:$PATH PS1=$
pwd

## Emacs and Cygwin

EmacsWiki:NTEmacsWithCygwin
EmacsWiki:setup-cygwin.el
Steve Yegges doc-emacs file - scroll down for cygwin notes
WebSailor on Emacs and Cygwin

## ssh

works from standard bash shell, but terminal send/response can be wonky. pine on server2.cs.uof is wonky; from an x-server window bash prompt works just fine

using rxvt with export TERM=xterm in .bashrc - emacs (F-keys), pine, etc all work and display fine

First locate the file called ‘passwd’ in your C:\path\to\cygwin\etc directory and edit it

Second, replace the text
/home/<YOUR_NAME>
with
/cygdrive/c/Documents and Settings/<YOUR_NAME>

see GnuScreen

## Perl and Cygwin

had to add Wild.pm to c:/cygwin/lib/Perl5/5.10/i686-cygwin/
see example contents

## General thing tips

ten command-line one-liners - these are Linux specific, but most work in cygwin’s shells, as well

## Uninstalling Cygwin

Cygwin does not have an automatic uninstall capability. To uninstall Cygwin, perform the following manual steps.

1. Delete the Cygwin shortcuts on the Desktop and Start Menu.
2. Delete the registry node Software\Cygnus Solutions under HKEY_LOCAL_MACHINE and HKEY_CURRENT_USER.
3. Delete the Cygwin directory (typically C:\cygwin).
4. Delete any files created in the setup temporary directory.
5. Delete C:\cygwin\bin from the PATH environment variable if you have it.