2022 Developer Survey is open! Take survey.

Questions tagged [cygwin]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
27 views

bash: patch.exe: Permission denied; how to turn off security regarding 'patch' in program name in windows 10?

I stumbled upon a problem patching a .diff file using patch. I use bash under windows 10 and the result of of this operation is as follows: $ patch < patch.diff bash: /cygdrive/c/cygwin/bin/patch: ...
user avatar
  • 166
0 votes
1 answer
27 views

Copying from notepad++ also copies the name of the file at a random location

This one's weird: (notepad++): ### Init mongo-express docker run -d \ --network mongo-network \ --name mongo-express \ -p 8081:8081 \ -e ME_CONFIG_OPTIONS_EDITORTHEME="ambiance&...
user avatar
  • 1,114
1 vote
0 answers
22 views

Installed Windows 10, file permissions causing all sorts of problems with cygwin

A little bit about my setup: Was previously running Windows 7 with 0Patch, finally installed Windows 10 (clean install). All of my data is stored within an encrypted VHD (TrueCrypt/VeraCrypt) on a ...
user avatar
0 votes
1 answer
31 views

how to get /etc/machine-id on Cygwin?

seems Cygwin doesn't make a /etc/machine-id by default, how should i get a /etc/machine-id on Cygwin? i guess doing php -r 'echo bin2hex(random_bytes(16));' > /etc/machine-id is close enough? but ...
user avatar
0 votes
2 answers
17 views

Convert Files to Most Frequent Line Ending (Windows with Cygwin)

I have a bunch of files, many of which have mixed line endings (CRLF or LF). I want to write a script that iterates over a list of files, and for each file, converts the file to the line endings that ...
user avatar
  • 348
0 votes
0 answers
28 views

How to get Cygwin bash to preserve Windows console default text colors

I had a working workflow where I would create a Windows console (using a Windows command script ("batch file")) that would (among other things such as setting environment variables) execute ...
user avatar
  • 101
0 votes
1 answer
67 views

Cygwin sshd intermittently getting 'ssh_exchange_identification: read: Connection reset by peer' or not finding binaries

When I ssh to the windows box, on occasion programs on the path are not found, or I get ssh_exchange_identification: read: Connection reset by peer, typically when more than 10 simultaneous ...
user avatar
  • 103
0 votes
0 answers
11 views

Default directory for zsh (cygwin) terminal is home, not working directory VSCode on Windows

