Skip to main content

Questions tagged [cygwin]

Linux-like environment for Windows making it possible to port software running on POSIX systems (such as Gnu/Linux, BSD, and UNIX systems) to Windows.

Filter by
Sorted by
Tagged with
3 votes
1 answer
37 views

Is it normal for "complete -p git" to error until I autocomplete git first?

If I restart my terminal, I get an error when I type this: $ complete -p git bash: complete: git: no completion specification But if I type git tab then run the complete command again, I get a ...
Daniel Kaplan's user avatar
0 votes
0 answers
22 views

Garbled screen when using Cygwin64 XWin

I am using Cygwin64 the latest version, the shell part works fine, but when I try to start a local X11 session, the screen is garbled, this is the case when using xwin and xwin -rootless when I use ...
user1359448's user avatar
0 votes
0 answers
10 views

Debian/Gnome in xdmcp - Hot Corner does not work

X Server: Cygwin/X fullscreen on Windows 11 X Client: Gnome desktop on Debian 12.5 I realize this could be an issue with Cygwin/X, but I'd like to confirm that this is not a problem with xdmcp ...
Ex Umbris's user avatar
  • 274
-2 votes
1 answer
101 views

How to trim directory from which output without basename?

For a shell script I need to call an executable by name, regardless of the path leading there; thus far I know this code reports the right name: tmpprog=`which program` prog=${tmpprog%%*/} if $prog=&...
jarnosz's user avatar
  • 200
0 votes
1 answer
44 views

How do I read Cygwin's `/bin/kill` man page without bash's `kill` builtin interfering?

I'm using Cygwin on Windows 10 but I also use Ubuntu with WSL2. I can't reproduce this with the latter. When I type man kill in cygwin, it says No manual entry for kill. When I type man /bin/kill, it ...
Daniel Kaplan's user avatar
0 votes
1 answer
54 views

pdfgrep multiple files with different passwords

I am trying to grep strings in password protected PDFs (credit card statements). There are multiple files with different passwords. The manpage(?) says --password=Value can be specified multiple ...
tpb261's user avatar
  • 135
5 votes
4 answers
774 views

How do I make WSL2's cd command accept windows paths?

I'm a WSL convert, coming from cygwin. One of the neat things cygwin does is accept unix and Windows file paths in the cd command. Of course, most Windows paths contain \, which is a special character ...
Daniel Kaplan's user avatar
0 votes
0 answers
24 views

Cygwin is trying to open wait.sh repeatedly

My Cygwin is trying to open wait.sh every time I'm using my notebook and ask me which program to see wait.sh. It's awful. wait.sh is located in C:/cygwin64/bin/ I have Windows 11 and all programs are ...
user23061829's user avatar
1 vote
1 answer
76 views

Trying to create same folder structure and symlink files using Cygwin Terminal

Followed this post - How to copy a folder structure and make symbolic links to files? cp -al /src/dir /dest/dir # hard-links to leaf-files cp -as /src/dir /dest/dir # symlinks to leaf-files ...
trentmsteel's user avatar
4 votes
0 answers
132 views

Cygwin inheritance of Windows's security for cross-account file creation/modificaton?

On a Windows 10 laptop, I have an administrator account Admin, a non-administrator account User.Name, and the default Public account. From either Admin or User.Name accounts, files created in the ~/ ...
user2153235's user avatar
2 votes
2 answers
240 views

Double click in Cygwin not selecting dot at beginning of paths

I'm having an issue on one of my Cygwin installs where double clicking does not select the dot at the beginning of paths. Normally I get this behaviour when double clicking a path: But on the install ...
SSilk's user avatar
  • 153
1 vote
0 answers
589 views

how to fix /usr/bin/install: missing destination file operand after '$HOME/toolchain/glibc-build/cstdlibT'

I'm using cygwin building glibc-2.25. I've followed up to http://clfs.org/view/sysvinit/x86_64/cross-tools/glibc-64.html. I've compiled File-5.31 Linux-4.9.21 Headers M4-1.4.18 Ncurses-6.0 Pkg-config-...
7dog123's user avatar
  • 11
