Questions tagged [cygwin]
cygwin provides a Unix/Linux-like environment under Microsoft Windows OSes.
1,733
questions
1
vote
2
answers
4k
views
how to view hidden files on an NTFS drive that were copied from a Mac?
I have some files on my external NTFS drive that were copied from a Mac using Paragon NTFS. Back in Windows 7, I'm unable to view said files. I believe they exist because they still occupy space on ...
4
votes
1
answer
7k
views
Can't install gcc with cygwin on Windows 10
After installing cygwin on Windows 10, I tried to install gcc by
cd C:\cygwin
C:\cygwin\setup-x86_64.exe -q -P wget -P gcc-g++ -P make -P diffutils -P libmpfr-devel -P libgmp-devel -P libmpc-devel
...
0
votes
1
answer
4k
views
Use lftp with key/passphrase combination
i have been wrecking my head around this for hours but so far have been unsuccessful:
one a mac, i can do the following:
connect to my server via ssh
enter private-key passphrase
passphrase is stored ...
1
vote
1
answer
241
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 ...
24
votes
9
answers
37k
views
How to kill a windows process in a cygwin terminal?
I have a problem regarding how to kill a process in Cygwin on Windows. I am
completely new to Cygwin. But I have a task that I simply cant kill. I have
tried issuing the following commands:
kill 4568
...
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 {} \;...
2
votes
2
answers
3k
views
Cygwin terminal / shell session in mobaxterm
I have (64-bit) Cygwin install on my Windows machine; and I'm also using mobaxterm 12.4.
How do I get my mobaxterm to...
Start a Cygwin shell session? Or better yet
Use Cygwin as the default when ...
40
votes
7
answers
49k
views
tmux/screen alternative for powershell
Is there an alternative to tmux/screen that would work on Windows with Powershell? I'm aware of Powerscreen, but it seems dead for a long time. Cygwin wouldn't work with Powershell, would it? Console2 ...
1
vote
2
answers
2k
views
Running .bat files from PATH in Cygwin
Running .bat files in Cygwin (bash or zsh) works when calling directly.
However, if I'm located at a different folder and I call the .bat file by relying on PATH variable, it will say command not ...
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 ...
1
vote
1
answer
6k
views
rsync on Windows
I'm new to rsync and need some help with syntax or common understanding.
I have 3 servers:
Source (SRC)
Destination (DST)
Server where rsync and ssh are installed.
I use rsync from Cygwin
Note:...
20
votes
4
answers
17k
views
how to install gpg on cygwin? currently it's missing
I have cygwin installed on Win 7 but can't see gpg in /usr/bin/.. is this normal? How can i get it? I am trying to verify a linux ISO and need this to check the signature file.
0
votes
1
answer
6k
views
How can I specify a resolution for fullscreen applications through cygwin/x?
Most easily explained with an example.
On my windows machine in cygwin I start the x server with:
matthew@cygwin $ startxwin
Then I ssh to my linux mint machine with X forwarding
matthew@cygwin $ ...
1
vote
2
answers
19k
views
How do I install gfortran (via cygwin and etexteditor) and enable ifort under Windows XP?
I'm a newbie in the Unix world so all this is a little confusing to me. I'm having trouble compiling some Fortran files under Cygwin on Windows XP.
Here's what I've done so far:
Installed the e text ...
1
vote
3
answers
6k
views
How can I find files that have changed between certain times?
I have windows 7 box with cygwin installed. I have multiple folders with files, within a single root folder. I want to find the list of files that have a time stamp within a specific date time range.
1
vote
2
answers
4k
views
How to set path for MinTTY under windows/cygwin correctly?
I made windows shortcut with the following target:
D:\APPS\cygwin64\bin\mintty.exe /bin/env PATH=/local/bin:/usr/local/bin:$PATH /bin/bash --login -i
I was expecting it prepend path with my given ...
4
votes
2
answers
3k
views
msys2 create a sym link into windows folder location
I have just started to use msys2. I wanted to make a sym link to a folder on my d:. I can access it like this:
cd /d/mytestfolder/
I tried:
When I do ln -s /d/mytestfolder/ testfolder - this seems ...
12
votes
2
answers
18k
views
How to compile the best version of FFmpeg for Cygwin/Windows
It's generally accepted that, by default, FFmpeg comes packaged with lower-quality encoders - particularly when it comes to the default AAC encoder and the default resampler.
According to these ...
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 ...
6
votes
1
answer
3k
views
Running fsck from cygwin shell?
I need to be able to check / fix file system errors on SD cards from a win7 box. I had hoped to use e2fsck from cygwin but am having some issues getting this to work. (SD cards are used to boot ...
2
votes
2
answers
3k
views
How do I determine a USB memory stick's serial number in Cygwin?
I already know that within windows, you can get a USB memory drive's Volume Serial Number by doing dir <drive_letter>:, where <drive_letter> is the drive letter of the USB drive. I also ...
3
votes
1
answer
4k
views
Copying folders with cygwin
The folder produced by
cp -r myfolder myfolder2
is marked shared as reported by "It is shared with other people. Are you sure that you want to delete it?" dialog in windows when I try to delete the ...
0
votes
1
answer
4k
views
nvcc can't be found error
im trying to setup a tool that requires nvcc but im unable to to do.
This is what i got so far:
Installed the CUDA toolkit
Verified it by using nvcc -V
output:
nvcc: NVIDIA (R) Cuda compiler driver
...
2
votes
1
answer
3k
views
startxwin.exe is failing in cygwin 1.13.2.0 on Windows 7 with keyboard initialization failure
My operating system is Windows 7. I installed cygwin. I wanted to start the XWin Server with the startxwin command and it terminates with the error:
Couldn't open compiled keymap file /var/lib/xkb/...
63
votes
6
answers
109k
views
How can I use SSH with a SOCKS 5 proxy?
I have a SOCKS5 proxy set up through PuTTY with port 7777 configured as a dynamic port. I can use firefox/filezilla/etc by configuring them to use a SOCKS proxy with localhost and port 7777. But I ...
0
votes
0
answers
20
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 -...
13
votes
4
answers
10k
views
How to persist bash history?
I don't know if this is expected, but my history is not saved across sessions. This is to say, if I close the window, then when I open it again, the history is empty. How can I persist it across ...
1
vote
1
answer
7k
views
On Windows 10 how do I display proxy settings from CLI
I need the proxy settings for a command line tool. I know it's set to auto-detect but I still need to know what they are exactly.
Note that if I do this in Chrome:
chrome://net-internals/#proxy
.....
0
votes
1
answer
4k
views
Find & du to calculate total size vs xargs
Can someone confirm that the following one liner will produce the total human readable size of all the directories which FIND locates as having log in the name?
find -type d -name *log* | du -hcs
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
109
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 ...
7
votes
1
answer
9k
views
rsync error: symlink has no referent
I am trying to configure rsnapshot (which uses rsync) to backup a Windows server but I am having trouble with rsync being unable to follow a symlink on the server to be backed up.
Setup:
Windows ...
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 ...
3
votes
3
answers
11k
views
Run cygwin command from windows command line
I am trying to make PhpStorm run vagrant rsync when files are changed, because built-in rsync-auto fails with my deep directory structure. I am able to setup watcher in PhpStorm settings, but I don't ...
4
votes
2
answers
8k
views
How to install package from a .tar.lz file
I'm using bash (Cygwin, specifically). I'm trying to install GNU dd_rescue, which comes in a .tar.lz archive file.
When I use:
tar -xzf ddrescue-1.22.tar.lz
...it returns with the following error:
...
14
votes
4
answers
21k
views
scp exec request failed on channel 0
I am trying to SCP files from one computer to another however I get
exec request failed on channel 0".
When I use SSH however, I can get to the machine with no problems. I am using the SCP ...
1
vote
1
answer
3k
views
cygwin: how to fix fork failures
I know there is a lot of information out there already about this, but I haven't been able to find a solution. Maybe someone who knows more about how cygwin works can help.
I had cygwin working for ...
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 ...
0
votes
2
answers
471
views
How to install ASITIC (Simulation of Spiral Inductors and Transformers) CAD tool?
I want to run ASITIC http://rfic.eecs.berkeley.edu/~niknejad/download.html
But it was developed upon an old architechture and g77 compliler as far i know and while i used this app on Ubuntu I had to ...
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
102
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
...
55
votes
2
answers
33k
views
What is the difference between Windows Subsystem for Linux (WSL), Cooperative Linux (coLinux), and Cygwin?
Did anybody still remember coLinux? I remember it is used for SpeedLinux and Portable Ubuntu some years ago.
It's pretty clear what is coLinux doing, running Linux on top of Windows somehow, but can ...
8
votes
2
answers
10k
views
Highlight the character the cursor is on in vim
How can I highlight the cursor in vim? I am interested in highlighting only the letter that the cursor is in.
Using:
set cursorcolumn
highlight CursorColumn guibg=lightblue ctermbg=lightgray
...
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
518
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 ...
2
votes
5
answers
13k
views
Color in Cygwin terminal
I've installed cygwin because I'm a bit fed up with the Windows terminal not being great. The only problem I'm having is the lack of colours.
You can see the problem in the following 2 screenshots ...