Log in Page Discussion History Go to the site toolbox


From BluWiki

(Edit This Page)

Cygwin Tips

CygWin is...

...a Unix shell and tools for Windows XP (or Win2k, Win98, WinME etc.)

FAQ: How do I just get everything?

Don't want everything

To Look-up the package for a missing file you would like to install

Where is apt-get for cygwin

Known Issues

Lose the DOS-BOX...


  • (I have started using PuTTYcyg more than rxvt)
  • PuTTYCyg - Another XTerm workalike. This is a version of Putty capable of running Cygwin bash without sshd OR an X-Server
    • puttycyg - http://gecko.gc.maricopa.edu/%7Emedgar/puttycyg/
      • Download putty first. Then download and unpack PuTTYCyg into the same folder as your PuTTY executables to get it to work
      • Example: Create saved session "PuttyCygwin" with Connection Type of Cygwin and a Short Cut to:
 "C:\Program Files\PuTTY\putty.exe" -load PuttyCygwin 


  • http://www.khngai.com/emacs/bash.php
    • It Suggests : D:\Programs\Cygwin\bin\rxvt.exe -sl 500 -fn courier -bg wheat -sr -title "Bash Sailor" -e bash --rcfile C:\documents\config\.bashrc
    • I Use : C:\cygwin\bin\rxvt.exe -g 124x48 -e /bin/bash
    • 20000 Lines of Scroll Back : C:\cygwin\bin\rxvt.exe -sl 20000 -g 124x45 -e /bin/bash
    • More Options http://linux.die.net/man/1/rxvt
  • No X-Server Required, the cygwin rxvt will use MS Windows to fake it if you don't have an X-Server
    • Left-Drag will Mark and Copy
    • Shift-Insert or Shift-Leftclick or Middleclick (for three button mouse) will Paste (Shift-Insert is old-stile MS Windows key for paste - copying, cutting and pasting text - Ctrl+Insert, Shift+Delete and Shift+Insert)
      • If you want Rightclick to also Paste with your two-button mouse (like putty): Download a Windows Mouse Driver that allows Per-Application event-mapping (i.e. mouse-click mapping) and map Rightclick to Shift-Insert for application rxvt.exe. I downloaded the driver for my microsoft wheel mouse from microsoft.com and use the control panel to configure it... it worked great. - http://www.microsoft.com/hardware/mouse/download.asp

MinTTY - Built into Cygwin

Cygwin X Window Server

Where can I find lsof for Windows / Win32?

Combine these . . .

Where is mail or mailx ?

sshd - The Secure SHell Deamon

  • The CYGWIN environment variable (set it to "binmode ntsec tty")
  • http://www.google.com/search?query
  • Old versions of cygwin needed you to create an entry for root in the /etc/passwd
  • sshd (server side) config files - /etc/hosts.allow /etc/hosts.deny /etc/hosts.equiv /etc/moduli /etc/motd /etc/nologin /etc/primes /etc/shosts.equiv /etc/ssh_host_dsa_key /etc/ssh_host_key /etc/ssh_host_rsa_key /etc/ssh_known_hosts /etc/ssh_known_hosts2 /etc/sshd_config /etc/sshrc
  • ssh (client side) debugging - ssh -v -v -v -v -l username hostname

Cygwin Built-ins...

...make your bash shell a happy place

Windows NT and XP...

...have many handy utilities that can be used through the command line

Cygwin Rosetta Stone

Cygwin Rosetta Stone

Other Handy Cygwin Ports

Not Cygwin

Site Toolbox:

Personal tools
GNU Free Documentation License 1.2
This page was last modified on 11 August 2014, at 18:38.
Disclaimers - About BluWiki