1 vote
1 answer
285 views

Cygwin: Open a file in default windows text viewer even if extension is otherwise associated

I would like to open a file from Cygwin into Windows' configured text viewer, even if that file type is not associated with the text viewer already (i.e. Windows doesn't consider it a text file). For ...
SSilk's user avatar
  • 153
0 votes
2 answers
116 views

Using "cygcheck" to "find the package to which FILE belongs"

According to my Cygwin setup program "setup-x86_64.exe", I have package texlive-collection-latexextra version 20220321-1. The Cygwin package search page says that this package should ...
user2153235's user avatar
0 votes
1 answer
99 views

Which package contains cygisccfg-163.dll

I get: C:/cygwin64/bin/host.exe: error while loading shared libraries: cygisccfg-163.dll: cannot open shared object file: No such file or directory I tried removing bind-utils and re-installing it. ...
Ole Tange's user avatar
  • 35.8k
0 votes
1 answer
91 views

Does cygserver improve Cygwin performance? If so, with what tasks?

I've read that cygserver can improve performance in some circumstances but I'm not really clear on how - or on how to know whether it's applicable to our use case. Can anyone provide any insights?
Slbox's user avatar
  • 271
0 votes
0 answers
64 views

Damage control after erasing /etc in Cygwin?

I was doing housekeeping using the Windows adminstrator account, and I erased Cygwin's /etc folder tree. I cannot reinstall Cygwin, as I was in the process of taking stock of what files I need to ...
user2153235's user avatar
1 vote
2 answers
90 views

Interpolate timestamps and replace empty fields in CSV files

I have CSV files with the following elements: timestamp, data1, data2, data3, data4, data5 2015-03-16 00:00:00, 3, 3, 4, 2, 5 2015-03-16 00:10:00, 4, 7, 8, 9, 3 2015-03-16 00:20:...
dante_t's user avatar
  • 151
0 votes
1 answer
121 views

Weird echo output in cygwin

I'm struggling with a really simple Cygwin script, but I can't get my head around it. Hope someone can give me a hand. Here you are the script: h=www.ibm.com for ip in $(dig $h +short); do echo "...
Jesús Ángel's user avatar
3 votes
1 answer
2k views

mv: A and B are the same file

I'm trying to move 5 .MOV files to a folder called MOV. I'm using find to list the files and mv to move the files: $ mkdir MOV ; find . -type f -iname '*.MOV' -exec mv "{}" "MOV" \;...
Shayan's user avatar
  • 132
0 votes
1 answer
86 views

What are the installation files for cygwin?

For installing cygwin, it's website provides a small exe file which is to download the actual installation file from a mirror. But I don't have internet freedom on the destination computer with 64 bit ...
Tim's user avatar
  • 103k
3 votes
1 answer
3k views

Portable Linux emulator on Windows?

In a Windows computer where you don't have permission to install software, does Windows Linux subsystem, cygwin or any complete or partial Linux shell, utility or API emulator have portable versions? ...
Tim's user avatar
  • 103k
0 votes
2 answers
226 views

xhost not working in combination with aws vpn client

I have a laptop running Windows with a Cygwin X server. On this machine I have a virtual Linux box running under VMWare. I set export DISPLAY=xserver:0 on the VM and do xhost +xclient on the cygwin ...
Richard Wheeldon's user avatar
1 vote
0 answers
275 views

Output capturing and make under Cygwin: "Unable to initialize device PRN" [closed]

A minimal example of the problem under Cygwin: A directory with a Makefile: all: @echo "foo" and a test.sh: #!/usr/bin/bash x=$(make) print $x Now bash test.sh gives: Unable to ...
Amaterasu's user avatar
  • 293
2 votes
1 answer
190 views

xterm*VT100.Translations only when mouse is over the window with focus in FVWM under CYGWIN

