Questions tagged [cygwin]

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

Filter by
Sorted by
Tagged with
121 votes
9 answers
86k 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 ...
  • 2,255
44 votes
9 answers
69k 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 to ...
6 votes
1 answer
3k views

How to Delete a File that Contains the "CON" Substring?

The CygWin Environment does not provide a Software Uninstallation Procedure. Among its leftovers, there is also this File: C:\Users\DOBRE\AppData\Local\MyApps\CygWin\usr\share\avogadro\crystals\...
user avatar
12 votes
2 answers
18k views

How to compile the best version of FFmpeg for Cygwin/Windows

It's generally accepted that, by default, FFmpeg comes packaged with lower-quality encoders - particularly when it comes to the default AAC encoder and the default resampler. According to these ...
  • 11.2k
40 votes
5 answers
67k 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 | ...
  • 615
29 votes
2 answers
95k 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 ...
10 votes
3 answers
12k 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: $ ...
  • 3,897
9 votes
2 answers
25k 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 ...
  • 175
79 votes
7 answers
41k 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----...
  • 980
64 votes
7 answers
31k views

Cygwin bash prompt is wrapping lines on the same line

I'm using Cygwin bash prompt, and for long commands the text will wrap around on the same line as opposed to going to the next line despite setting my PS1 to simply ' $'. Here's a screenshot,
  • 1,112
47 votes
1 answer
59k 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 I ...
  • 3,492
45 votes
9 answers
30k views

How to change the title of the mintty window?

MinTTY is the new default Console for Cygwin. What's a shell command (something I can put in .bashrc, or even better, in .zshrc) to change the title of the MinTTY window ? I'd like the title of the ...
  • 851
32 votes
8 answers
38k views

"Bad owner or permissions" error using Cygwin's ssh.exe

I'm trying to use ssh.exe in Cygwin (in Windows 7). I copied a config file into c:\cygwin\home\[USERNAME]\.ssh. When I run ssh (for example, ssh -vT git@bitbucket.org) I get the following error: ...
31 votes
6 answers
38k views

How to use Cygwin to copy an image from an SD memory card

Long story short, I'm working on a Windows 7 machine and I'd like to strip the image off an SD card (backing up the card from a Raspberry Pi). I'm trying to use Cygwin, but not having much success. ...
29 votes
12 answers
31k views

Backspace does not work in Cygwin

I just installed Cygwin and the BACKSPACE functionality is not there, i.e. when I hit the Backspace key, I get a space. I've been trying to research this issue on Google, but did not find anything ...
25 votes
6 answers
25k 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 ...
  • 1,394
20 votes
4 answers
17k views

how to install gpg on cygwin? currently it's missing

I have cygwin installed on Win 7 but can't see gpg in /usr/bin/.. is this normal? How can i get it? I am trying to verify a linux ISO and need this to check the signature file.
  • 589
13 votes
8 answers
12k 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,128
11 votes
4 answers
13k 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 the ...
  • 1,003
9 votes
3 answers
16k 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,003
9 votes
3 answers
13k 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 ...
  • 191
7 votes
2 answers
28k views

How can I add cygwin/bin to the search path in Windows XP?

I installed Cygwin on my Windows XP machine. How can I add c:\cygwin\bin to the %PATH% in such a way that it persists? My autoexec.bat is empty, and I assume it's no longer the right place for that. ...
6 votes
8 answers
9k 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 ...
  • 4,444
5 votes
3 answers
37k 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 ...
5 votes
6 answers
18k 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 with ...
4 votes
2 answers
19k views

passwordless ssh from linux to windows

I am trying to login to Windows without password from a Linux server. I have already installed OpenSSH from GitHub and I'm able to do scp and ssh. I tried copying the authorized_keys to the Windows ...
  • 149
4 votes
3 answers
2k views

How do I reverse the text in a file / stream in UNIX / Cygwin?

I have a block of text that I want to put in reverse-characer order (backmasking). Is there a simple way to do that via a Unix / Cygwin command-line?
  • 431
3 votes
3 answers
3k views

Copy files with partial resume support? (Win/Cygwin)

