Tag Info

Hot answers tagged

6

As per the official Cygwin Installation Page: Installing and Updating Cygwin for 64-bit versions of Windows Run setup-x86_64.exe any time you want to update or install a Cygwin package for 64-bit windows. The signature for setup-x86_64.exe can be used to verify the validity of this binary using this public key. I had a hunch this bash was ...


5

Some of that output will be buffered. You send your Ctrl+C to the remote end which interrupts the running program. The program exists and the shell send the characters to show you the prompt again. Before the prompt is shown your screen will first show all the data that was buffered and already on it's way to you. What you're asking is for the program to ...


4

I usually run the output into less so that I can kill it via less instead using the q key. $ cmd | less Example $ cat /dev/urandom | less     After hitting q+Enter it'll quit and return back to your normal terminal, leaving it nice and clean. Why does that happen? The problem you're encountering is that there are buffers (for STDOUT) ...


4

Make sure that you have the DISPLAY-variable set in your cygwin-environment: export DISPLAY=:0.0 after connecting with SSH, check if that shell also knows the correct DISPLAY-variable with: echo $DISPLAY


3

Assuming you believe the host really did change its host key you can delete the old entry. Since this one tells you the old entry is on line 2 you can do sed -i -e '2d' ~/.ssh/known_hosts to remove the old entry from you known hosts file


3

There is no traceroute in the Cygwin packages, because tracert is always available on Windows. See https://cygwin.com/ml/cygwin/2005-12/msg00443.html for a thread briefly discussing this. You can try compiling a Unix-style traceroute from source usign Cygwin. If you want to compare Windows-style tracert to Unix-style traceroute though, I'd recommend running ...


2

There are several levels of buffering. When you press Ctrl+C, this stops the program from emitting data to the terminal. This doesn't affect data that the terminal emulator hasn't displayed yet. When you're displaying data at very high speed, the terminal can't keep up and will lag. That's what's going on here: displaying text is at lot more expensive than ...


2

I had problem with vim arrow keys while trying vim inside windows8.1 using cygwin. The issue was, printing A/B/C/D while navigating with Arrow keys in insertion mode. The solution worked for me is: cp vimrc_example.vim ~/.vimrc Basically, above command copying 'vimrc_example.vim' file in to '/home//vimrc'


2

The output of each awk processed line is terminated in a linefeed (\n) which is the Unix/Linux standard. Windows/DOS expects a carriage return followed by a linefeed to mark the end of the line (\r\n). notepad will display all Linux generated files as you are currently seeing them. To resolve, pipe the output of awk through the unix2dos command, which ...


2

This is a temporary problem. The ssh-user-config script needs a fix. The reason your "How To Geek" tutorial doesn't match your experience is that the most recent release of Cygwin (1.7.34) did away with /etc/passwd and /etc/group in the default installation. It is possible to recreate them, as you eventually discovered, but if they aren't present, the ...


2

I found fbpanel is here /etc/X11/xinit/startxwinrc in the condition if [ -f $HOME/.startxwinrc ] then exec $HOME/.startxwinrc else ... /usr/bin/fbpanel fi so I've created $HOME/.startxwinrc with the only /usr/bin/xterm (warning: line endings must be unix single LF) it helped, no panel, only xterm window opens


2

This looks like the version that patched shellshock (Subject to other bug variations / patches.) for cygwin bash: Date: Mon, 29 Sep 2014 15:22:43 -0600 https://cygwin.com/ml/cygwin-announce/2014-09/msg00040.html AKA: 4.1.14-7 " This is a minor rebuild which picks up an upstream patch to fix CVE-2014-7169 and all other ShellShock attacks (4.1.13-6 was ...


2

According to the POSIX standard, environment variables are just plain strings with no associated data types. However, as an extension, some shells like bash, ksh, ksh93, zsh and others allow their variables be typed, like being numeric, an array. Read-only variables or pre-formatted ones might also be supported. They are commonly typed with either the ...


2

AFAIK, lsof has not been ported to cygwin. You could use the Microsoft netstat utility there: netstat -aon | awk '$1 == "TCP" && $4 == "LISTENING" && $2 ~ /:8000$/ {print $5}' | xargs kill


1

