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
0answers
5 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 ...
1
vote
4answers
572 views

Printing columns using AWK?

I have roughly 7 columns on each line, I want to print two specific columns then the remaining columns after the last specified one, example: awk -F: {' print $2 ":" $6 '} a.txt would print columns ...
2
votes
1answer
21 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: ...
0
votes
0answers
20 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 ...
3
votes
1answer
3k views

Running sshd in cygwin: “/var/empty must be owned by root…”

I installed OpenSSH on my Windows 7 system so I could tunnel my VNC into it from my Arch machine. However, when I run /usr/sbin/sshd -D on the W7 machine, I get the error: /var/empty must be owned by ...
0
votes
2answers
2k views

Running JAVA in Cygwin through bash script

I've been encountering a problem with cygwin where I cannot run a jar file with an error that the file cannot be found. If it were easier i would "translate" the java source in bash, but ...
2
votes
2answers
529 views

Why `env` does not find my executable?

I'm trying to use shebang with /usr/bin/env form to execute my script under custom interpret. This is how my file looks: $ cat test.rb #!/usr/bin/env winruby print "Input someting: " puts "Got: #{...
1
vote
1answer
21 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 ...
0
votes
1answer
25 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 ...
7
votes
3answers
14k views

XOR a file against a key

How is it possible, from bash or standard linux command-line tools, to XOR a file against a key? Something like: cat my1GBfile | xor my1MB.key > my1GBfile.encrypted Off-topic: I know the ...
13
votes
7answers
43k views

Why am I getting “line 1: $' :\r': command not found”?

I use Cygwin on my laptop (DOS). I have a collection of scripts from my colleagues, and my own. I am not an IT person, not knowledgeable in Unix. I am following my colleagues' syntax and able to ...
2
votes
1answer
1k views

glib errors on cygwin

I want to compile and install geany text editor in Windows 7 by using cygwin. I follow the usual way to compile and install C source: ./configure make make install the configure script was ...
1
vote
1answer
167 views

Printing Mathcad files

I am trying to automate printing of Mathcad Sheets using cygwin or ubuntu. lpr command does its job when it comes to text file but when I want to use it for mathcad, it gives me following error: ...
1
vote
1answer
1k views

LS_COLORS not respected on Cygwin

Whilst trying to configure ls' colors on Cygwin (specifically the distro babun), I found that the custom extension colors that were in the LS_COLORS environment variable weren't being used. Here's an ...
0
votes
1answer
27 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 ...
1
vote
0answers
33 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 ...
13
votes
4answers
36k views

PuTTY, CygwinX, and X11 forwarding connection refused

I am no longer able to forward X11 using KiTTY/PuTTY to CygwinX. I am connecting to an Ubuntu Server 14.10 machine that is correctly configured to allow X11 forwarding. I am able to initiate X11 ...
0
votes
1answer
533 views

Incrontab / Incron on Cygwin

Does anyone please know if it is possible to install incron/incrontab within Cygwin? I've had a look and the package does not appear on the cygwin website, I wondered if anyone had tried, knew of any ...
0
votes
2answers
682 views

Portable way to kill a process listening on a given port

Is there a way to kill a process listening on a given port (e.g. in bash lsof -t -i tcp:8000 | xargs kill) from a shell script that will also work on cygwin, as well as bash?
1
vote
2answers
1k views

sort processes by cpu usage in cygwin

I need to sort processes by cpu usage in cygwin. I already tried tasklist but it shows only processes ordered by memory usage.
0
votes
1answer
31 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 ...
1
vote
2answers
44 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 ...
3
votes
3answers
177 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 ...
0
votes
0answers
23 views

Intermittent operation in perl loops when using non-login shell in Cygwin

I'm running perl inside cygwin under Windows (both 8 and 10). File loop.pl repeatedly calls another perl script worker.pl (simplified to make the problem clearer): loop.pl: for my $i (1..2500) { ...
29
votes
7answers
35k views

Are cygwin vim commands different than normal vim?

I am unable to edit text files using vim in cygwin. I have to press i many times to insert text. Sometimes it works and sometimes doesn't. Whenever I move cursor up down I have to press I many times. ...
0
votes
1answer
521 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 ...
0
votes
1answer
41 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; ...
28
votes
3answers
135k views

How to exit file reading mode (in `less`) in Linux terminal?

I have just installed Cygwin, and I have displayed a file's contents using the less command. Now I am unable to exit that in order to type other commands: I want to exit this mode to type some other ...
0
votes
1answer
28 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 ...
0
votes
0answers
27 views

How do I turn off line wrap in Cygwin terminal? [duplicate]

I tried: export PAGER='less -S' Did no work - wide tables are still broken on each line. $ tput rmam Did not work $ alias wrapoff="less -S" Did not work $ setterm --wordwrap off Did not ...
0
votes
0answers
69 views

Unable to install node via nvm in Cygwin

When I try to use the "nvm install" command, it seems to run fine but at the very end I get the following long error message: Warning: unrecognized setting VCCLCompilerTool/...
1
vote
0answers
20 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" ...
1
vote
1answer
395 views

GNU screen doesn't work in Cygwin — directory must have mode 700

I installed Cygwin on Windows 10 and screen fails with $ screen Directory '/tmp/uscreens' must have mode 777. I couldn't change the permissions for whatever reason $ chmod -R 777 /tmp $ ls -hal /...
1
vote
2answers
271 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 ...
2
votes
3answers
11k views

'Couldn't connect to display “:0.0”' error on Cygwin

I'm trying to run tclsh with tk and I get a display error: no display name and no $DISPLAY environment variable Then I try the following: export DISPLAY=:0.0 And of course it says it couldn't ...
1
vote
2answers
100 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 ...
0
votes
1answer
220 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 ...
0
votes
1answer
1k views

Basic GUI application Cygwin

How do I extend the following program to display basic GUI element Button in Cygwin on Windows? #include <stdio.h> int main(int argc, char **argv) { printf("Hello, World!\n"); } And to ...
0
votes
1answer
20 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 ...
0
votes
1answer
544 views

chmod not working in minGW64 but working Cygwin?

I need to do some file permission changes on win10, while I can run this command under cygwin but not in git bash minGW64, can someone help to explain why? The result as from the cygwin terminal: $ ...
3
votes
4answers
5k views

Changing title without changing prompt on Cygwin

I have the following shell script function from this site that allows me to change the title in both Putty and Cygwin. In Putty connected to a Linux host it changes the title and leaves the prompt as ...
1
vote
0answers
185 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 ...
1
vote
1answer
42 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 ...
6
votes
3answers
18k views

Why is my SSH connection being closed immediately after pubkey auth succeeds?

I've two windows machine and trying to SSH using CYGWIN. It works fine when password prompted. However, when I generated the private/public pair, looks like authentication succeeded, but got the ...
0
votes
0answers
31 views

screen doesn't work in MobaXTerm but works in Cygwin

I have Cygwin installed. MobaXTerm, which has it's own (separate) custom version of cygwin, in Cygwin native screen works just fine. But in MobaXTerm I have the same problem as in this question: GNU ...
1
vote
1answer
49 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,...
0
votes
1answer
111 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 ...
0
votes
1answer
172 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/...
24
votes
4answers
209k views

why won't x11 display work through ssh login?

I have logged in to a remote server and am trying to display an x application(e.g. firefox). but an error message appears. the below are my attempts to open firefox Black@Black-PC ~ $ ssh -X kwagjj@$...
4
votes
1answer
134 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 ...

1
2 3 4 5
7