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
0 votes
1 answer
40 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 ...
user avatar
  • 91.5k
3 votes
1 answer
379 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? ...
user avatar
  • 91.5k
0 votes
0 answers
45 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 ...
user avatar
1 vote
0 answers
30 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 ...
user avatar
  • 151
2 votes
1 answer
65 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 ...
user avatar
  • 21
0 votes
1 answer
216 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 ...
user avatar
  • 407
0 votes
1 answer
49 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 ...
user avatar
2 votes
1 answer
469 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 ...
user avatar
2 votes
0 answers
42 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 ...
user avatar
  • 171
0 votes
1 answer
21 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,...
user avatar
2 votes
2 answers
318 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 -...
user avatar
0 votes
1 answer
36 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 ...
user avatar
1 vote
1 answer
73 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 ...
user avatar
0 votes
0 answers
147 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 ...
user avatar
  • 161
0 votes
0 answers
80 views

How can I repair ctrl + space on cygwin's emacs?

I have cygwin installed on a windows 10 virtual PC running on qemu on my debian 11 desktop PC. I have emacs installed on cygwin. If I run cygwin and emacs through the windows command prompt or through ...
user avatar
3 votes
2 answers
797 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?
user avatar
0 votes
1 answer
134 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 ...
user avatar
  • 7,591
0 votes
2 answers
417 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 ...
user avatar
  • 7,591
2 votes
3 answers
674 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 ...
user avatar
0 votes
0 answers
81 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 ...
user avatar
6 votes
4 answers
2k 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 ...
user avatar
0 votes
2 answers
89 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) ...
user avatar
0 votes
1 answer
35 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 ...
user avatar
0 votes
1 answer
62 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 ...
user avatar
2 votes
0 answers
154 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 avatar
  • 319
0 votes
1 answer
107 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 ...
user avatar
2 votes
1 answer
83 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: ...
user avatar
1 vote
0 answers
80 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 ...
user avatar
  • 111
1 vote
1 answer
178 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 ...
user avatar
  • 113
0 votes
1 answer
32 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 ...
user avatar
  • 1,135
0 votes
1 answer
180 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 ...
user avatar
1 vote
0 answers
65 views

Show GNU screen session name as Cygwin window title

I use Cygwin with a xterm terminal to ssh into a server that gives me a csh prompt. I then do screen -S new_session. The window title of Cygwin then shows "[screen 0: csh]", which suggests ...
user avatar
  • 11
0 votes
1 answer
88 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 ...
user avatar
  • 1
1 vote
2 answers
83 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 ...
user avatar
  • 151
0 votes
1 answer
34 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 ...
user avatar
  • 3
0 votes
1 answer
97 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; ...
user avatar
2 votes
0 answers
46 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" ...
user avatar
1 vote
2 answers
259 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 ...
user avatar
  • 2,304
0 votes
1 answer
723 views

Schedule task with cygwin script

In fact I have installed cygwin on windows server 2016, and my scripts run perfectly inside bash terminal. Now I want to schedule my scripts to run per day using windows task scheduler. So I have ...
user avatar
0 votes
1 answer
94 views

Extract all matches between a word and nth character match after that word

I have a file where I want to extract all matches. Each match starts with a word, and ends with the nth time a character occurs after each match, in this case 2nd. Include in the output the word and ...
user avatar
1 vote
0 answers
452 views

Inspect/browse gzipped dd disk image from command line without decompressing and mounting?

I did a disk image, as per How to dd a remote disk using SSH on local machine and save to a local disk : ssh user@remote "dd if=/dev/sda | gzip -1 -" | dd of=image.gz` Now, I would just like to ...
user avatar
  • 6,296
1 vote
1 answer
118 views

Reading .xml files and writing out the information in a .txt file

I want to download river runoff (.xml) files from a ChartServer online and create a .txt file with the information by running a .sh script. But I'm having difficulty in getting the data out in the ...
user avatar
1 vote
2 answers
961 views

CTRL-O causing terminal to freeze

I am using cygwin on Windows 10, to ssh to my servers, and recently I noticed that whenever I pressed CTRL+o the entire session/cygwin window would freeze up. I tested it out on putty as well and same ...
user avatar
  • 287
1 vote
1 answer
77 views

sed substitution command behaving weird

I am attempting to manipulate a file with lines like: 331436218071156,XXXXXXXXXXXXXXX6269,12/28/2018,0 Using this sed command: sed -e '/XXXXXXXXX/ s/^\([0-9]*\),XX*[0-9]*,\([^,]*\),\(.*\)$/\2,\1,\3,...
user avatar
  • 13
0 votes
1 answer
471 views

get full path to shared directory

I have done following #!/bin/bash PROJDIR="//$HOST/projects" cd $PROJDIR newscript exit 0 Purpose of the script is to enter in shared folder and trigger another script within it, but the script ...
user avatar
0 votes
1 answer
351 views

Why can I not change window title with mintty/wsl

I started mintty of cygwin, and run following commands : ~$ # here, we are in cygwin/bash ~$ printf "\e]0;cygwin\7" ~$ # Now I see "cygwin" on mintty's title ~$ wsl ~$ # now, we are in wsl/bash/...
user avatar
  • 1,135
3 votes
3 answers
350 views

rsync exclude AppData but include Firefox bookmarks?

I want to backup my Windows home directory using cygwin and rsync: rsync.exe -vrt --delete --exclude=AppData "/cygdrive/C/Users/user1/" "/cygdrive/D/backup/" As you can see I ...
user avatar
  • 393
5 votes
1 answer
146 views

Why the codes generated by [UP] key changed after ssh session

I'm in a mintty window of a cygwin environment. When I typed ⎈ Ctrl+V then ↑ key I got : ^[[A Then I ssh into Raspberry Pi, and exit immediately. Now I type ⎈ Ctrl+V ...
user avatar
  • 1,135
0 votes
1 answer
116 views

How to prevent ss ouput with empty lines?

Moving from netstat to iproute2 ss I noticed that the output from ss tends to spill over into empty "new lines" when connecting via SSH from a cygwin terminal. e.g.: user@host:~ $ ss -4t State ...
user avatar
  • 101
0 votes
1 answer
1k views

Problems Installing XCRYSDEN in CYGWIN

I am trying to install XCrySDen on my computer (Windows) and I am using cygwin for this. I am following the instructions perfectly: > $ tar xvf xcrysden-1.5.53.tar.gz $ cd xcrysden-1.5.53/ $ cp ...
user avatar
  • 1

1
2 3 4 5
8