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

learn more… | top users | synonyms

0
votes
0answers
3 views

Cygwin install error: Package file libxxx has a corrupt local copy, please remove and retry

This problem will be answered here in case anyone else runs into this issue. When attempting to install certain packaged to Cygwin, I received one of the following errors: Package file libgcc1 ...
7
votes
6answers
6k 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 ...
0
votes
1answer
6 views

Cygwin convert windows path to unix then change dir

I am usually trying to use the cygwin terminal to move to a nested directory. The problem is the windows directory are not immediately interpreted. So I had to do two step: $ cygpath -u ...
1
vote
3answers
522 views

Why do random characters appear in terminals in Windows?

I've been programming on Windows for a few years, and there has been an issue that is becoming increasingly frustrating as I have really started to use various terminals in Windows for my development ...
3
votes
4answers
2k views

How to copy and paste between cygwin's vi/emacs and windows clipboard?

I tried to paste what I copied in windows clipboard into cygwin's vi or emacs, and it doesn't seem to work with yy (vi) or M-w (emacs). Is there a way to do it? I learned that /etc/clipboard has the ...
1
vote
4answers
2k views

How do I mount an NTFS image created by GNU NTFSclone on Windows?

How do I mount an NTFS image created by GNU NTFSclone on Windows? Neither the gnuwin32 version of NTFSclone nor Cygwin’s mount seem to be capable.
0
votes
0answers
22 views

Permission Denied (Public Key,password,keyboard-interactive)

I have installed CYGWIn and then run SSH-HOST-CONFIG There I have disabled the stric mode and created a privileged user for SSH. Now when I do ssh cyg_server@localhost , I am getting the password ...
1
vote
0answers
11 views

How to connect remotely from Windows to a Vagrant instance?

Is there a way to connect from my windows pc to a vagrant instance running on my mac which is on the same network? Ideally I would like to use cygwin or something equivalent
0
votes
1answer
7 views

Running the command “bochs -q” from Cygwin fails

I'm having troubles to execute the command "bochs -q" from Cygwin. I have installed the XV6 operation system in my C drive. I'm using Cygwin in order to compile the XV6 files, that is execute the ...
-1
votes
0answers
10 views

Tmux 1.9a - variable #{pane_current_command} doesn't work as expected

I'm trying to get vim-tmux-navigator to work on my my Cygwin (Win7 x64) + Tmux 1.9a but it doesn't. The reason is the variable #{pane_current_command} always returns bash instead of vim, so the ...
2
votes
1answer
5k views

Installing Cygwin C and C++ compilers for NetBeans IDE 7.2

I am very new to Cygwin, C, C++ and NetBeans IDE 7.2. My PC is running MICROSOFT WINDOWS 7 OS. I have read the documentation on how to install the Cygwin C C++ compilers. ...
0
votes
0answers
2 views

Problems with locale on cygwin

Trying to mess around with locale in a program. GCC - or rather g++ being the compiler I use - throws an exception. One problem I see is that locale -a lists the suitable locale to use as ...
0
votes
0answers
30 views

SFTP connection is getting closed after password

We have setup cygwin on windows 2012 and the services related to the tool are running fine on the server. During installation we have created a local user cyg_server, we tried to create home folder ...
0
votes
2answers
783 views

Launch Windows program from Cygwin

Is it possible to launch a Windows program from the Cygwin Shell? (similar to firing unix commands in PHP with "exec(…)") My example: I'd like to launch a database backup in cygwin, however the ...
0
votes
0answers
145 views

chgrp and chmod not working in cygwin (windows 8)

I work in "C:\Users\leyou.ssh" I need to chmod id_rsa to 600 as it's currently 644, but it has no effect. Hence I tried "chgrp Users id_rsa" but it doesn't work neither and the group remains as ...
2
votes
1answer
3k views

Cygwin OpenSSH closes immediately after a connection

Trying to connect to cygwin-sshd using putty or cygwin ssh on localhost, here is all I get. I have it working fine on a different Win7x64 machine but this one is proving hellish. Config files for ...
0
votes
2answers
5k views

How to move files to hdfs in hadoop using unix command

I have 2 directories "dft" and "hdfs" in the unpacked Hadoop folder. I am trying to copy the file(StartUnit.txt) in dft into hdfs. The corresponding command and exception are as shown below ...
-1
votes
0answers
16 views

How to include header file in cygwin [migrated]

I have a base class,A, (in C++) and want to have another class, B, that inherits class A. class A{ public: int n; A(){n=0;} void Test(int m); }; class B:public A{ public: int func(); }; I have ...
1
vote
1answer
60 views

rsync from Solaris to Windows (character encoding on filenames)

I'm trying to use RSYNC to sync files from a Solaris 9 (SunOS 5.9) System to a Windows Server 2008 R2 (via cygwin) There are many Files containing characters like "ä", "ö", "ü" or "ß". Which are only ...
0
votes
0answers
10 views

Open windows gui applications through ssh with x forwarding

I have a cygwin sshd server set up on a windows computer and want to start a windows application (like notepad.exe) through ssh using x11 forwarding, i.e. I want to connect from windows computer a to ...
0
votes
1answer
20 views

Why does cygwin sha512 create different checksums depending on terminal?

I'm using Windows 7 and have both Cygwin and the ming-based Git command line tool. When I issue the command: c:\>echo -n hello | e:\cygwin\bin\sha512sum from the Windows cmd, it generates ...
2
votes
3answers
28 views

How can I install pygame on python with cygwin? [duplicate]

I cannot install pygame on cygwin properly. I tried to follow that old doc , http://msdl.cs.mcgill.ca/people/tfeng/svmsccdoc/node49.html, but it doesn't work. Worse issue is SDL not be able to ...
1
vote
1answer
94 views

