Questions tagged [cygwin]

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

510 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
9 votes
0 answers
1k views

Shell unbuffering for CygWin: is it possible?

I have tested on CygWin doing "ls -R" with a large directory and sending the output to a Test.txt file, so the process takes about 30 seconds to complete; the file is created, but it is empty; it will ...
8 votes
0 answers
3k views

tmux split panes not rendering properly in Conemu

I'm trying to use tmux over ssh (cygwin) in conemu, and keep running into the following issue. I'll start with a vertically split screen that seems to be fine: And switch to the right split, hit ...
6 votes
1 answer
3k views

Running fsck from cygwin shell?

I need to be able to check / fix file system errors on SD cards from a win7 box. I had hoped to use e2fsck from cygwin but am having some issues getting this to work. (SD cards are used to boot ...
  • 357
6 votes
1 answer
1k views

New Xming Windows Doesn't Grab Focus

I do my day-to-day work on Windows 7 (no, that's not going to change) and often need to work with Linux running on Parallels. Switching between Windows and Linux desktops is a pain, so I've installed ...
5 votes
1 answer
182 views

GNU screen is slow exiting

I've set up my .bashrc to automatically screen -DRA (even though it's a local session). screen works fine, except that if I run exit from the last window or otherwise close it from the client itself, ...
4 votes
1 answer
7k views

Can't install gcc with cygwin on Windows 10

After installing cygwin on Windows 10, I tried to install gcc by cd C:\cygwin C:\cygwin\setup-x86_64.exe -q -P wget -P gcc-g++ -P make -P diffutils -P libmpfr-devel -P libgmp-devel -P libmpc-devel ...
  • 247
4 votes
0 answers
477 views

Change mintty title according active tmux window (cygwin)

How can I change mintty terminal title to show title of active tmux window? For example: I would like in this case title to be active tmux window - ncmpcpp or even better if possible title provided ...
  • 41
4 votes
0 answers
1k views

Cygwin: scp/ssh is slow

I'm using rdiff-backup for backuping my data. Since some machines are using Windows I installed sshd and rdiff-backup with cygwin there. The backup works but is pretty slow. I then did some testing ...
  • 41
4 votes
0 answers
1k views

Unable to set permissions using Cygwin on Windows 7

I have Cygwin 1.7.34(0.285/5/3) installed on a 64-bit Windows 7 machine and I've found that I'm unable to control the permissions of files/directories on my computer with it (through chmod). Most ...
  • 224
4 votes
0 answers
3k views

Password required when trying to ssh into a server using Cygwin on Windows 7

I'm trying to set up a server at our company, and one of the things I'd like to be able to do is host public Git repositories on it which I can access over ssh. Both the server and the workstation I'm ...
  • 224
4 votes
1 answer
3k 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: ...
  • 356
4 votes
1 answer
1k views

Install python module snack on cygwin for byobu

I'm setting up the terminal multiplexer byobu on cygwin. But it's not fully working, since it has some python dependencies. E.g. F9 toggles the menu, which relies on byobu-config. That needs python-...
  • 449
4 votes
0 answers
1k views

Case-sensitive error in compiler's building using crosstool-ng under Cygwin

When I try to build gcc cross-compiler using crosstool-ng under Cygwin (running in Windows 7) I have the following message: $ /opt/ng-crosstool/bin/ct-ng build [INFO ] Performing some trivial sanity ...
  • 559
4 votes
2 answers
775 views

lpr on Cygwin appending .lnk to my PRINTER value

I have Cygwin on a Windows 7 machine. In my .bashrc file, I have tried export PRINTER=\\\\myPrintServer\\myPrinter Escaping the backslashes, which, when I type $lpr -D, gives me Windows Printer ...
  • 1,037
3 votes
0 answers
291 views

conemu using cygwin does not seem to recognise '\r' as a line end - specifically for git command reflog (and a few others)

When I run the git command git reflog via conemu using cygwin on windows 7 I get the entire output on one line. I figured it was some line ending issue that conemu is not picking up. So I tried the ...
  • 1,379
3 votes
1 answer
3k views

Always run X11 on Windows 10?

I have Cygwin-X installed on my Windows 10 machine. When I run XLaunch, everything starts up fine. What I would like, though, for X11 to start up, and stay running, when Windows starts, and to ...
  • 490
3 votes
0 answers
246 views

Why does setting CYGWIN=winsymlinks:nativestrict break zsh's (oh-my-zsh) history?

I have this in my .zshrc CYGWIN=winsymlinks:nativestrict When I source .zshrc or start the terminal. I get this error: zsh: locking failed for /home/r892107/.zsh_history: no such file or directory: ...
  • 873
3 votes
0 answers
3k views

sshd on cygwin: connection reset by peer

I installed inetutils on my cygwin this afternoon, and since then my sshd hasn't worked anymore. Here's the message from ssh client $ ssh localhost sh_exchange_identification: read: Connection reset ...
  • 31
3 votes
0 answers
5k views

How can I find the password of a CygWIN 'cyg_server' privileged user?

Have given this a good web-search, and inside the forum also, but cannot yet find. I have the Privileged user cyg_server as a CygWIN user in /etc/passwd file, and it also shows up in its own right as ...
  • 63
3 votes
1 answer
369 views

Why would it be faster to hop SSH with pseudo-tty versus forwarding?

I have noticed that on my office's network, multi-hop SSH connections using the "pseudo-tty" method perform better (see last note) than using the "forwarding" method. Why would this be the case? In ...
  • 31
3 votes
0 answers
7k views

How can I find out the failed login attempts in windows cygwin open ssh

How can I find out the failed login attempts in windows cygwin open ssh i looked inside this path but did not find any logs with failed attempts C:\cygwin\var\log
3 votes
1 answer
1k views

Tmux copy the selection to /dev/clipboard without key-mapping

Many answers related to this topic suggest to map Ctrl+y to a command that pipes tmux show-buffer to xclip. In the specific case of cygwin, the correct way to interract with the Windows clipboard is ...
  • 2,607
3 votes
1 answer
72 views

Reactivate Dormant Processes in Windows7

I have a very computationally intensive program (which I wrote in python) and starting two days ago I ran 6 copies of it in parallel (using 6 Cygwin terminals on a Mac Book Pro running Windows7 in ...
3 votes
0 answers
838 views

Slow screen redrawing in terminal emulator

I use a modified PuTTY (PuTTY Tray, derived from PuTTYcyg) to connect to my Cygwin's login shell (zsh), on Windows 7 (64-bit). This works, but the screen refreshing is very slow. For example, when I ...
3 votes
1 answer
4k views

Copying folders with cygwin

The folder produced by cp -r myfolder myfolder2 is marked shared as reported by "It is shared with other people. Are you sure that you want to delete it?" dialog in windows when I try to delete the ...
  • 1
3 votes
0 answers
2k views

Running cron on Cygwin to call notifu

I have installed Cygwin with cygrunsrv and Cron so I could use the benefits of using Linux-style scheduling in Windows. I want to call notifu from a cron job. I Installed cron as a service using the ...
  • 203
3 votes
1 answer
1k views

Installing GNU mailutils on windows

I'm using Windows 7, and would like to use the GNU mailutils, specifically mu and mu4e. Unfortunately, these are not available as Cygwin packages. Is there any way to use GNU mailutils on windows ...
3 votes
0 answers
1k views

Home and End keys doesn't work in vim inside tmux

I can't use home and end keys in vim, when in Tmux. I've got this strange stuff: H F H sample text my .tmux.conf: set-option -g mode-mouse on set-option -g mouse-select-pane on set-option -g mouse-...
  • 3,217
3 votes
0 answers
553 views

Using Up Arrow in Cygwin within command

I just reinstalled Cygwin on my new PC, and I am having a problem with the up arrow. While at the regular Cygwin prompt, the up arrow works fine to scroll through the previous commands. However, on my ...
3 votes
1 answer
1k views

vim in Console2 on Windows doesn't colour code?

I'm using Console2 on Windows with Cygwin. Using Windows vim (on my PATH), the colour coding doesn't seem to display in Console2? Using vim from cmd does colour code.
3 votes
0 answers
1k views

Pubkey authentication with SSH server running on Cygwin - session closes immediately

I am connecting from Linux via SSH to a Windows machine running SSH in Cygwin. I authenticate with a certificate. The session opens but closes immediately thereafter. With password authentication it ...
3 votes
0 answers
449 views

Escaping spaces in tab-completion in a Cygwin shell subprocess on GNU Emacs on Windows

I use GNU Emacs on Windows and Cygwin as my shell. If I create a Cygwin shell subprocess with M-x shell, I get a proper bash prompt. If I type this: cd ~/My<tab> it tab-completes to cd ~/My ...
  • 297
2 votes
1 answer
800 views

Can the Windows %PROGRAMFILES(X86)% environment variable be accessed in Cygwin or Git Bash?

In Git Bash and Cygwin, I can easily access the Windows %PROGRAMFILES% environment variable: $ echo $PROGRAMFILES C:\Program Files $ echo ${PROGRAMFILES} C:\Program Files However, due to the ...
  • 183
2 votes
0 answers
82 views

Cygwin installer does not terminate if run as administrator

I want to install Cygwin quietly. The problem is, that the setup does not terminate. It stays open in the background and takes 100% CPU usage. This can be seen in the task manager. I am calling the ...
  • 705
2 votes
1 answer
98 views

Can I add a newline into a command from bash's history?

I often stumble across this problem: I type a command that has multiple lines for readability. This is an example: echo "Hello. This is an example of a very long command which is divided into ...
  • 1,313
2 votes
1 answer
262 views

How to run ImageMagick library scripts in Windows with Cygwin

I have reviewed many posts, but I did not find a solution to run ImageMagick scripts in Windows with Cygwin, despite configuring them following this post. It fails with an error FILE ./0004.jpg DOES ...
  • 233
2 votes
0 answers
51 views

Cygwin/Babun: ssh-host-config error with local ADMINSTRATORS and/or SYSTEM

executing ssh-host-config -y shows following output: .... *** Info: called 'sshd'. *** Info: For more info on privilege separation read /usr/share/doc/openssh/README.privsep. *** Query: Should ...
2 votes
0 answers
49 views

Why does my c++ code run significantly faster using Cygwin on Windows, than Windows?

I have built a project in c++ and have discovered that on Windows, runtime is about 120 seconds. Running the same code in Cygwin, compiled for linux, it takes 15 seconds. I've no idea why this is ...
  • 21
2 votes
0 answers
2k views

Windows git "bad file descriptor" while commiting on OES Network Share

Upfront: I don't have much experience with Windows and hardly any with coorporate networks. I'm trying to use git for version control during the development of my software. The company I work for is ...
2 votes
0 answers
724 views

ConEmu + msys2 zsh

On ConEmu page concerning the cygwin/msys terminal connector there are examples related to conemu-cyg-64.exe. I readapted them to conemu-msys2-64 in ConEmu 171109 as follows (line breaks are for ...
  • 877
2 votes
0 answers
830 views

Uninstall recent Cygwin package with all the new dependencies it introduced?

I have seen this: Remove unneeded dependencies from Cygwin ... but it appears that that script is only proposing to identify packages on which no other package depends: which makes it a very clever ...
2 votes
0 answers
2k views

Cygwin doesn't display Python output

I installed Cygwin through https://cygwin.com/setup-x86_64.exe and using all the default settings. Cygwin doesn't display Python output: I would have expected instead: What could the issue be? I ...
2 votes
0 answers
615 views

How to preserve file mode attributes with cygwin cp command on Windows 10?

The same cygwin version 1.5.25 is installed on Windows 7 and Windows 10. With a perl script using the stat command, I see the source file mode is 666. The source file is a simple text file. After ...
2 votes
0 answers
923 views

Why is accessing mapped network drives slow from cygwin?

I have a mapped network drive (F:) on Windows 7 that I can access very quickly from cmd.exe. For examle dir f: returns instantaneously. But from cygwin, ls /f takes 20 seconds. From cygwin: $ uname ...
  • 121
2 votes
0 answers
1k views

CygWin suddenly really slow

I've been having trouble with my CygWin terminal for a few days and I can't seem to find what has suddendly made it so darn slow... Running $ time for i in {1..10} ; do bash -c "echo Hello" ;...
2 votes
0 answers
1k views

Running 16-bit programs using Wine in Cygwin on 64-bit Windows

I was motivated to install old programs after digging up disks of UB Funkeys and SimCity 2000. I wanted to run them without a hungry VM environment that didn't feel streamlined. I am also a legal ...
user avatar
2 votes
0 answers
858 views

get the list of remembered Network Profiles of a Windows computer over ssh

AFAIK, Windows remembers the network locations you've connected to (and tagged as Guest, Work or Home). It identifies them based on (possibly among other things) the domain name returned by the DHCP ...
  • 327
2 votes
1 answer
462 views

Linux locale - how to disable smart quotes?

On my Gentoo system, find . -regextype help outputs find: Unknown regular expression type ‘help’; valid types are ‘findutils-default’, ‘awk’, ‘egrep’, ‘ed’, ‘emacs’, ‘gnu-awk’, ‘grep’, ‘posix-awk’, ‘...
2 votes
1 answer
347 views

cygwin: git commit - vim Editor always in line 5 but not on file edit

I am using cygwin on windows and git from the shell. VIM is configured as my default commit message editor. When I am editing my commit message, ie $ git commit my cursor always resides to line 5 ...
  • 311
2 votes
0 answers
587 views

Cygwin command to set user path when logging in ssh

I've setup a sshd as a service on windows 7 with cygwin, choosing to create cyg_server to run it. Now I can login to my machine via SSH with my normal username, everything works, except what depends ...
  • 396

1
2 3 4 5
11