Questions tagged [cygwin]
cygwin provides a Unix/Linux-like environment under Microsoft Windows OSes.
1,733
questions
0
votes
2
answers
40
views
Cygwin find returns "missing argument to `-exec'"
I have backups script that removes backups older than x days.
On Linux machine this is working well:
find /backups/dummy-prod-db -name "*_D_dummy-prod-db*" -type f -mtime +7 -exec rm -v {} \;...
1
vote
1
answer
18
views
How to properly run GUI VNC clients on Cygwin
I want to use vinagre or remmina VNC clients but they fail to run:
$ vinagre
C:/cygwin64/bin/vinagre.exe: error while loading shared libraries: cygvte-2.91-0.dll: cannot open shared object file: No ...
0
votes
0
answers
19
views
How to remove the "+" and "-" after a diff comparison
I compare 2 files using Cygwin (MobaXterm) diff.
Output files have -- a and ++ b lines at the first line. I want to delete only these lines. How could I do it?
Here's my script:
#! /bin/bash
sort -...
0
votes
0
answers
26
views
Keboard grabbing VNC Viewer for Windows
I've used the cygwin X server XWin and gvncviewer to display a Linux desktop on a Windows machine, but the keyboard grabbing function offered by gvncviewer does not work in this configuration:
I'm ...
0
votes
1
answer
108
views
Move and rename files based on their parent folders
I'm trying to write a Bash function that will find files in a given directory tree and move them to the current folder while renaming them based on their parent folder, but I'm still stuck on the ...
0
votes
0
answers
54
views
cygwin /usr/bin/install cannot change permissions
When I run /usr/bin/install, I get permissions errors:
bifrost ~ 857# groups
None Local account and member of Administrators group tsysadm Administrators Users NETWORK Authenticated Users This ...
0
votes
0
answers
29
views
Start metacity on Cygwin (Windows 11) in multiple window mode
How can I start cygwin X (I'm using metacity/gnome) in multiple windows mode, where each xterm or terminal or application starts in its own windows, rather than having a single application window and ...
0
votes
1
answer
193
views
How to fix Cygwin installation, when unable to update setup?
I have Cygwin installed on my Windows 10 system. Every now and then I run Cygwin Setup to add packages as needed (mostly scripting interpreters). For some time now I face a problem when trying to ...
0
votes
0
answers
48
views
Is there an effective way to obtain CPU values from cygwin?
How would you get the CPU usage of a windows machine from cygwin without causing the CPU to spike when running the command?
Some options I have tried:
parsing the entire output of top -n1 -b and ...
2
votes
1
answer
186
views
Use putty on windows to connect to Cygwin on Windows10
Just got a shiny new laptop running Windows 10. Installed Putty and installed Cygwin and now I want to setup Putty to open "Local" windows with a cygwin bash like I have with my last three ...
3
votes
2
answers
37
views
Ignoring timestamps, how to remove non-chat duplicates?
Ignoring timestamps, how may one remove non-chat duplicates in the following? The chats have 2 formats
beginning by a nickname surrounded by angle brackets and
starting with a nickname followed by &...
0
votes
1
answer
100
views
Cygwin rsync cannot run outside of Cygwin terminal
I installed rsync 3.2.4 with cygwin in windows11 with the path C:\Cygwin\bin\rsync.exe. When I directly run rsync in windows terminal, I got the error code 12.
But this command runs normally when ...
-3
votes
1
answer
47
views
Is there something that would allow a Windows application source code to be recompiled to Linux? [closed]
Think WINE but recompilation. Think Cygwin but the other way around.
If not, what are the challenges getting in the way?
Edit: I'm looking for something that works like WINE but can get me better ...
0
votes
2
answers
103
views
In Windows cmd, does grep use GetCommandLine(), and findstr use argv?
In Windows cmd, does grep use GetCommandLine(), and findstr use argv?
This is the grep i'm using
C:\>where grep
c:\cygwin\bin\grep.exe
C:\>c:\cygwin\bin\grep.exe --version
grep (GNU grep) 3.7
...
0
votes
0
answers
17
views
How to compile libassuan as shared library
I need to compile gpgme for windows (in CygWin). To compile it, I need shared version of libassuan library. But whathever I do it always compiles as static library. I even edited configure script, ...
1
vote
1
answer
516
views
Windows: How to make cygwin bash.exe to take precedence over wsl in command line?
I have installed cygwin on Windows 11. Now, when I open the Windows command line, I want the bash.exe command to run the cygwin's bash command instead of bash linked with wsl (Windows subsystem for ...
0
votes
1
answer
74
views
can't run commands in bash invoked from emacs shell on windows
I invoked "shell" which correctly runs cmd.exe and runs correctly.
However, when I run bash from within that shell, every command gives an error
Microsoft Windows [Version 10.0.22000.739] (c)...
0
votes
1
answer
128
views
With cygwin, how do you restart an ssh reverse tunnel without a forwarding issue "Warning: remote port forwarding failed" message occurring?
With cygwin, how do you restart an ssh reverse tunnel without a forwarding problem "Warning: remote port forwarding failed" message occurring?
I have this command ssh -R 50500:127.0.0.1:5900 ...
1
vote
1
answer
114
views
How do I get Bitvise WinSSHD to provide me with a CMD console when I log in? SSHing to a Windows machine.(from a windows machine too)
How do I get Bitvise WinSSHD to provide me with a CMD console when I log in?
I set up Bitvise SSH server locally, and logged in locally with cygwin and with Bitvise SSH client. A bit odd that I can't ...
0
votes
0
answers
112
views
rysnc not working with sshpass but works without it
I am trying to create a sync with strato hidrive and I cannot use keys at the moment, just so that it's not suggested in the responses. When I execute the script with sshpass in my local VM with ...
1
vote
0
answers
266
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: ...
0
votes
1
answer
52
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&...
1
vote
0
answers
60
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 ...
0
votes
1
answer
134
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 ...
0
votes
2
answers
160
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 ...
0
votes
0
answers
91
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 ...
0
votes
1
answer
167
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 ...
0
votes
0
answers
33
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....
1
vote
0
answers
38
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 ...
0
votes
0
answers
32
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'...
1
vote
0
answers
188
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 ...
1
vote
0
answers
872
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....
2
votes
1
answer
816
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 ...
0
votes
0
answers
182
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.
...
0
votes
2
answers
125
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 ...
0
votes
1
answer
82
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. ...
-3
votes
1
answer
203
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.
==========...
0
votes
1
answer
37
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 ...
0
votes
1
answer
86
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 ...
0
votes
1
answer
42
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 ...
1
vote
3
answers
135
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?
2
votes
0
answers
83
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 ...
2
votes
1
answer
100
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 ...
0
votes
1
answer
121
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 ...
0
votes
1
answer
141
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 ...
0
votes
0
answers
82
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 ...
0
votes
1
answer
75
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 ...
0
votes
1
answer
267
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 ...
2
votes
1
answer
2k
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 ...
0
votes
2
answers
39
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 ...