Questions tagged [cygwin]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
312 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 ...
Mike G.'s user avatar
  • 103
1 vote
0 answers
52 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 ...
Clamarc's user avatar
  • 623
0 votes
0 answers
59 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'...
dovetalk's user avatar
  • 233
1 vote
0 answers
442 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 ...
Vinny Gray's user avatar
1 vote
0 answers
4k 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 [email protected]: ssh: connect to host 123....
ysap's user avatar
  • 2,670
6 votes
1 answer
2k 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 ...
AJM's user avatar
  • 356
0 votes
2 answers
855 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 ...
user865044's user avatar
0 votes
1 answer
169 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. ...
Ahmad Alkhaled's user avatar
-3 votes
1 answer
323 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. ==========...
Rachmat Fadlin's user avatar
0 votes
1 answer
123 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 ...
zomega's user avatar
  • 1,250
0 votes
1 answer
232 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 ...
zomega's user avatar
  • 1,250
0 votes
1 answer
104 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 ...
Ole Tange's user avatar
  • 4,779
1 vote
3 answers
288 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?
Wenfang Du's user avatar
2 votes
0 answers
139 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 ...
zomega's user avatar
  • 1,250
3 votes
1 answer
180 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 ...
Bowi's user avatar
  • 1,477
0 votes
1 answer
342 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 ...
zomega's user avatar
  • 1,250
1 vote
1 answer
442 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 ...
Zerraphin's user avatar
0 votes
0 answers
121 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 ...
memtha's user avatar
  • 181
0 votes
1 answer
102 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 ...
sootsnoot's user avatar
  • 199
1 vote
1 answer
563 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 ...
jakebake's user avatar
2 votes
1 answer
3k 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 ...
sootsnoot's user avatar
  • 199
0 votes
2 answers
210 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 ...
waveform_tinker's user avatar
0 votes
1 answer
1k 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 ...
einpoklum's user avatar
  • 9,393
0 votes
2 answers
81 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 ...
Bowi's user avatar
  • 1,477
0 votes
0 answers
354 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 ‘...
alex's user avatar
  • 101
0 votes
1 answer
145 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 ...
cjfp's user avatar
  • 21
0 votes
0 answers
193 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 ...
ashrasmun's user avatar
  • 101
3 votes
1 answer
1k 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 ...
Daniel Kaplan's user avatar
0 votes
1 answer
254 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 ...
wiki's user avatar
  • 381
2 votes
1 answer
377 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 (...
Gunther Schadow's user avatar
0 votes
0 answers
248 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 ...
Gunther Schadow's user avatar
0 votes
1 answer
44 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 ...
brickblock369's user avatar
1 vote
1 answer
429 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 ...
Bowi's user avatar
  • 1,477
0 votes
0 answers
94 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 ...
brickblock369's user avatar
1 vote
1 answer
494 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. ...
RajinCoding2007's user avatar
0 votes
0 answers
273 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": "...
RajinCoding2007's user avatar
-1 votes
1 answer
1k 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 ...
RajinCoding2007's user avatar
1 vote
1 answer
384 views

Cygwin inside Windows container, coreutils do not work in volumes

I set up Cygwin inside a Windows Docker container and some common operations just fail when executed in Docker volumes. Examples: $ mkdir foo bar $ mv foo bar mv: cannot move 'bar' to a subdirectory ...
cubanpit's user avatar
0 votes
2 answers
1k views

How to force cygwin to run windows python executeable and not the one in its own bin directory

When I execute keyword python in cygwin, it runs the python that exists inside its own internal directory. I cannot remove this python since it is required for some other packages that were downloaded ...
quantum231's user avatar
0 votes
2 answers
2k views

Using variables with bc: syntax error

The original problem This may be more of a bc or bash question than an FFmpeg one, although I would also appreciate being able to prevent ffprobe from printing carriage returns after its output. In a ...
Hashim Aziz's user avatar
  • 12.7k
1 vote
2 answers
265 views

Is there a program to remove trailing spaces and convert tabs to spaces in a lot of files at once using command-line? [closed]

I am using cygwin and have a lot of files in which I want to convert tabs to spaces and remove all space characters that exist at end of line. Is there a utility for this in Linux?
quantum231's user avatar
1 vote
1 answer
656 views

Cygwin SSHD causes 100% CPU load

I run cygwin 32-bit on Windows 10 Pro b19042 [Cygwin is 3.2.0-1], with OpenSSH [8.5p1-1], using sshd to access the machine from afar, and notice (often multiple) processes of sshd.exe with 100% CPU ...
cxxl's user avatar
  • 313
0 votes
1 answer
520 views

Changing default startup directory in CygWin and using alias

Following this post : How do I change the default startup directory in Cygwin? I was able to change the default directory by editing the .bashrc file. I was curious about the alias : I created the ...
m3.b's user avatar
  • 103
0 votes
0 answers
253 views

Mount ext3 filesystem in Cygwin

I've succesfully partitioned and created an ext3 file system on my SD Card using Cygwin. Now I need to mount that partition in Cygwin to add some files to it. Is this somehow possible with Cygwin, or ...
Manuel's user avatar
  • 111
0 votes
0 answers
385 views

Installilng GiNaC and CLN on windows

I planned to move to Arch Linux but for the time being I'm unfortunately stuck with Windows. I want to install GiNaC. In its installation page it says to install CLN first so that is also something I ...
cushionball's user avatar
0 votes
0 answers
46 views

Updating Cygwin and zsh causes permission problems

I updated my Cygwin installation for the first time after more than one year (running the cygwin setup program), and when I started my interactive zsh login shell, I quickly ran into various problems. ...
user1934428's user avatar
0 votes
0 answers
1k views

Cygwin cannot find termios.h

I use Code blocks 20.03 at windows 10 64 bit, using cygwin32 bit and i am trying to include #include <termios.h> bit it gives me fatal error: sys/termios.h: No such file or directory I thought ...
Christianidis Vasilis's user avatar
0 votes
0 answers
846 views

Can't run Cygwin GUI applications from Cygwin Terminal

I can't start Cygwin GUI applications from Cygwin Terminal, if I click "XWin Server" in the start menu after a while the server is up and there is this "X applications menu on :0" ...
Ξένη Γήινος's user avatar
0 votes
0 answers
465 views

Why can't I access a Linux machine remotely from my windows 10 machine?

I want to connect from windows 10 to an external Linux server remotely. I tried Putty and Cygwin's Mintty. Neither of them works. I then went to Windows Defender Firewall and unblocked those two ...
user avatar
0 votes
0 answers
117 views

How to check number of parked cores in command line (win, lin) via ssh

I'm wondering how to check number of parked cores via CMD on Windows remotely, via ssh. I'm also using cygwin there, so bash scrips would also help. I tried to look for answers but it usualy directs ...
CerebralFalsificator's user avatar

1
2
3 4 5
36