cygwin provides a Unix/Linux-like environment under Microsoft Windows OSes.

learn more… | top users | synonyms

84
votes
7answers
32k views

upgrading and installing packages through the cygwin command line?

I'm a blind computer user that uses Cygwin. The installation program isn't very accessible, upgrading, installing, and removing specific packages is quite hard to do since you have to use simulated ...
27
votes
4answers
28k views

There's no 'sudo' command in Cygwin

Because there's no sudo command in Cygwin, scripts that I want to run fail with ./install.sh: line N: sudo: command not found What's the standard way for getting around this? Editing the scripts ...
5
votes
1answer
12k views

How to format Ext2 in Windows XP?

I want to format my USB stick to ext2. I have following tools installed. But don't know how to use them for my case: Cygwin – I'm just a starter and not surely know how to use. (mkfs is also ...
8
votes
2answers
7k views

Running rebaseall on Cygwin

I tried building node.js on Cygwin and that caused errors, so someone in #node.js on freenode told me to run rebaseall on Cygwin to clean it up. So I tried that and I got the following message: $ ...
46
votes
4answers
17k views

Using Cygwin in Windows 8, chmod 600 does not work as expected?

I'm trying to change the the permissions to my key file key.pem in Cygwin 1.7.11. It has the permissions flags: -rw-rw---- chmod -c 600 key.pem Reports: mode of 'key.pem' changed from 0660 ...
13
votes
5answers
11k views

Writing “tail -f” output to another file

As a continuation from my last post where I have used grep & tail -f to find occurences of "rare" events. I would like to record this in another file. I've tried turning tail -f log.txt | ...
11
votes
7answers
5k views

Good Alternative to Cygwin with Copy/Paste?

I am annoyed that I can't copy and paste into Cygwin... is there a good alternative to Cygwin that will let me do this?
7
votes
2answers
23k views

Install Vim in Cygwin

I have installed Cygwin on my Windows machine and I have also selected some additional packages as part of my installation (like GCC etc). Now I want to add Vim also to my existing Cygwin setup. What ...
6
votes
8answers
2k views

Is dual boot worth-while?

I'm a genetics PhD student. The word-processing and referencing software available for windows is more suitable (and more compatible with computers in the library etc.), but there's some genetics ...
3
votes
2answers
523 views

Practical (closer to the classical Linux one) way to use (automate) SUDO for CygWin

Being able to use sudo commands in CygWin is useful, and faster than opening an elevated shell: Luis@Kenobi /cygdrive/c/Users/Luis $ net user /add TestUser System error 5. Access denied. Luis@Kenobi ...
4
votes
2answers
2k views

Python3 on cygwin

How does one install Python3 on cygwin? I tried running the Python install in cygwin with no success. The version I am looking for is >= 3.1, and I was able to install 2.7 successfully under cygwin ...
2
votes
2answers
643 views

How to invoke Windows' gvim in a Windows environment from within Cygwin?

When I give a gvim command in Cygwin, I want it to invoke the gvim I've installed in my Windows. I tried writing a function in my .bashrc called gvim that invokes the gvim.exe in my Program Files ...
1
vote
1answer
3k views

Cannot successfully configure OpenSSH via CYGWIN in Windows 2008

I need help configuring OpenSSH on Win2008 via CYGWIN! THANKS in advance! I am trying to configure an OpenSSH server on Windows Server 2008 Datacenter via CYGWIN. I have installed and configured ...
11
votes
4answers
5k views

Going to directory using bash variables doesn't work when directory names have spaces

Let's say I want to store the following command in a variable cd "/cygdrive/c/Program Files/" So I do this dir="cd \"/cygdrive/c/Program Files/\"" That should store the command to navigate to ...
5
votes
3answers
5k views

Cygwin .bashrc not being source because cygwin starting in Windows home

NOTE: Please see my second edit below for an update on the problem. Cygwin was working fine for me until last week. Now .bashrc isn't getting sourced. I must have installed something or changed ...
1
vote
1answer
1k views

Need help tunneling Remote Desktop (RDP) over SSH using OpenSSH

So heres my set up. The picture isn't "Exact" I have modified it, but it gives you an idea. The tools I am using are: PUTTY OpenSSH CYGWIN Remote Desktop VMware vCenter Server Version 5.1.0 ...
1
vote
1answer
1k views

How to integrate Console2 over Cygwin (WinXP)?

I have installed Console2 and Cygwin too. I like to run Cygwin terminal as Console2. So i want to integrate Console2 over Cygwin. I have seen other guys use Cygwin like that. How to do it?
1
vote
3answers
4k views

cygwin cygdrive paths and Windows Command Prompt

I'm having a weird issue with cygwin acting inconsistently between installations, specifically scp. I have c:\cygwin\bin in my Windows PATH in both cases. When I run the following command from a ...
0
votes
1answer
158 views

Enable wheel in mintty for cygwin comands: less and man

I'm using mintty and cygwin. How to can I enable the mouse wheel inside less and man?
28
votes
4answers
16k views

Cygwin fatal error unable to remap.. What does it mean?

0 [main] python 6140 C:\cygwin\bin\python.exe: *** fatal error - unable to remap \\?\C:\cygwin\lib\python2.6\lib-dynload\time.dll to same address as parent: 0x2B0000 != 0x360000 Stack trace: Frame ...
39
votes
5answers
57k views

How to install new packages on Cygwin?

I installed the latest version of Cygwin with a number of packages. I soon realised that I need more packages (such as wget, etc) and I couldn't find a way to install the new packages without running ...
9
votes
3answers
2k views

How to use fish shell in cygwin?

Is it possible to use the fish shell with cygwin? I wasn't able to compile the source in cygwin, and I didn't find any precompiled packages. Is there a good reason for not having fish in cygwin?
13
votes
4answers
8k views

Using git through cygwin on windows 8

I've got a windows 8 dev preview (not sure if it's relevant, but I never had this hassle on w7) machine and I'm trying to clone a git repo from github. The problem is that my ~/.ssh/id_rsa has 440 ...
6
votes
7answers
13k views