Cygwin from Windows very slow/ laggy

Suddenly all Cygwin commands I start from the Windows command line have a ~10-20 second lag before they execute. So that Cygwin becomes totally unusable, I already tried to reinstall without success. ...
1
vote
1answer
4k views

How do I install gfortran (via cygwin and etexteditor) and enable ifort under Windows XP?

I'm a newbie in the Unix world so all this is a little confusing to me. I'm having trouble compiling some Fortran files under Cygwin on Windows XP. Here's what I've done so far: Installed the e ...
1
vote
3answers
24 views

Unable to delete a file using cygwin shell

I'm trying to delete the file ~$bgka.mod from my current directory in Cygwin shell. When I list all my files in that directory it shows up: $ ls ~$bgka.mod CaBK.mod hcdist.hoc mcdist.hoc ...
14
votes
5answers
8k 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: ...
1
vote
1answer
23 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
1answer
143 views

remove 'Starting /bin/bash.exe' on cygwin chere

Is there a away to remove Starting /bin/bash.exe when right clicking Bash Prompt Here.
1
vote
1answer
29 views

Failing to compile Putty for Windows on Ubuntu

I am trying to compile putty for windows on ubuntu 14.04. got the source from here: http://the.earth.li/~sgtatham/putty/latest/putty-0.63.tar.gz This is what I did until I got the error: ...
0
votes
1answer
19 views

How to run X/Cygwin without first running cygwin.bat?

To run any GUI program, I need first run a startxwin, which has no EXE extension. So I need first run cygwin.bat. startxwin only starts GUI terminal by default, so I am obliged to run 2 intermediate ...
0
votes
1answer
30 views

cygwin on win7 x64 takes long time to respond

I recently got a new PC(laptop) and installed cygwin on it, latest version as of today. For some reason cygwin behaves strangely. When i open the cygwin console or when i type commands in regular ...
-1
votes
0answers
46 views

Command not found in a remote SSH terminal, but works in a local cygwin terminal

I am trying to execute a batch command on a XP machine from Windows 7 using PuTTY. If I am on the XP machine everything works fine using the Cygwin terminal. The batch executes. Using PuTTY I get a ...
0
votes
0answers
8 views

Bash/Cygwin synchronize two directories

I have small problem with synchronization of two git repositories. In first directory for example localRepo is only two subdirectories: localRepo/ dirA/ dirA1/ ...
0
votes
0answers
49 views

Windows 10 Technical Preview: running custom commands

I have recently installed the Windows 10 Technical Preview and like using unix in my terminal. When I had Windows 8 I used a very lightweight application called gow that installed a few unix commands ...
9
votes
3answers
2k views

How long should it take Cygwin to load?

I recently downloaded Cygwin so I could easily use gcc. It installed correctly, and gcc compiles programs and reports errors as expected... but I can't help but notice that it appears to be taking an ...
0
votes
1answer
51 views

Bash Scrolling Output Cygwin

My apologies if this has been asked before but I did my best to find it beforehand. I have a bash script like so: #!/bin/sh <Appropriate variables here> lftp -c "open -p $port -u $login,$pass ...
0
votes
1answer
52 views

cygwin's chmod behaves as working, but it does not work

My Cygwin installation is behaving strangely: chmod does not work. [09:45 Administrator@DellIns14 ~] > ls -ls /usr/bin/chmod 64K -rwxr-xr-x 1 Administrator None 38K Feb 6 2012 /usr/bin/chmod ...
0
votes
2answers
51 views

How can I install pygame on python with cygwin?

I cannot install pygame on cygwin properly. I tried to follow this old doc http://msdl.cs.mcgill.ca/people/tfeng/svmsccdoc/node49.html but it doesn't work.
-2
votes
0answers
22 views

Windows 8.1: move/rename online-only files in OneDrive from a Cygwin shell

I'm trying to batch rename some online-only files in OneDrive from a Cygwin shell (with a beefed-up version of Larry Wall's rename script, in case you're interested). That won't work; I figured that ...
54
votes
6answers
19k 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 ...
0
votes
2answers
287 views

Using Autohotkey for Emacs

I am using emacs in Cygwin and have used Autohotkey to re-map the lefthand 'Alt' key and the lefthand 'Windows' key to be (left)Ctrl and (left)Alt respectively. This means that an emacs sequence like ...
2
votes
1answer
436 views

Running .bat file on cygwin CLI without the .bat extension

I have been looking for a way to run dos batch files from the cygwin command line without having the enter the extension. Would that be possible? Currently, I have to enter the extension otherwise ...
10
votes
3answers
4k 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 ...
4
votes
5answers
4k 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 ...
17
votes
8answers
94k 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?
1
vote
1answer
30 views

Can't connect with OpenSSH sftp with custom port

I am using Cygwin on Windows 7. I have installed OpenSSH client and i am using it connect to Ubuntu server installed on virtualbox through localhost. I am connecting through ssh with this command: ...
5
votes
3answers
1k views

How to check if cygwin mintty/bash is run as administrator?

Problem Statement: What is the most elegant and robust way to test if Cygwin mintty bash session is "Run as adminstrator"? Why, specifically? I have typically several mintty terminals open when using ...
1
vote
1answer
196 views

Launch startxwin in current terminal

I'm using Cygwin and am using Console2 as replacement to the default Cygwin terminal. I need to use X11 forwarding, and every time I run startxwin it launches it in a new terminal. I would instead ...
12
votes
5answers
7k 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. ...
18
votes
7answers
21k views

“unable to get setup.ini” error during Cygwin installation

While installing cygwin I'm getting the following error unable to get setup.ini What is the reason? I'm newly studying Unix. So Please guide me in this.