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
4 votes
0 answers
70 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
101 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
  • 133
0 votes
0 answers
24 views

How to update the cygwin offline installation folder

I am using a Windows 10 with cygwin installed on it and also need to install cygwin on a series of machines that have no internet access The solution I found is to run the cygwin setup program, and ...
BNT's user avatar
  • 3
1 vote
0 answers
272 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
143 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
  • 133
0 votes
2 answers
46 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
0 answers
229 views

I want to set a user's home directory to a folder on another drive in Cygwin OpenSSH

I want to set up a user's home directory to be run on a separate drive from the drive where the Cygwin home directory is located. I have ensured this directory exists and the passwd file and ...
Gene Joy's user avatar
0 votes
1 answer
59 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
  • 33.8k
0 votes
0 answers
120 views

Network file responds very slowly to Cygwin but not Windows Explorer

In my workplace, my Windows 10 machine has a letter-mapped network drive, which responds quickly when accessed using Windows Explorer. It responds extremely slowly, however, when it is accessed from ...
user2153235's user avatar
0 votes
1 answer
55 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
  • 241
0 votes
0 answers
51 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
1 answer
70 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
  • 79
0 votes
1 answer
79 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
1k 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
  • 133
0 votes
1 answer
68 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
  • 99.1k
3 votes
1 answer
2k 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
  • 99.1k
0 votes
2 answers
167 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
175 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
  • 183
2 votes
1 answer
151 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
747 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
  • 509
0 votes
1 answer
154 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
1k 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
85 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
  • 183
0 votes
1 answer
104 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
841 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
104 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
385 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
3k 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
340 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
  • 8,852
1 vote
3 answers
1k 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
  • 8,852
2 votes
2 answers
2k 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
125 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
7 votes
5 answers
3k 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
348 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
49 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
129 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
248 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
  • 339
0 votes
1 answer
142 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
151 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
119 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
335 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
67 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,285
0 votes
1 answer
263 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
0 votes
1 answer
123 views

develop of a bash backup.sh for rsync between linux and cygwin

i work on a debian 10 server with ispconfig 3 the backups files is in /var/backup/web*/*"Today"*. (exemple : /var/backup/web30/db_c1gifts_2020-07-25_00-07.sql.gz i install cygwin on my ...
Ornot's user avatar
  • 1
1 vote
2 answers
128 views

Cygwin: get a path's stored capitalization

Cygwin is case-insensitive in the manner of Windows, e. g.: $ touch ABC; rstr=$(openssl rand -base64 12); echo $rstr; echo $rstr > AbC; cat abc dGRMOHqqoy0/nc96 dGRMOHqqoy0/nc96 $ ls | grep -i abc ...
Amaterasu's user avatar
  • 183
0 votes
1 answer
38 views

Sorting file based on "file" output into folders

I am having millions of files without extension and I want to sort them into various folders. I am able to identify the files by "file" but then I end with lot of different types which I can ...
Petr's user avatar
  • 3
0 votes
1 answer
127 views

Why does "/dev/dsp" output with a 'Pulse-density modulation' (sort of)?

My understanding is that the input to /dev/dsp should be an 8-bit unsigned PCM signal/character stream. yet $ cat a.c #include <stdio.h> #include <math.h> int main(){ uint32_t t; ...
halsor5's user avatar
2 votes
0 answers
80 views

New install of cygwin requires manual login on each restart

I've recently had to reinstall Cygwin on to a new drive, and I tried to copy my .bash_profile over as well. But for some reason I can't use any of my old aliases in Cygwin unless I use "bash --login" ...
user2142371's user avatar
1 vote
2 answers
375 views

Open documents from Windows with Cygwin programs directly

Is it possible to open a document by using the Windows 10's "open with" feature with a program that comes with Cygwin, e.g. Zathura? This one with a Cygwin program. First attempt: try to simply use ...
viuser's user avatar
  • 2,564

1
2 3 4 5
8