Cygwin offline installer?

I've tried downloading it several times from several different computers and networks. When I attempt to download it the download gets stuck mid way though. Where can I find a reliable offline ...
5
votes
3answers
7k views

Cygwin library load error

I built spatialite library then gdal library with spatialite support. Also built mapserver which depends on gdal with success. There was no problem with linking. When I try to execute a gdal utility ...
8
votes
2answers
21k views

How to uninstall/reinstall cygwin to use the sshd?

I installed cygwin/sshd without good results. I removed the c:\cygwin directory to reinstall. I removed the sshd Administrator user by hand. I reinstalled the cygwin again, then run the ...
4
votes
1answer
4k views

How to install Python 2.7 with Unix libraries on Cygwin

How do I install Python 2.7 with Unix libraries on Cygwin? Obviously getting Python 2.6 is easy - just install the Cygwin package with setup.exe. Installing the Windows version of Python 2.7 ...
4
votes
2answers
2k views

How can I update cygwin shell environment variables set in System Properties window

Suppose I go into the System Properties window and add an environment variable to the Path. If I have a terminal window open, it will be unaware of the change, so I close it and open another one. Is ...
0
votes
4answers
2k views

Open a text file in cygwin's VIM

Is there any way to configure Windows to open text files in Cygwin's VIM instance? I am currently using GVIM but I find it limiting for many reasons. Unfortunately, I can't just install Debian on this ...
7
votes
3answers
7k views

Use OpenOffice from command line to convert HTML to RTF

I'm trying to build a bash script in Cygwin that will convert HTML files to RTF. In OS X this is trivial with textutils, but that doesn't exist for regular Linux or Cygwin. Instead I'm trying to use ...
4
votes
2answers
2k views

How to persist bash history?

I don't know if this is expected, but my history is not saved across sessions. This is to say, if I close the window, then when I open it again, the history is empty. How can I persist it across ...
4
votes
4answers
4k views

Using SQLite3 with Cygwin

I'm trying to use sqlite3.exe command shell with a mintty terminal in cygwin. I tried the program from a windows command prompt and it works. When I try to use it from the cygwin mintty terminal it ...
3
votes
2answers
3k views

SSH to Cygwin is slow to respond

I have a Cygwin machine that runs sshd. When I try to login the machine with SSH, it takes a while to get a response. With the command ssh -v user@cygwin, I see that there are two commands that ...
3
votes
1answer
836 views

Running Cygwin Inferior Shell in Emacs

