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.

69 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
2answers
291 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 ...
4
votes
1answer
265 views

How do I schedule a cron task to run

I'm looking to crontab a script every hour starting Friday at 5pm... ending Monday at 5am. This script checks if it's completed this week and if it's currently running. If no/no, start task. Off the ...
4
votes
1answer
1k views

Xrandr doesn't scale screen under Cygwin/X and Xming

The preamble: I have a very specific remote X client, that needs fixed resolution. 1280x1024, to say. And my notebook has 1440x900. And Windows aboard. So, the idea is to scale the output of the ...
3
votes
0answers
416 views

XDMCP “maximum number of open sessions from your host reached” but no session is active

I'm using XDMCP to access CentOS 6 hosts from Cygwin/X. Everything works fine, but every now and then attempting to connect results in the error message: XDMCP fatal error: Session declined maximum ...
3
votes
0answers
452 views

Has anyone built ksh93, AST, or UWIN from the AT&T repo on Github, in Cygwin?

Following the move of the source code from the AT&T repo to Github, has anyone built ksh93, AST, or UWIN from it, on a Cygwin platform? I refer to another thread on this forum: Is the shell ...
2
votes
0answers
82 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/...
2
votes
0answers
169 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 ...
2
votes
0answers
2k views

Cygwin + /usr/bin/xterm: Xt error: Can't open display: :0

I am trying to run xcrysden on my windows PC using Cygwin. If i try to start an x server with : startx A black window opens for a split second , and i can read the follwing information in the command ...
2
votes
0answers
26 views

Attempt local SSH Keys before Agent

