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

learn more… | top users | synonyms

97
votes
8answers
50k 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 ...
31
votes
6answers
40k 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 ...
9
votes
2answers
8k 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: $ ...
5
votes
4answers
7k 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 ...
5
votes
2answers
19k 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 ...
46
votes
1answer
47k views

Installing Cygwin packages from the command-line [duplicate]

Possible Duplicate: upgrading and installing packages through the cygwin command line? I'm looking for a "yum"-link method to install additional Cygwin packages from the command-line. Let's say ...
18
votes
5answers
19k 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
8answers
6k 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?
17
votes
2answers
44k 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 ...
5
votes
7answers
7k views

Setting up SSH/Git on Cygwin yields “Bad permissions on ~/.ssh/config”

I'm attempting to setup Git with OpenSSH under Cygwin. I almost got everything setup. I have the agent and public key and all that.. but now I get this really weird error: $ git pull -u origin master ...
11
votes
3answers
9k views

top command in cygwin?

I am starting to use Cygwin(64) on my Windows 8 laptop, however, the top command is not recognized. I have read online that I need to get the procps package, but it is not available on the 'Cygwin ...
6
votes
3answers
8k 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 ...
3
votes
2answers
1k 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 ...
11
votes
4answers
9k 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 ...
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
12k 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
213 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?
68
votes
7answers
29k views

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

I'm trying to change 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 (rw-rw--...
85
votes
5answers
135k 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 ...
29
votes
4answers
19k views

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

When running python in cygwin, I get the following error: 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 ...
12
votes
3answers
4k 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?
11
votes
3answers
35k 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 'ssh-host-...
10
votes
3answers
14k 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 ...
16
votes
5answers
12k 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 ...
7
votes
2answers
10k views

How do I create a shortcut that opens Cygwin bash shell on a directory of my choosing (UNC especially)?

Given a standard installation of Cygwin for Windows XP, I would like to create a standard Explorer shortcut that opens a bash shell already open on a directory of my choosing. The directory is a UNC ...
8
votes
2answers
2k 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 ...
6
votes
4answers
15k 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 ...
4
votes
1answer
6k 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
4k 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 ...
0
votes
4answers
5k 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 ...
9
votes
3answers
15k 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 ...
8
votes
6answers
20k views

Get display resolution from windows command line

I have seen several suggestions about programs to change the resolution from the command line. However I just want to display it, not change it. On linux I can use xrandr or xdpyinfo to get this ...
6
votes
2answers
10k views

How can I delete the cygwin folder on my c drive?

I have a folder called C:\cygwin. How can I delete this folder. It says I need permission from the administrator. However I am logged in as administrator.
5
votes
3answers
16k views

Permission denied when using mv in Windows 7 Cygwin

I have Cygwin installed on Windows 7 in a windows domain sign-on environment. I can run most typical commands without issue, but I cannot for the life of me use the "mv" command to move or rename ...
5
votes
1answer
5k views

change directory to network drive in Cygwin

I have a new wireless router in my home and have a 3 TB drive hooked up to it. I would like to write a backup script in cygwin which will copy over any changed files to the external HD. For starters, ...
5
votes
2answers
3k 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 ...
5
votes
2answers
4k 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 ...
3
votes
2answers
5k 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 -...
3
votes
2answers
18k views

Git: Command not found Windows

I have downloaded and installed GIT from http://git-scm.com/download/win For some reason, in Cygwin and in Command prompt (Windows 8), the git command is not found. I selected the option for ...
10
votes
3answers
7k 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. ...
8
votes
3answers
9k 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 ...
5
votes
4answers
10k views

Best way to get 'linux command line tools' on Windows [closed]

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
4answers
9k 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 ...
4
votes
1answer
3k views

How to run a Cygwin program (xemacs) without showing a terminal window?

The title pretty much sums it up - I like editing text with xemacs running under cygwin, and I'd prefer not to have it spawn a console window when I start it from a shortcut. Any suggestions?
3
votes
3answers
2k views

Is it possible to have cygwin ignore the Windows HOME environment variable?

As part of installing EGit, I had to set a HOME environment variable in Windows. This caused a problem whereby cygwin considers the HOME environment variable in Windows more important than the value ...
3
votes
1answer
969 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
1answer
2k views

Why can I see a file that I own in CygWin but not in Windows Explorer?

I installed Cygwin in Windows 7 and was browsing through the c:/cygwin/ directory in the Cygwin terminal. There exists a directory bin/ at the path c:/cygwin/usr/bin, but I cannot find this folder in ...
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
2answers
490 views

What is the minimal packages list for Cygwin?

The Cygwin FAQ mentions that one the first install, the setup exe will download “a minimal subset of all available packages.” Which packages are part of this subset? I’m installing Cygwin on a ...
1
vote
3answers
1k views

Copy a list of files preserving directory structure, without scripts

Is there a way to copy a list of files, that share a common base directory, preserving their relative directory structure? The files with relative paths are listed in a text file. edit I have the ...