I am running Cygwin as an Inferior Shell in Emacs. Here's the basic step I am following: C-u M-x shell (rename the buffer to cygwin) cd \cygwin cygwin.bat Here's what I see: C:\cygwin>cygwin ...
2
votes
2answers
3k views

gcc not finding header file though its path has been included with -I

I'm trying to install a module (Package::Stash::XS) via cpanm, but the installation is failing due to a gcc error. The command gcc -c -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -fno-strict-aliasing ...
2
votes
1answer
2k views

When running X remotely via Cygwin why are my fonts ugly

Is there any way to pretty anti-aliased fonts to work on cygwin X server? Basically I want the vim screen on the left to look like the pretty vim screen on the right.
1
vote
1answer
951 views

Cygwin vim doesnt show 256 colors under ConEMu

When using cygwin vim under ConEmu, the default vim theme doesnt display correctly after I set t_Co=256. This is how ConEmu looks after the command: http://postimg.org/image/g6g98exbx/ My .vimrc: ...
1
vote
2answers
1k views

Diff and ignore lines missing in one file

I want to diff two files and ignore lines that are present in one file but missing in the other. For example File1: foo bar baz bat File2: foo ball bat I'm currently running the following diff ...
1
vote
3answers
2k views

Alias to open gVim (Cream version) from Cygwin shell

I'm using the Cream version of gVim, and i'd like to make an alias to open files from a Cygwin shell in Cream. Running the gVim executable from Cygwin gives the following error (in a Windows cmd ...
0
votes
3answers
303 views

A linux version of cygwin?

I'm looking for a linux program that is simple and text-based, like cygwin, thats actually linux. I feel to much is missed out by cygwin like nano syntax highlighting and general linux programs. Is ...
10
votes
2answers
3k views

How do I prevent Cygwin's XWin Server automatically starting xterm?

Whenever I start Cygwin's X server using the "XWin Server" link in my Start menu, or by running startxwin from a Cygwin shell, I automatically get an xterm window appearing, which I neither want nor ...
8
votes
3answers
4k views

Spawn New Cygwin Window from Within Cygwin

I can't figure out how to launch a new Cygwin session from within Cygwin, similar to launching a new terminal from within bash with: gnome-terminal It's probably easy but I am missing something. ...
5
votes
4answers
3k views

Best way to get 'linux command line tools' on Windows

I'd like to download the basic stuff like 'rm -rf'. I used to just download cygwin, but are binutils or some other alternative better (if all I need are the truely basic stuff ... I'm trying to think ...
4
votes
2answers
1k views

Is it possible/good practice to use same private key for two servers for passwordless login from the same workstation/localserver?

I have two websites. One website is a clone of the other website. When I checked the sshd_config file in both the sites they are exactly similar, except one uses authorized_keys as the identification ...
3
votes
1answer
2k views

how to tell if my code is compiled in 32 or 64 bit

I am using Cygwin (64 bit) on a 64 bit Windows 8 laptop. I notice a lot of the libraries/binaries/etc. say "Cygwin32" on them. If I compile my code using these, will my software take full advantage of ...
3
votes
4answers
5k views

Cygwin sshd did not start due to a logon failure

After a cygwin sshd install, sshd service fails with: Error 1069: The service did not start due to a logon failure I try to give cyg_server standard user and admin access. The error is the same ...
2
votes
1answer
173 views

“Bad address” error when accessing /dev/clipboard in Cygwin

I like to use /dev/clipboard for moving content easily between Windows and Cygwin's command-line tools. It seems like Cygwin has problems with large clipboard contents, though. I get an error like ...
2
votes
1answer
703 views

zsh autocompletion not working on cygwin

I am on win7 64b, with cywgin 1.7. I have added zsh shell to the installation. If I start a shell like with bash: bash --login -i autocompletion works fine straight away. But if I start a zsh: ...
2
votes
2answers
6k views

How can I use SSH with a SOCKS 5 proxy?

I don't know much about proxies in general, and especially not SOCKS5 proxies, so sorry if this is a newbie question but I haven't been able to find the answer online or in the man pages. I have a ...
2
votes
1answer
2k views

Cygwin fstab - what am I doing wrong?

I'm trying to automount my Windows home directory over my Cygwin home directory. If I run the mount command manually it works fine, but putting the mountpoint into /etc/fstab doesn't seem to work: $ ...