Questions tagged [cygwin]

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

What it doesn't provide is "a way to run native Linux apps on Windows. You must rebuild your application from source if you want it to run on Windows."

Cygwin home page
Cygwin on Wikipedia

249 questions
0
votes
1 answer

"cannot execute binary file" with cygwin

I have installed 64-bit cygwin in the folder C:\cygwin Running "C:\cygwin\bin\sh.exe" /bin/ls results in /bin/ls: /bin/ls: cannot execute binary file Why? Runnin sh and ls separately works. C:\test>"C:\cygwin\bin\sh.exe" sh-4.4$…
Anders Lindén
  • 115
  • 1
  • 8
0
votes
1 answer

how to have multiple nginx apps without using docker

I am using Windows Server 2008 as my server and I have installed cygwin on it. I have installed nginx on cygwin and it is working fine. I am running 2 projects on this server and each one has its own set of services (or in nowaday's terms…
0
votes
1 answer

can cygwin run things at startup

In normal Linux I can put things in rc.local to run at startup. Is there a way to do this in Cygwin? It seems that when I start the Cygwin terminal it doesn't automatically run anything. Specifically, I wanted it to start mysqld.
raphael75
  • 133
  • 2
  • 10
0
votes
1 answer

Files created on server appear read only

When I create a file on a windows server with cygwin the resulting file appears to be read-only. For example echo > hallo.txt results in a file with these rights: Path :…
theking2
  • 179
  • 1
  • 1
  • 9
0
votes
1 answer

Correct place to store key pairs for SSH authentication with VPS (Cygwin and Linux)

I am using Cygwin on windows 10 to try and ssh into my Linux server for the first time. I have a public and private key pair called whm_rsa and whm_rsa.pub in user/user/.ssh on my local computer. Using WHM I have imported the key pair with 'manage…
JPB
  • 145
  • 3
  • 10
0
votes
1 answer

Why this error when executing MongoDB on Cygwin?

I copied the MongoDB executables1 to my Cygwin's /usr/local/bin directory. However, when I try to execute, I get this opaque error message: $ mongod C:/cygwin/usr/local/bin/mongod.exe: error while loading shared libraries: ?: cannot open shared…
boardrider
  • 949
  • 2
  • 18
  • 29
0
votes
2 answers

rsync on Windows copies executables all over again

I am using rsync via cygwin to create incremental backups from a Windows 8.1 machine. It worked perfect for over a year. But a few weeks ago it started to re-copy existing files (and these files have a wrong modification date on the backup…
Aravor
  • 371
  • 3
  • 6
0
votes
1 answer

Make Cygwin installer `setup.exe` authenticate with username and password for proxy automatically

There is --proxy option for Cygwin installer setup.exe, but it only accepts address:port. How to provide username and password if the proxy requires authentication unattendedly? In manual scenario, Cygwin installer is able to prompt for username and…
uvsmtid
  • 897
  • 1
  • 6
  • 13
0
votes
1 answer

cygwin64 on Windows server, syslog data prints out all in one line

I am trying to automatically format syslog data from cygwin64 to print out with line breaks at the end of each line, so I can do some parsing later on. However, I don't see any configs that could yield a solution. How can I properly format the…
M. Barbieri
  • 113
  • 1
  • 1
  • 6
0
votes
1 answer

“Resource temporarily unavailable” error from exim running under cygwin

I have recently setup exim version 4.86.1 running as a Cygwin service in Windows Server 2008 R2. If I send a single email at a time, it works fine. However, if I try and send 10 emails, each immediately after the other using a script, maybe only…
mpeac
  • 101
  • 2
0
votes
1 answer

How to allow reverse ssh-tunnel connection to my host on demand?

I've set up a reverse ssh-tunnel (no autossh is used right now, but I might be using it)from remote laptop to my pc, but I don't trust much the remote host, as there might be different people using it and I would like somehow to control, when remote…
rightaway717
  • 101
  • 1
0
votes
1 answer

run a script that prompts for input just in command line

Testing a batch script, I execute it in bash. I want to see prompts and respond by inputting variables. For example, the following works, but I want to prompt for these inputs, not put literals in my script. So $1, $2 instead of…
0
votes
1 answer

rsync maintaining ownership and permissions between linux and windows ssh

I know this is is an extensively documented subject and despite the pages and pages of information ive found on it online I still cant find a definitive answer to this question so please bear with me. I have a linux server and im trying to back up…
Lunakyra
  • 11
  • 1
0
votes
0 answers

How do I run dnscmd via ssh?

I am looking for a working solution that would allow me to run dnscmd and other similar commands that do require you to logged in into a domain via SSH, so I can execute them freely from my machine (which is obviously not a Windows one). I already…
sorin
  • 8,016
  • 24
  • 79
  • 103
0
votes
0 answers

Can't SSH to Windows Server 2012 R2 Essentials

I have setup OpenSSH on a Windows Server 2012 R2 Essentials machine and have sshd running as a service. I have opened up incoming traffic in the firewall rules on port 22 for TCP. I generated keys via ssh-keygen on my client machine and copied the…