Questions tagged [cygwin]
cygwin provides a Unix/Linux-like environment under Microsoft Windows OSes.
1,754
questions
0
votes
1
answer
19
views
How can I run Cygwin Terminal under a current Cygwin installation under Windows 10?
In the past I have used Cygwin Terminal, i.e. a window similar in external appearance and external behavior to the DOS/Windows command line window that runs natively under Windows.
Right now, in my ...
0
votes
1
answer
145
views
How to add new packages to CygwinPortable on a machine without Admin access
I am on a Win10 machine without admin access. I am running CygwinPortable, and would like to install the CMake package for it. The Cygwin setup utility is missing for the portable installation.
So ...
1
vote
1
answer
41
views
How to create a built-in delay in opening files with apps in Windows 10?
I am running Windows 10, with Cygwin. I also have 4NT installed and can use commands from that if it helps.
I usually open files for editing via the command line.
I would like, for one particular ...
0
votes
0
answers
34
views
Chromedriver not found in Cygwin although it exists
After a couple hours of trying everything I could, I'm posting the question here.
I'm trying to run this python script which uses chromium in order to execute.
https://github.com/FallingLights/...
0
votes
0
answers
20
views
Cygwin "less" pager: "s" command not saving text to file
According to this Q&A, less's s command should save the paged text to file. When I press s, I am asked for a log file. I provide a fill path ~/tmp/less_blah.txt, and the prompt then goes away. ...
0
votes
1
answer
101
views
How do you kill a Windows Service with Cygwin?
I've found many questions/answers that document how to kill a Windows process in Cygwin, but I'm asking how to kill a Windows 10 service in Cygwin.
If the verb "kill" seems out of place for ...
1
vote
1
answer
49
views
How to interact with FIDO authenticaor (*user presence check*) from Windows Service?
I have a setup with several on-demand SSH tunnels that I like to manage via Windows Services. I normally use Cygwin with its own OpenSSH (OpenSSH_9.5p1, OpenSSL 3.0.12 24 Oct 2023), but have also ...
0
votes
0
answers
26
views
restoring symlinks for transferred cygwin system
I backed up a portable cygwin installation the old way: in a simple tarball with tar -cvf cygwin; then I tried to restore it on a portable hard drive the old way: with a simple tar -xvf cygwin. The ...
0
votes
1
answer
59
views
Cygwin64 | mount: Invalid argument
I am trying to do simple operation using my USB flash card and Cygwin64:
mkdir /tmp/sdb
mount /dev/sdb1 /tmp/sdb
And get following error:
mount: /tmp/sdb: Invalid argument
How to resolve this ...
0
votes
0
answers
90
views
cygwin terminal adds carriage return to bash prompt [duplicate]
Running Windows 10. Just installed Cygwin, running it in Windows Terminal, tried to change the prompt format by editing PS1 variable and exporting in .bashrc and .bash_profile:
alias vim='nvim'
alias ...
1
vote
1
answer
145
views
Cygwin weird behavior on security permissions
I'm using Cygwin to run periodic backups, for example I do:
cp -a "$(cygpath C:\Users\S\Documents)" "$BU_FOLDER"
But I've noticed the commands that create folders or files such as ...
0
votes
0
answers
58
views
cygwin64's pgrep not working
I installed Cygwin64 and tried its pgrep.exe tool (with admin privilege) as follows:
PS D:\cygwin64\bin> D:\cygwin64\bin\pgrep.exe svchost.exe
PS D:\cygwin64\bin> D:\cygwin64\bin\pgrep.exe ...
0
votes
0
answers
167
views
Which ECDSA Public Key in a Windows 10 OpenSSH Server Will Be Used?
Linux OpenSSH client (Debian Stretch, OpenSSH version 7.4p1)
Windows 10 OpenSSH server (OpenSSH version 9.4p1)
Said Windows 10 OpenSSH server has two different ECDSA public key files loaded on its ...
0
votes
0
answers
1k
views
SSL connect error (schannel: next InitializeSecurityContext failed: SEC_E_ILLEGAL_MESSAGE
I try to install spotdl using cygwin
git clone https://github.com/spotDL/spotify-downloader && cd spotify-downloader
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
pip install ...
0
votes
0
answers
44
views
Can I install xlwings via Cygwn rather than Windows-Native Python distribution?
xlwings is an SQL support add-on for MS Excel which also requires a Python backend with a pip-installed xlwings package. See installation instructions here. Now, on a Windows machine I'm working on, ...
1
vote
1
answer
63
views
Cygwin Bash doesn't inherit all CMD's environment variables
If I enter echo %AppData% in a CMD window, I get C:\Users\User.Name\AppData\Roaming. If I enter echo $AppData in a Cygwin Bash shell, I get nothing. However, most environment variables in CMD do get ...
0
votes
0
answers
9
views
How do I check what versions of cygwin packages are available using apt-cyg and how do I install them? [duplicate]
I recently wanted to upgrade from perl 5.32 to perl 5.36 via my cygwin terminal using apt-cyg with no success. In particular I tried:
apt-cyg install perl=5.36.1-1
The error message was:
Package ...
0
votes
0
answers
82
views
Cygwin mintty fails to start, requires Cygwin install finalization to run properly
I have a recurring problem using Cygwin (on a Windows 10 machine with a bunch of corporate spyware/malware which I had to live with).
Whenever I install or update Cygwin - everything seems to work ...
-1
votes
1
answer
709
views
Copying data locally in Windows: rsync seems like a better solution, but how to run it?
I find myself needing to copy lots of data in Windows from an external hard drive to my local drive, but after instructing the File Explorer to do it via DragNDrop, it seems it's going to take a ...
0
votes
0
answers
91
views
Cygwin update using new setup executable: The following packages(s) had download errors
After 3+ years, I tried to update my Cygwin packages. There was a new setup executable, which I normally run as non-administrator. I did this today and got the message "The following packages(s)...
1
vote
0
answers
272
views
Git on Cygwin using SSH: Permission denied (publickey) when cloning, but ssh -T [email protected] works
I am having trouble getting cygwin configured to use git with ssh keys on my windows 10 machine.
I installed cygwin's most recent version from their site (setup version 2.925) and added/ensured the ...
1
vote
2
answers
2k
views
How to count pages in multiple PDF files in Windows 10?
Looking for newer easier solution than found here: How to count pages in multiple PDF files?
or at least explanation on how to download and install cygwin
-2
votes
2
answers
326
views
$PATH corruption on Cygwin on Windows 10
I am running cygwin on a Windows 10 computer. If I execute $PATH from the cygwin command window, I get the following error:
$ $PATH
-bash: /usr/local/bin:/usr/bin:/cygdrive/c/Program: No such file or ...
0
votes
0
answers
70
views
Why Cygwin installtion folder is taking 5 gb in my system? How can I reduce it?
I have Cygwin installed within Windows 10, on a non-OS partition, and might have installed unwanted packages during setup periodically for updates.
I only need it for C/C++ Compiler library, so I just ...
2
votes
0
answers
208
views
tmux inside Cygwin mintty - unicode characters broken depending on command
Please help me understand what's going on with some unicode characters looking right inside mintty + tmux in some command outputs, but not in others.
Sample commands:
for c in 00AE 1F007 1F32D 1F603; ...
0
votes
0
answers
32
views
Single ssh agent on windows box
I use:
Putty
MobaXterm
Windows native ssh
ssh from cygwin
Do you have any idea how to make all product to use a single agent?
0
votes
0
answers
473
views
Script fails in WSL/Ubuntu when run via a symbolic link
I have a script that behaves differently when run by name compared to when it is run via a symbolic link. The problem is specific to WSL/Ubuntu. The same script, when used under Linux or Windows/...
2
votes
1
answer
136
views
How to access DNG file creation date from Windows Explorer
I would like to access the creation date of a DNG file, SomeImage.DNG. In Windows Explorer, under View > Details, the "Date" column lists the correct creation date, which I happen to know....
1
vote
1
answer
69
views
Cygwin Perl autodie 'not located'
I have Cygwin installed (with its native Perl support). However, on running a make file supplied by a third-party, I get the following error:
Can't locate autodie.pm in @INC (you may need to install ...
1
vote
1
answer
275
views
Start cygwin bash.exe without inheriting windows home
I want to be able to run in the cygwin environment from CMD but when I run C:\cygwin64\bin\bash.exe -l -i my home gets set to the windows home. As I understand bash.exe inherits the environment from ...
1
vote
2
answers
341
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
170
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
90
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
1
answer
421
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
212
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
1
answer
1k
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 ...
2
votes
1
answer
724
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
44
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
1k
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
67
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
333
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
...
3
votes
2
answers
1k
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
246
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
280
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
467
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 ...
1
vote
0
answers
707
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
104
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
136
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 ...
1
vote
1
answer
306
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
399
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 ...