xterm*VT100.Translations only when mouse is over the window with focus Is this a bug or a feature? For me, it's a serious problem. (click to focus) ONLY CYGWIN In particular, I'm talking about the ...
n952162's user avatar
  • 21
0 votes
1 answer
1k views

echo "Hello World" > /dev/stdout prints nothing

Scenario: $ echo "Hello World" > /dev/stderr Hello World $ echo "Hello World" > /dev/stdout $ uname -a CYGWIN_NT-10.0 xxx 3.3.4(0.341/5/3) 2022-01-31 19:35 x86_64 Cygwin ...
pmor's user avatar
  • 619
0 votes
1 answer
192 views

adding node.js directory to cygwin path breaks the ls command

adding node.js directory to cygwin path breaks the ls command: Starting /bin/bash.exe myidt@DESKTOP-IV5C6TI /cygdrive/d/tmp/node_ls_ko $ touch toto user@DESKTOP /cygdrive/d/tmp/node_ls_ko $ ls toto ...
user1767316's user avatar
3 votes
1 answer
2k views

running base64 encoded bash script gives me error

I have a bash script; the script is to generate a random number and have the user guess it. printf 'Guess the number (1-10) : ' read -r n randint=$(( ( RANDOM % 10 ) + 1 )) if [ $n = $randint ]; then ...
ghost21blade's user avatar
2 votes
0 answers
96 views

Inputing accented letters in Qt applications on Cygwin

I am a native Portuguese speaker, and I am having problems when typing accented characters in any Qt application running on Cygwin. Almost always, the result on the screen for any accented letter I ...
Paulo1205's user avatar
  • 193
0 votes
1 answer
151 views

The sync data between folder on window through cygwin

I have 2 Upload folders on server 192..168.2.3 192.168.2.4, both servers are running windows 2008r2. I want to sync the Upload folder of server 192.168.2.4 with the Upload folder of server 192.168.2.3,...
aphabeta's user avatar
3 votes
2 answers
1k views

Using sshpass in Cygwin, ssh stills prompts for password

According to this RedHat SSH password automation guide I'm following the Example 4: GPG one, and following the steps in that guide I create my pass_file using my own passphrase. Then, I got this: gpg -...
Metafaniel's user avatar
0 votes
1 answer
37 views

Implementing DB Security with Linux

I have installed cygwin64 and have been practising linux commands and Shell programming. I am creating a project where I want to restrict file permissions, authenticate user, and execute procedures ...
ParamitaParamita's user avatar
1 vote
1 answer
139 views

Bash array and output

I have a folder from part of my script output to tmp. The rev cut is necessary to remove parts of it that are not needed. I want to output each line separately to to part of my script I am using an ...
fletching's user avatar
0 votes
0 answers
536 views

Change default SFTP directory in Cygwin

On a Windows server, I've installed OpenSSH via Cygwin to mainly connect via SFTP. I would like to change the default directory for the SFTP server. When I log via ssh to this server, my entry point ...
giograno's user avatar
  • 161
12 votes
2 answers
4k views

How to install dig on Cygwin?

I cannot find dig command on my Cygwin, nor any package name that would directly point to it. If there is a package containing it, then which one to install?
Vlastimil Burián's user avatar
0 votes
1 answer
460 views

meld won't start on Cygwin: Complains about the dbus library

I'm trying to get meld to run on Cygwin 64 (just updated - September 2021), on Windows 10. Some relevant package versions: meld: 3.18.0-1 python3: 3.8.6-1 python36: 3.6.13-2 python2: 2.7.18-4 I'm ...
einpoklum's user avatar
  • 9,653
3 votes
4 answers
2k views

meld won't start on Cygwin: No module named 'meld'

I'm using Cygwin 64 on Windows 10; just updated. Some relevant package versions: meld: 3.18.0-1 python3: 3.8.6-1 python2: 2.7.18-4 I'm also using MobaXTerm's X server (and it works - I can run ...
einpoklum's user avatar
  • 9,653
2 votes
2 answers
3k views

