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
9 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
18 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
995 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
287 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
93 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
9k 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
47 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
20 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
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
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
1answer
992 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
18 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
211 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: $ ...
2
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
42 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
33 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
15k 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
25 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
44 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,...
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 ...
13
votes
7answers
35k views

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

I used 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 follow my colleagues' syntax and able to manage a ...
-1
votes
1answer
47 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
115 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/...
0
votes
0answers
49 views

rsync exclude folder but include some files in the folder

I want to backup my Windows home directory using cygwin: rsync.exe -vrptlH --delete --exclude=AppData "/cygdrive/C/Users/user1/" "/cygdrive/D/backup/" As you can see I excluded the AppData directory....
22
votes
4answers
198k 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
125 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 ...
38
votes
4answers
28k views

How do I get rid of Cygwin's /cygdrive prefix in all paths?

I'm switching to Cygwin from the bash shell that ships with Git for Windows, and encountering a strange problem. Someone thought it would be a good idea to add /cygdrive/ to all paths, while I think ...
0
votes
1answer
37 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 ...
4
votes
1answer
1k views

Cannot login or ssh to non-admin Cygwin user this month but could last month and still can for other non-admin user

I've read what feels like almost all the Google links on variation of this issue but none of them seem to apply and this is just baffling me. In addition to my many Linux machines, I have a Windows ...
0
votes
0answers
195 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 ...
1
vote
1answer
1k views

File not found (cygwin on Windows)

Windows 7 TeX Live 2014 I am trying to install Minion Pro and Myriad Pro for the use with pdflatex. When I try to run the script in cygwin via name@pc-name /cygdrive/d/LaTeX/FontPro-master-Build01 $ ...
0
votes
1answer
102 views

How to write script in awk that tells average length of fields in each record, without counting whitespaces?

So I need to write an awk script file that finds and prints the average field length of each record in a text document. The text document is this: The quick brown fox jumped over the lazy dog's ...
0
votes
1answer
33 views

Where is the Unix script command in Cygwin?

Iirc, the Unix script command used to be in cygwin. Does anyone know what happened to it or where it is?
0
votes
0answers
22 views

How is it possible to call CwRsync.exe via a Bash Script with variables and arguments?

This is the commandline currently used to call Rsync that's part of Cygwin 64 install. rsync -aqHPR $CygSrcRoot/./$FolA1 $CygSrcRoot/./iMazing.Versions/Versions/$FolA1 $CygDstRoot/$DstCountFol --...
0
votes
0answers
16 views

cygwin xhost not working anymore

On my local Windows 10 PC I start cygwin64 and enter: #!/bin/bash set -x export DISPLAY=localhost:0.0 sleep 5 startxwin -- -listen tcp >/dev/null 2>&1 & sleep 10 then as a last step I ...
1
vote
0answers
41 views

Assigning array values while running a loop to a variable dynamically

The values present in indexArray are: 1 4 3 2 Below is the code snippet(This is not the complete code): while read -r line;do position=${indexArray[$counter]} # No value is assigned to "position" ...
2
votes
0answers
94 views

Cygwin puts space after every `fi`

Cygwin inserts a space everywhere after a combination of letters "fi". It is only visually so, if you copy the text, this space disappears. And here's the text I copied: # pidfile = /var/run/...
1
vote
1answer
63 views

Select a particular column greater than certain condition and select grep word that mentioned in the file

I have a files FB_Dataset.csv simply contains 21 columns, whereas FB_Dataset.csv is a comma delimited file. The general scheme of FB_Dataset.csv is posted below. I need to extract the word 'Trump' (...
2
votes
0answers
262 views

rsync failed: Permission denied (13) cygwin

I have mounted my destination server on my windows machine on Y: drive. I created a folder on the destination folder and when I open cygwin and run my rsync command to move data from my machine to the ...
4
votes
3answers
5k views

cygwin and pdftk

I have Cygwin install 64-bit version and have installed apt-cyg; using this, I have installed openssh and vim just fine, but I am not able to install pdftk. Does it have some other name? Or is there ...
4
votes
2answers
313 views

bash/cygwin broken after installing rtool?

Usually I can solve problems on my own (and Google). But recently I am baffled by this strange hiccup. Background: I use a chain of scripts for file-processing (in Windows, under Cygwin. Scripts ...
0
votes
1answer
85 views

Working Syntax for Rsync Copy of a set of 2 or more Hard-linked Folder Trees while maintaining this specific archive structure?

Working Syntax for Rsync Copy of a set of 2 or more Hard-linked Folder Trees while maintaining this specific archive structure? PS: Would this be a better fit in SO or SU SE? Template of Current/ ...
1
vote
0answers
55 views

taskwarrior - limit calendar month output

I am working on writing a tmux script to create a fun tmux environment in cygwin. When I type 'task calendar' the output appears to look fine, but when I run the same command through my tmux script, ...
0
votes
0answers
34 views

Unable to receive trap on snmptrapd

Unable to receive traps in snmptrapd (from NET-SNMP) running on Cygwin. When I enable the debugger, it has such messages: I have the snmptrapd.conf as below: ignoreAuthFailure yes authCommunity log ...
3
votes
2answers
1k views

cygwin, tail -F and rapidly filling/rotatinglogs

I'm using cygwin tail to follow busy java web application logs, on a windows server, generating roughly 16Gb worth of logs a day. I"m constrained to 10MB log sizes, so the files roll very often. ...
0
votes
0answers
35 views

Tilde expansion keeps changing in xterm, $HOME seems to be OK

My cygwin terminals have been screwing up tilde(~) vs $HOME when I restart them after (yet another) Windows 10 reboot. It seems to replace characters in the home directory with some unicode crap. ...
2
votes
3answers
378 views

Cannot paste a command to vim 8.0

In vim 8.0 when I try to paste a vim command from clipboard, it behaves as if vim was in insert mode: the command is pasted into the file itself instead of being executed. I'm using mintty. Mouse is ...
0
votes
2answers
91 views

Specifically lower case email-addresses only

Example (random) text: StackOverflow@icloud.com:Portuguesa-Span103 StackOverflow@gmail.com-Snip1031 Stackoverflow@icloud.com:Sanchismo103 Desired output: stackoverflow@icloud.com:Portuguesa-Span103 ...
17
votes
3answers
6k views

How can I set up Cygwin to automatically update and download without the GUI?

How can I set up Cygwin to automatically update itself? How can I get Cygwin to download a package without having to go via the GUI thing?
1
vote
2answers
990 views

Sed could not edit : not a regular file

I have tried various solutions mentioned in SO to solve this problem i am facing. I want to find all files recursively and change certain text. This is the command I am using in cygwin in windows ...

1
2 3 4 5
7