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

learn more… | top users | synonyms

0
votes
1answer
27 views

Bitvise SSH Server putting extra spaces in session

I am using Bitvise SSH Server on my Windows machine for remote access. The login shell is ZSH, and I am using Oh My Zsh with it. However, I have also tried BASH and got the same problem. Therefore I ...
1
vote
1answer
21 views

Connect trough Cygwin without being asked for password

I'm trying to connect to a remote machine using Cygwin, the connection is successful problem is that it always asks me for the password. ssh -i ~/.ssh/id_rsa -o "StrictHostKeyChecking no" ...
8
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 ...
15
votes
4answers
31k 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 ...
2
votes
2answers
3k views

Changing the HOME for Cygwin

I'm trying to change the home directory for Cygwin on a computer at work. Our home directories mapped to a network share by default. This seems to cause some confusion for Cygwin, as it created a ...
-1
votes
1answer
22 views

Tidy reports missing library cygtidy-0-99-0.dll

I am trying to execute tidy.exe but get the following error message. /cygwin/bin/tidy.exe: error while loading shared libraries: cygtidy-0-99-0.dll: cannot open shared object file: No such file or ...
1
vote
1answer
22 views

Cygwin can't find the top command [duplicate]

When I want to run top I get a message saying that the command cannot be found. I had a similar problem with the nano text editor. I resolved that by installing the nano package from the Cygwin ...
9
votes
5answers
3k 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 ...
5
votes
3answers
4k views

Putty->Cygwin X11 Forwarding “Can't open display” Error

I am using Putty on a Windows machine to ssh into another server. Once there, I am trying to use X11 forwarding to pop windows onto my computer. The remote system is not the issue since it is a large ...
0
votes
1answer
17 views

Cygwin terminal cannot show the contents of unicode text file correctly

I have a text file with Urdu text. I use the cat command to view the content, but I see distorted digits and symbols like text. How can I view the text correctly?
1
vote
2answers
43 views

How do I stop cygwin from creating undeletable files? Or can I delete them somehow?

Once in a while cygwin seem to create files that doesn't seem to be removable at all. When deleting from cygwin it just doesn't happen (rm says nothing, but the file is still there). When trying from ...
-1
votes
1answer
28 views

Cygwin use urxvt as shell and w3m-img not working with neofetch / ranger

So I'm trying to use urxvt instead of mintty but I haven't found a way other than launching mintty then launching urxvt and closing mintty. I tried making another .bat file which launched cmd.exe and ...
1
vote
0answers
13 views

SSH Cygwin Password not recognised

I have recently been using Cygwin to connect to an Ubuntu box which I host my server on, however it has just been reset completely. Previously I had no issues using Cygwin however I recently re-made ...
0
votes
1answer
19 views

How to pass options to command using cygwin run.exe

I want to execute a bash command with my user environment, and I do not want to open a terminal windows on my Windows desktop. I tried: c:\cygwin64\bin\run.exe zsh -lic emacs And it opens a emacs ...
13
votes
3answers
15k views

Change Cygwin Prompt

The default cygwin prompt of "user@computer path \n $" is too long for me. I would like to keep the path. I want it to become: path $ Is there a config file I can modify to do this?
1
vote
1answer
2k views

Make msysgit work with cygwin ssh?

git-upload-pack errors occur when sshing into cygwin. sshd in cygwin does not take paths from .bash_profile as expected in a *nix environment. What is the way to remedy this and make msysgit work ...
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 ...
0
votes
0answers
21 views

Reset colors on Windows command line (cmd) when ssh'd into another box

This is pretty close to a duplicate of this question: Reset colors on Windows command line (cmd) The difference is that I'm ssh'd into a unix box with Cygwin... When I call reset I don't get my ...
0
votes
2answers
2k views

How to install a font onto cygwin terminal

I really like Dejavu font. And I want to make it available on cygwin terminal. But I don't know how to install this font. Can anyone help?
4
votes
1answer
570 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 ...
3
votes
1answer
34 views

Cygwin help: Installing autoconf, automake, and gettext

I would like to know how to install autoconf, automake, and gettext on my cygwin installation. Can anyone please help me?
1
vote
1answer
22 views

Completion of arguments for Cygwin commands not working due to `.exe` extension

When using tab completion in Bash on a Cygwin system to complete the name of a command, the .exe extension is appended to the command name, e.g, typing opens and pressing Tab completes the command to ...
0
votes
1answer
25 views

OpenSSH 'Server refused our key' and 'Access denied'