Is there a way to check what newline characters your operating system uses?

I'm trying to run this open source bash script and it is not working because it is assuming I am running linux when it is parsing inputs. Actually, I'm running cygwin on a Windows machine. There is a ...
Daniel Kaplan's user avatar
0 votes
0 answers
141 views

missing argument to `-exec' with `find` in Cygwin

I'm new to Linux and trying to work with rsync. I want to sync only file/folders that are created or modified in last 1 days or less. I'm using cygwin to sync windows files into Linux. I tried below ...
Nasir Islam Sujan's user avatar
8 votes
5 answers
4k views

How to pipe filenames with spaces from a list file into "grep"?

First, I think the fact that I'm using cygwin is highly relevant here. In theory, I already know how to do this: cat file | xargs grep pattern The problem is, some of the file paths in file have ...
Daniel Kaplan's user avatar
0 votes
2 answers
590 views

sed - Replace '^M,' when I cant write '^M'

I'm using cygwin to connect to a tiny VM with limited RAM (512M). Also, I'm trying to import to a sqlite3 db from a 4GB csv file and I don't have any clue on import, except 2 lines (8.717.201 total) ...
user319660's user avatar
0 votes
1 answer
51 views

cygwin64 scons version issue

Cygwin currently provides two versions of scons package in its built-in package library: 2.3.4-1 and 2.4.0-1. (https://cygwin.com/packages/summary/scons-src.html) However, I am now trying to compile ...
K1ryU921's user avatar
0 votes
1 answer
150 views

GNUstep gnustepbase build 64bit

I am trying to build a "libgnustep-base.a" file in 64bit so I can possibly compile Objective-c code in cygwin86_64 using gcc, in the "gnustep-base-1.26.0" folder there is a make ...
Manul667's user avatar
1 vote
0 answers
305 views

Strange Cygwin terminal behaviour with trap and stty -echo

If I exit the script with Ctrl+C during the read ... command, the stty -echo mode is stuck! (I'm using the Cygwin terminal on Windows 10.) Unfortunately read -s won't solve my problem as it is "...
user's user avatar
  • 349
0 votes
1 answer
155 views

Cygwin: problems installing Seismic Unix - error part way through install

I'm in need of some advice installing 'Seismic Unix' in Cygwin for windows 10. Hopefully someone who has done this before can help me. The problem I have is when I run make install the install process ...
user3633615's user avatar
2 votes
1 answer
181 views

ddrescue creates image with no content

Whenever i try the following command ddrescue /cygdrive/f /cygdrive/e/stickydump.dd i get the following output: GNU ddrescue 1.25 Press Ctrl-C to interrupt ipos: 4294 MB, non-trimmed: ...
Nico1300's user avatar
1 vote
0 answers
155 views

Where is ocrmypdf executable after Cygwin installation?

I followed this page to install OCRmyPDF on Cygwin. I did so from a non-administrator account, so the process ended up creating ~/.local/ for the required files. The following commands, however, do ...
user36800's user avatar
  • 111
1 vote
1 answer
413 views

Keep Cygwin ssh alive when computer sleeps

I use a windows laptop and ssh via Cygwin into an ubuntu desktop to do some work. However, if I leave my Cygwin session on and my laptop goes to sleep overnight, it gets disconnected with the ...
Justin's user avatar
  • 113
0 votes
1 answer
139 views

Slowness in cygwin

I have cygwin and wsl installed on Windows 10. Commands in cygwin run much slower than in wsl : ~$ uname; time date CYGWIN_NT-10.0 Sat Nov 21 12:12:37 2020 real 0m0.825s user 0m0.203s sys ...
Philippe's user avatar
  • 1,475
0 votes
1 answer
323 views

How to upgrade lighttpd on Windows 10 using Cygwin/Mingw

There is this project I took from a client who my friend who owes Gym. They have a POS security scan every month because they use the credit card machine. if they don't pass the security scan, they ...
krillavilla's user avatar

1
2 3 4 5
8