I have setup custom profile for zsh via Cygwin in VSCode as below: "terminal.integrated.profiles.windows": { "zsh": { "path": "C:\\cygwin64\\bin\\bash....
user avatar
1 vote
0 answers
27 views

Error executing script conversion image to metadata block picture

My system is Windows and I installed Cygwin so I can run shell and bash files. I'm having problems running the second script posted here https://superuser.com/questions/169151 by @Biapy and would like ...
user avatar
  • 401
0 votes
0 answers
19 views

Platform/version-independent sorting for gnu sort

I am trying to do an offline comparison of two lists generated on two different systems. They both have GNU coreutils so to aid the diff'ing, I sort both lists using sort before transferring them. I'...
user avatar
  • 203
1 vote
0 answers
54 views

Why is my installation of latest Java OpenJDK failing?

I am trying to build the latest Java OpenJDK on Windows 11 from source using Cygwin, from the Git repo https://github.com/openjdk/loom Following the instructions in the README.md there, I see If you ...
user avatar
1 vote
0 answers
68 views

How to find the port used for SCP?

I'm trying to copy a file from my local (Windows 10, Cygwin) machine to a remote (Raspberry Pi) machine using scp, I get a time out error: $ scp main.bin root@123.12.21.123: ssh: connect to host 123....
user avatar
  • 2,488
1 vote
1 answer
109 views

Can the Windows %PROGRAMFILES(X86)% environment variable be accessed in 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 ...
user avatar
  • 159
0 votes
0 answers
34 views

update package from older version to latest version in cygwin

I am new to the Cygwin environment. Now I need to update the package version from the older version to the newer version. I have installed the Cygwin and also installed the package from the Cygwin. ...
user avatar
0 votes
2 answers
39 views

Cygwin how do I install **all** packages

I want to install all packages from cygwin here as well as is installed Lynx in the snippet below. How do I check them all at one or two clicks so that I do not need go one item by other ? What ...
user avatar
0 votes
0 answers
25 views

run mintty(cygwin) remotely from jenkins

I am trying to run "configure" and "make" commands on windows platform (cygwin), from jenkins pipeline, running using this below command : bat "${CYGWIN_EXECTION} /cygdrive/c/...
user avatar
0 votes
1 answer
23 views

Accessing notepad++ from cygwin bash

So when I am writing code, I use notepad++ and when I am done, I copy-paste it to plain old notepad because I use Cygwin and notepad is the only text editor that I know how to access from the shell. ...
user avatar
-3 votes
1 answer
87 views

CygWin doesn't recognize Package Manager (?)

I have installed WinZip and 7Zip, but still the problem occurs It says... Now attempting installation... Looking for a previous installation of SDKMAN... Looking for unzip... Not found. ==========...
user avatar
0 votes
0 answers
14 views

Prevent Cygwin from clearing terminal window

I start a new cmd.exe and run Cygwin like this: C:\cygwin\Cygwin.bat Then I type exit. Cygwin now clears the whole terminal window. Is there a way to prevent this? (I cannot use miniterm.exe because ...
user avatar
  • 489
0 votes
1 answer
23 views

Where are Cygwin installer settings stored?

I want to install cygwin on a target computer. I want to delete the Cygwin installer settings so my installer only uses default values. I deleted C:\cygwin and the package folder but the installer ...
user avatar
  • 489
0 votes
1 answer
29 views

CygWin: apt-file alternative?

I am installing yt-dlp from source. It requires pandoc, which I believe is available in a CygWin package. On Ubuntu I would run: apt-file search /pandoc to identify which package to install. What is ...
user avatar
  • 4,099
1 vote
3 answers
90 views

What does the "cyg" prefix mean?

I've seen so many cyg prefixed things like cygstart, cygpath, cygwin etc., but what exactly does this prefix mean?
user avatar
2 votes
0 answers
72 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 ...
user avatar
  • 489
2 votes
1 answer
27 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 ...
user avatar
  • 1,261
0 votes
1 answer
22 views

Specify installation directory in Cygwin installer

I want to automatically install Cygwin using a batch file. I got the command like this until now: setup-x86.exe --packages rsync -l "F:/v2.0/cygwin/packages" -L The setup options can be ...
user avatar
  • 489
0 votes
1 answer
44 views

Is there a way to search for Cygwin packages by command, and then download the package, and all its dependents?

I'm currently trying to use a program called Paml, in Cygwin but to initially configure it I need to use the "qmake" command in a Cygwin which as far as I can tell, seems to be part of the ...
user avatar
0 votes
0 answers
51 views

Cygwin ctrl-number not working (in cli emacs)

Cygwin ctrl-number is not working in cli emacs. I disabled the mintty options for keyboard shortcuts, so now ^- does work the same as ^u -1. Still, ctrl-number shortcuts do not work in emacs. ^4 ^x o ...
user avatar
  • 181
0 votes
1 answer
26 views

Cygwin: git 2.33.0: gitk not showing diffs from index

I have been using Cygwin git for a long time (since about 2012). Much better than msysgit, as bash and all utilities are identical to what runs on linux, which is where I deploy. I have lots of ...
user avatar
  • 179
0 votes
1 answer
151 views

Sendemail command not found in cygwin

So I am trying to use sendmail in cygwin because on the server I cannot use other options like mutt because they aren't supported. I have downloaded the sendmail package during the cygwin setup, but ...
user avatar
2 votes
1 answer
689 views

Cygwin: OpenSSH_8.8p1 appears broken, downgrade to OpenSSH_8.7p1 fixes it

I have been using Cygwin on Windows 10 for many years, and using ssh to access an AWS EC2 Amazon Linux instance for development. Recently, I bought a new Windows 10 PC, installed Cygwin in the usual ...
user avatar
  • 179
0 votes
2 answers
30 views

Where are Cygwin Packages Installed?

I've recently installed cygwin64 on my Windows 10 machine in an attempt to build a project using cmake (Through CLion). The project has lz4 as a dependency and when running the cygwin setup, there's a ...
user avatar
0 votes
1 answer
175 views

Can I use Cygwin with Windows-native-only terminal apps?

I use a Cygwin on Windows relatively often. However - the Cygwin terminal app, mintty.exe, is... well, underwhelming. It has repaint issues, resizes don't always get communicated like I would expect ...
user avatar
  • 7,312
0 votes
0 answers
53 views

Foreign language characters typed in or pasted into Cygwin terminal are garbled

I'm trying to understand what is happening when I type certain foreign-language characters in Cygwin's mintty or xterm terminal, or when I copy and paste characters into a Cygwin terminal from a ...
user avatar
0 votes
2 answers
51 views

Can I let `rm` prompt again if I type the wrong key?

Question Is there any way to let rm -i just ask again if I type in anything different than j/J/n/N at its prompt? Reason Consider this small example: echo "Hey, I am a file. Or at least I am IN ...
user avatar
  • 1,261
0 votes
0 answers
77 views

Cygwin install NS2 issue

I'm trying to install ns2 (ns-allinone-2.35) with the help of cygwin 2.909-32bit in windows 10. i run ./install but i get the error : tcp/tcp-fack.cc:302:22: warning: ISO C++17 does not allow ‘...
user avatar
  • 101
0 votes
1 answer
48 views

change windows partition device number as reported by cygwin stat

I have two partitions with the same device number: $ stat -c "%D" /cygdrive/c ec6d967e $ stat -c "%D" /cygdrive/g ec6d967e I believe this is because G: was restored from an image ...
user avatar
  • 11
0 votes
0 answers
50 views

Cygwin bash prompt is removing unexpected characters with multiline command [duplicate]

I repaired line wrapping in my cygwin using of the solution in Cygwin bash prompt is wrapping lines on the same line. However, I encountered another problem. When a long command is posted, it's split ...
user avatar
3 votes
1 answer
264 views

Cygwin / Windows 10 cli: is there a command that can focus a application/window?

I'm looking for a command that can bring a window into focus. The command has to work in a cygwin terminal, but I imagine this command will be built into Windows, so it's worth saying I'm using ...
user avatar
0 votes
1 answer
39 views

Cygwin terminal cannot find the installed package

I have install Cygwin in C:\cygwin64 and installed e2fsprogs package; but Cygwin terminal still cannot find e2fsck: C:\cygwin64\var\log\setup.log: 2021/07/16 16:40:46 Starting cygwin install, version ...
user avatar
  • 351
1 vote
1 answer
87 views

Cygwin / mintty window size and GNU bash readline do not get along?

I have a problem with the Cygwin / mintty window size and the standard GNU bash readline shell. When I have 80 columns or less it works normally. But when I make the window wider then the bash (...
user avatar
0 votes
0 answers
30 views

cygwin / mintty backspace and delete key mapping woes

I heavily rely on Cygwin (that uses mintty) and Open SSH to work on remote systems on command lines and then using emacs in text mode as editor. I particularly love using the screen(1) program so all ...
user avatar
0 votes
0 answers
75 views

cygwin / mintty color scheme woes

I heavily rely on Cygwin (that uses mintty) and SSH to work on remote systems on command lines and then using emacs in text mode as editor. I find the default color schemes of the cygwin shell ...
user avatar
0 votes
1 answer
24 views

Struggling with installing Audacious part 2

So I did install pkg-config just fine, I even saw signs that I installed it correctly. However, when I tried to compile Audacious again with cygwin, I get this message: Package 'glib-2.0', required by ...
user avatar
1 vote
1 answer
112 views

GNU Parallel is behaving differently on SIGTERM in two cygwin installations

Consider this small bash function: saySomethingToSomebody() { sleep 1 echo "$1 $2." sleep 2 } When I call saySomethingToSomebody Hello Adam, it says Hello Adam. and waits a bit ...
user avatar
  • 1,261
0 votes
0 answers
150 views

Cygwin silent install with local packages (No Internet)

I need to silent install Cygwin and make package. There are a lot of computer we have. But Internet connection is limited. So i have make package and how can i install with local package? I tried ...
user avatar
0 votes
0 answers
34 views

Struggling with installing Audacious, which requires pkg-config

Title should be self-explanatory. I thought the pkg_config installation didn't give me errors at all, so I assumed it installed fine, but I got this error when installing Audacious. How do I deal with ...
user avatar
1 vote
1 answer
79 views

In cygwin usr/bin folder is missing

I have installed Cygwin and once I started to build a C++ file in Visual Studio Code with Cygwin GCC, I noticed that it uses some usr/bin folder. Then I went to check what is in Cygwin usr/bin folder. ...
user avatar
0 votes
0 answers
77 views

How to setup Cygwin in Sublime Text in terminus?

I saw a post about how to set up Cygwin in Sublime Text in this link, but it's still not working in my case. [ { "keys": ["alt+o"], "command": "...
user avatar
0 votes
0 answers
24 views

Is there any way to reattach to a screen session that's in a loop?

I'm using Cygwin to run screen on Windows if it matters. Say I have a simple loop running. Like "Enter a number, if it's not zero, loop back and enter another number." and I want to run that ...
user avatar
-1 votes
1 answer
329 views

How to install latest GCC/Mingw in Windows 7 32 bit Operating System?

I know that I can download MinGW from Cygwin, MSYS, but I saw that they don't have the latest GCC compiler. And that's why I searched in Google that how to get latest GCC in windows, and I found ...
user avatar

1
2 3 4 5
35