Just curious if anyone knows of a tool that'll copy files, and should the file get interrupted, have it resume where it's left off the next time it's invoked. I'm basically trying to copy something ...
  • 2,744
3 votes
2 answers
2k 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,359
2 votes
1 answer
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?
  • 175
1 vote
1 answer
331 views

How likely is the last block of a drive to be a bad sector?

This is a follow-up question to this one, where zeroing the disk with dd would give me an error towards the very end of the drive. I then set about trying to determine whether this was a bad sector, ...
  • 11.2k
0 votes
1 answer
373 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?
  • 385
-1 votes
2 answers
786 views

Badblocks reports "weird value (4294967295) in do_write" when writing patterns

This is the second time that I'm receiving this error running badblocks, approximately 2 years apart from the last time, and the vast majority of factors from hardware (cables, etc.) to software (the ...
  • 11.2k
200 votes
9 answers
410k 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 ...
  • 2,173
123 votes
5 answers
25k views

How do I make ctrl-arrow keys move forward/backward a word at a time in Cygwin bash?

In the default Cygwin installation, using CTRL-LEFTARROW or CTRL-RIGHTARROW simply prints 5C or 5D instead of skipping a word at a time as expected. Home/End keys work properly, so remapping should ...
  • 3,564
75 votes
10 answers
325k views

How to completely uninstall/remove cygwin from Windows 7

How can I completely uninstall/remove cygwin? I don't think it is as simple as deleting C:\cygwin. Maybe alter registry?
63 votes
6 answers
109k views

How can I use SSH with a SOCKS 5 proxy?

I have a SOCKS5 proxy set up through PuTTY with port 7777 configured as a dynamic port. I can use firefox/filezilla/etc by configuring them to use a SOCKS proxy with localhost and port 7777. But I ...
55 votes
2 answers
33k views

What is the difference between Windows Subsystem for Linux (WSL), Cooperative Linux (coLinux), and Cygwin?

Did anybody still remember coLinux? I remember it is used for SpeedLinux and Portable Ubuntu some years ago. It's pretty clear what is coLinux doing, running Linux on top of Windows somehow, but can ...
42 votes
5 answers
51k views

How do I change the default startup directory in Cygwin?

Whenever I start cygwin, I need to cd several levels down to the only directory that I care about when using cygwin. How can I get cygwin to start in this particular directory by default...i.e., ...
  • 884
42 votes
13 answers
168k views

SSH key asking me for a passphrase?

I have a public/private key pair. Neither of them have any sort of passphrase associated with them. Whenever I try to ssh using either the private or public(and I'm pretty sure I should only be ...
  • 593
40 votes
7 answers
49k views

tmux/screen alternative for powershell

Is there an alternative to tmux/screen that would work on Windows with Powershell? I'm aware of Powerscreen, but it seems dead for a long time. Cygwin wouldn't work with Powershell, would it? Console2 ...
  • 627
34 votes
5 answers
29k views

How to change the default shell in Cygwin?

I am trying to change my default shell from bash to zsh in cygwin. The normal unix command chsh isn't available on cygwin The etc/passwd file it seems isn't used anymore in existing versions of ...
31 votes
4 answers
23k 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 ...
  • 2,294
28 votes
3 answers
29k 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.
23 votes
9 answers
88k 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 ...
  • 478
19 votes
2 answers
11k views

Cygwin/X and Windows Subsystem for Linux

I have a functioning Cygwin installation on my Windows 10 device (a Surface 3, in case that matters), including a functioning Xorg windowing environment. I've just begun to experiment with with the ...
  • 309
18 votes
3 answers
36k views

When trying to connect remote clients to Cygwin/X, I get 'Authorization required, but no authorization protocol specified'

I just installed Cygwin/X and I launch it with startxwin -- -listen tcp to allow remote clients to connect to it through tcp. However, remote clients fail to connect to the remote display with the ...
  • 2,414
18 votes
4 answers
17k 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. ...
  • 6,575
18 votes
3 answers
61k 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-...
  • 5,674
17 votes
1 answer
4k views

Remove unneeded dependencies from Cygwin

In Cygwin when I install a new package it automatically installs any dependencies needed for that package. Later if I choose to remove that package, how can I remove the dependencies it installed ...
  • 718