All configuration seems fine but OpenSSH replies with errors: 2048 bit keys was generated, public one put into C:\cygwin64\home\user\.ssh\authorized_keys. When trying to connect using PuTTY to ...
0
votes
3answers
3k views

Shell Script Error using Cygwin

I got this error after execute shell script as below. $ ./script_test.sh ./script_test.sh: line 3: syntax error near unexpected token `$'do\r'' '/script_test.sh: line 3: `for ((j=0; j<"$N"; j++)) ...
0
votes
2answers
391 views

cygwin opens three windows instead of one

If I open a cygwin terminal window it opens three instead of one window. The titles are C:\cygwin\bin\mintty.exe Cygwin Terminal <my host and current directory> Only the third ...
0
votes
1answer
37 views

Cygwin installation stops in make step

I'm installing Cygwin and GNU C compiler with the help of the tutorial How to Install the Latest GCC on Windows I have completed the following steps Install Cygwin Install Required Cygwin Packages ...
52
votes
8answers
39k views

How to update Cygwin from Cygwin's command line?

To search and download a package missed from Cygwin I need to run setup.exe GUI each time, click many times and do other boring things. Is there a way to do the same from Cygwin's command line ...
1
vote
2answers
89 views

Cygwin paste long line is inserting newline at wrap point

I'm having issues with Cygwin's Copy/Paste functionality on a fresh install. If I scrunch my cygwin window small, and then type a command that is wider than it is (such as echo ...
3
votes
0answers
240 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 ...
0
votes
0answers
13 views

How do I launch/use Cygwin as the shell for TortoiseHg?

In the settings for TortoiseHg, there is an option to select what shell you would like to use. The two defaults listed are, as you might expect, "windows_command_prompt" and "powershell" but I would ...
83
votes
5answers
129k 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 ...
0
votes
1answer
14 views

Trouble installing MySQL through Cygwin on Windows 10 “error while loading shared libraries”

I'm running babun(cygwin based) shell on Windows 10, and trying to install MySQL. I've ran: $pact install mysql mysqld Which executed successfully. Now, when running: $mysql_install_db I'm ...
1
vote
3answers
384 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
1answer
29 views

How to pipe binary stdout to a compressed tls connection?

Not so long ago, I could use : cat somefile.txt | openssl s_client -connect server:port -quiet -comp However, this command doesn’t work, even with-ign_eof: $ cat somefile.bmp | openssl s_client ...
0
votes
0answers
27 views

How to compile SIPP with pcap on cygwin64?

I am trying to compile SIPP on cygwin64 on windows 7 64 bit with enabling pcap according to the official sipp documentation here: http://sipp.sourceforge.net/doc/reference.html#Installing+SIPp ...
1
vote
1answer
189 views

windows cygwin basics?

(click for larger view) how do i update all the package ? can somebody explain me the difference between black red green ? oh and the yellow ? what does the purple up to date mean?
1
vote
0answers
21 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 ...
0
votes
1answer
29 views

How to mount Cygwin's /tmp on usertemp?

I've add this line to my /etc/fstab, taken from Cygwin's user guide, section 3.1.5: none /tmp usertemp binary,posix=0 0 0 However, I get an error trying to mount it: # mount /tmp mount: /tmp: ...
0
votes
0answers
22 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 ...
0
votes
0answers
15 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’, ...
1
vote
2answers
346 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 ...
0
votes
2answers
12k 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 ...
0
votes
2answers
46 views

Why does ls // hang in Cygwin

When I run the command ls // is Cygwin, the shell hangs for about 12 seconds, then gives the error ls: reading directory '//': Permission denied. I remember reading somewhere that /some//path is ...
31
votes
6answers
39k 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 ...
3
votes
1answer
3k views

How to change cygwin hostname

I'm just searching for a way to change the default Cygwin host name. I need to change the Admin@deluxe ~ part and replace it with something else.
22
votes
5answers
15k 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
6k 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 ...
0
votes
1answer
51 views

Run C program in mintty from the windows command line

I want to run a C program in mintty and divert the stderr output stream to a file, debug.txt. This may be accomplished using: ./zombie_jump 2>debug.txt However, I am having issues lauching this ...
1
vote
2answers
51 views

compare and find differences of 2 huge text files (50 gb)

I want to find the differences between two text files (more than 50 GB) each. I tried diff but, I got memory exhausted problem. I am using Windows7. My code is in PHP. I was calling diff from my ...
1
vote
1answer
65 views

Cant 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 ...