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 ...


4

The /proc file system will list exactly this information: $ ls -l /proc/self/fd total 0 lrwx------ 1 michas users 1 Apr 6 04:44 0 -> /dev/pts/0 lrwx------ 1 michas users 1 Apr 6 04:44 1 -> /dev/pts/0 lrwx------ 1 michas users 1 Apr 6 04:44 2 -> /dev/pts/0 lr-x------ 1 michas users 1 Apr 6 04:44 3 -> /proc/6934/fd $ ls -l /proc/self/fd ...


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


4

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 ...


3

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) ...


2

A Stack Overflow comment discusses the possibility of this being due to having a version of gcc or make that isn't dealing with the unix/Windows path style conflict. A similar problem was had in another situation, which was resolved by ensuring that Cygwin's version of gcc was installed as it was otherwise falling back on something else. If you do not have ...


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 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

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

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

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 ...


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

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


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

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

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 ...


1

The file you're using has windows style line feeds (CR) at the end of them (same thing happened to me using Cygwin on Windows XP). Use 'dos2unix.exe' to rectify and you should be ok: $ dos2unix.exe script.sh dos2unix: converting file script.sh to Unix format... Then rerun your script and those error messages should no longer appear.


1

Tip: run set -x to enable tracing mode. Bash prints each command before executing it. Run set +x to turn off tracing mode. + find . '\(' '\)' -exec grep -IH needle '{}' '\;' Notice how the last argument to find is \; instead of ;. You have the same problem with the opening and closing parentheses. In your source, you've quoted the semicolon twice. ...


1

Running bash command using arrays Let try: find /tmp \( -type f -o -type d \) -ls Wow, there is a lot of output... Well, now: cmd_list=(find /tmp \() cmd_list+=(-type f) cmd_list+=(-o -type d) cmd_list+=(\) -ls) "${cmd_list[@]}" Hmm... There seem identical! find /tmp \( -type f -o -type d \) -ls 2>/dev/null | md5sum ...


1

man ssh -L [bind_address:] port:host:hostport Specifies that the given port on the local (client) host is to be forwarded to the given host and port on the remote side. This works by allocating a socket to listen to port on the local side, optionally bound to the specified bind_address. Whenever a connection is made to this port, the ...



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