I have a key in a KeePass database made available using KeeAgent. I also have a key in the ~/.ssh folder. When I attempt to SSH, it tries the key from KeePass first (even if I have an IdentityFile ...
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 ...
2
votes
0answers
2k views

Cygwin/X DISPLAY number no longer :0?

I use Cygwin/X to ssh into a linux computer cluster using a Windows (10) pc. Yesterday I was in the middle of an ssh session using X11 forwarding. Suddenly one of the X windows open started to hang ...
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 ...
2
votes
0answers
265 views

Corrupt files after extracting with Cygwin's GNU tar

I have a bunch of tarball backups which I just restored onto my new Windows 8.1 + Cygwin system using GNU tar: zsh$ for file in **/*.tgz; do tar xvzf $file; done To my surprise a lot of these ...
2
votes
1answer
179 views

How do I install htmldoc via cygwin?

I've installed all packages with gcc in their title via cygwin on my PC along with FLTK and I ran ./configure and ./configure ENTER with no errors but now after running make I received the error: ...
1
vote
0answers
19 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
0answers
40 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" ...
1
vote
1answer
52 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' (...
1
vote
0answers
51 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, ...
1
vote
0answers
134 views

wget behaves differently on cygwin and centos

On cygwin this command works as expected and exits immediately: wget --post-file oryxblock.2018-10-10_20_40-07_591.204.txt --output-document - --header "Content-Type: text/csv" http://htm-psycho-402....
1
vote
0answers
247 views

ls ~ permission denied with xonsh in Cygwin

I tried to use xonsh in my Cygwin terminal, but ran into some problems with permissions: loom@tatooine ~ $ ls xonsh: subprocess mode: permission denied: ls However, I can use the command ls as ...
1
vote
0answers
889 views

(ssconvert: 2156) dconf-WARNING **: failed to commit changes to dconf: Cannot spawn a message bus without a machine-id

I am trying to use ssconvert to convert .xlsx files to .csv formats. However, every conversion will report a warning message like: (ssconvert:2156): dconf-WARNING **: failed to commit changes to ...
1
vote
0answers
123 views

cygwin: ls -i reports wrong inode number for files in UNC path

I have a multiple-version backup, that uses hard links for files that have not changed from version to version, in my QNAP NAS. The backup target is an external EXT4 disk connected via eSATA to the ...
1
vote
1answer
941 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 ...
1
vote
0answers
456 views

Is there implicit path conversion in Cygwin?

http://www.mingw.org/wiki/Posix_path_conversion For any executable not dependent on msys-1.0.dll, MSYS will convert POSIX paths that are used as arguments to Win32 paths. This page attempts to ...
1
vote
0answers
603 views

Can't log into localhost via SSH, but authentication succeeded

When I try to use ssh to login locally, it closes the connection. $ ssh -vvv Chloe@localhost ... debug2: we sent a publickey packet, wait for reply debug1: Authentication succeeded (publickey). ...
1
vote
0answers
320 views

Cygwin and Tmux run-shell

I've run into a somewhat odd issue on Cygwin when I'm using the Tmux command run-shell. Given the script: #!/usr/bin/env bash read -r -d '' var << EOF This is line 1. This is line 2. Line 3. ...
1
vote
1answer
935 views

How to organize files in Linux/Unix shell?

I would like to try to organize my documents, and I was told that I can do this using the linux/unix cygwin terminal. I searched for the command in google but all I ever did find was organizing the ...
1
vote
0answers
402 views

find and copy files change the modified date to 1980-1-1

I use command to find and copy files in cygwin in windows . My command is find -name '*.docx' -exec cp -p -t /word {} + however , when the files is copied to destination folder, I can see the ...
1
vote
1answer
204 views

Curl or Lynx: stripping Javascript possible?

I am doing corpus generation through curl or lynx of some web pages. I have written a program in bash to strip away the html code (e.g., when I do lynx -source myurl), but the problem is that some ...
1
vote
0answers
2k views

Cygwin compilation error in ffmpeg: gcc is unable to create an executable file

While i am executing the below command in cygwin in ffmpeg source directory ./build_android.sh Here is the for ffmpeg in android I am getting this error message C:/cygwin64/home/SureshKumar/android-...
1
vote
0answers
407 views

scp stdin: is not a tty, and write failed, connection reset by peer

I have used scp for years between linux servers, as well as with Mac OSX systems. But now, I have installed cygwin and ssh, bash and openssl in order to pull large files from my linux box on the web ...
1
vote
0answers
561 views

KDE-Openbox closes immediately after it opens on Cygwin

I just installed Cygwin a few days ago. Now when I want to explore it, I can't run KDE-Openbox. I haven't tried anything else, except compiling Mplayer which did work. Last time I had Cygwin ...
1
vote
0answers
156 views

Cygwin DenyHosts daemon-control file: no such file or directory error

I have been trying to figure out this error and searched everywhere with no luck. I have installed DenyHosts on Cygwin and also the DenyHosts daemon but when I try to start the daemon by typing: ...
1
vote
0answers
138 views

Shorewall “ERROR: Ordinary users may not start the /etc/shorewall configuration” in Cygwin

I am using Cygwin on Windows 7 and I have installed Shorewall 4.5.21.5. When I try to start shorewall in Cygwin, it gives me error: $ shorewall start ERROR: Ordinary users may not start the /etc/...
1
vote
0answers
243 views

ssh log sent to email in Cygwin

I am using Cygwin in Windows 7. I am trying to make my syslog-ng daemon send a ssh log via email to me when ever someone tries to log into my computer. I tried using the code below (entered into /etc/...
0
votes
0answers
22 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 ...
0
votes
1answer
91 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
42 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....
0
votes
1answer
34 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 ...
0
votes
0answers
126 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
0answers
11 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 ...
0
votes
0answers
20 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
29 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 ...
0
votes
0answers
33 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. ...
0
votes
0answers
236 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 /...
0
votes
0answers
41 views

xfce on cygwin X not working!

Good evening, I have a big problem, I'm fighting desperately with my PC to launch a session but it spits and my CPU goes up to 100% When I click on exit, the software tells me that I have 13 ...
0
votes
1answer
82 views

How to remove the title bar in mintty cygwin

How do i remove the title bar in the cygwin mintty terminal window ? there is no option in the options -> window configuration
0
votes
0answers
53 views

How to switch user in the server by su without password through shell script?

I am using cygwin to run my expect command for login into server. Once login i have to switch the user by su command writing password in the shell script which does not prompt for password and ...
0
votes
0answers
77 views

How do I stop my terminal from clearing the command when I hit enter

I am using mintty under Cygwin on Windows 10. I don't know why this started happening but suddenly everytime I type a command and hit enter, the command and all the scrollback text is cleared. I don'...
0
votes
1answer
142 views

gawk process multiple files inside directory

I have multiple text files in a folder that I want to process through gawk, rather than process them each individually is it possible I can process them all at once without merging them into 1 .txt ...