BASH_VERSINFO[5]=x86_64-redhat-linux-info Output: bash: BASH_VERSINFO: readonly variable Btw. see: Hacky method to unset readonly variable with gdb


1

incron relies on inotify, which isn't emulated by Cygwin. To run on Windows it would have to be re-written using equivalent Windows functionality; see https://stackoverflow.com/questions/3517460/is-there-anything-like-inotify-on-windows for details. The answers to that question give links to various Windows tools which may provide the functionality you're ...


1

In cygwin its not possible to change group permissions, until the group is Users or Root. Refer http://stackoverflow.com/questions/17091972/chmod-cannot-change-group-permission-on-cygwin So you wont be able to change the group permission until you change var's group owner to Users So the best solution is: chown :Users /var chmod 757 /var chmod ug-s /var ...


1

Ok, as Stephen Kitt said there is no ready to use traceroute binaries for Cygwin. That's why i tried to compile it myself. I can see there is modern traceroute but from it's description follows, that it can't be used with old Linux kernels and for me compilation stuck on missing "dccp.h" and i gave up. I was able to compile the old implementation, but it ...


1

My two cents is that you shouldn't put the file in one of the default system header paths - you should put it into whatever directory you want (/usr/local/libfoo_v1.0/include being a pretty common convention, with the library itself installed into /usr/local/libfoo_v1.0/lib) and then point the compiler to that directory with -I/usr/local/libfoo_v1.0/include ...


1

You need to install the libgd2 package to provide the missing cyggd-2.dll.


1

You most likely haven't started the cygwin/X server, or maybe not even installed it, you should do that first, so that there is an actual X Display to connect to. cygwin normally only handles commandline programs and the idle development invorment for Python is X based Alternatively you can use the Windows idle environment for development and run the ...


1

This question appeared closely related to another one previously posted, which hinted at the possible culprit: the 64-bit version of Cygwin. Indeed it has helped a countless number of users to install the 32bit version of Cygwin, which - in most of cases - made tmux and other applications work. Oddly enough, a sort of "derivative" of this bug was reported ...


1

Seems like the reasonable thing would be asking him to compile it to Linux as he really opposes to release the source code (shouldn't be big deal though if he wrote it "posixly"), Cygwin is a "layer" that provides Unix API under Windows and Wine is a "layer" that provides Windows API under Linux. Since in the end of the day the software written for Cygwin ...


1

Rsync only refrains from copying a file if it thinks the copy in the destination tree is identical to the copy in the target tree. By default, it assumes that the files are identical if they have the same size and the same modification time. You can pass the option -c to make rsync calculate a checksum instead (which is a lot slower since it has to read the ...


1

Since it's not in the cygwin ports, it's not. You should consider building it from source. EDIT Googling for gnu globals cygwin I found build instructions: http://sophie.zarb.org/distrib/PLD/ac/ppc/rpms/global/files/11 This source also lists the necessary dependencies.


1

Make sure that you are picking the correct netstat for your platform. which netstat will give you path where it is executing it from.


1

In shell scripting, there is only one data type. Everything is text. Different commands may variously interpret the text to suit their needs: $ [ "1" -eq "01" ] && echo yes || echo no yes $ [ "1" = "01" ] && echo yes || echo no no The first test interprets 1 and 01 as numbers (the second probably as an octal number). The second test treats ...


1

I had same problem with Cygwin. You need to run dos2unix mkdatedir.sh # or whatever your script is called this will remove any dos carriage returns but better to set option igncr see https://cygwin.com/ml/cygwin-announce/2010-08/msg00015.html


1

Thanks to @jensd, @unxnut for helping me. based on your comments I was able to figure out the problem. The solution needed two steps: the DISPLAY variable should be properly set. when ssh'ing to remote server, the -X switch must be on my previous attempts lack one or both of these two conditions. Anyhow, for later users who see this here's are examples ...


1

It should be enough to find a way to kill the cat command. For the following proposals you may need a second ssh connection open. Seldom CTRL+z can be more effective than CTRL+c: it can answer faster. After that you suspend the command you can kill it with kill %1 or whatever is its job number. This in the hope that you are still able to read anything from ...



Only top voted, non community-wiki answers of a minimum length are eligible