Tag Info

Hot answers tagged

27

You can create a named pipe (fifo) using mkfifo. Writes to this type of special file will block until a process reads from it. $ mkfifo blocker $ echo hello > blocker # "hangs" In another session: $ cat blocker hello # the `echo` above unblocks after this


24

So far as I know, Putty is the best open-source non-commercial SSH client for Windows. For tabbed sessions there is http://puttycm.free.fr/cms/ You could also look at commercial programs such as Reflection for Unix and SecureCRT. (Edit:) They both offer tabbed sessions. Another option might be Putty + screen (man screen)? (Edit:) Summary of programs ...


18

The most obvious advantage: As long as no text output (or a legacy command) is involved in a pipeline, you are not moving text through the pipes, but instances of .NET framework objects, with all their properties and methods. This allows for a more expressive and less ambiguous pipeline handling that also is completely uninfluenced by locale and language ...


17

List all installed packages cygcheck --check-setup --dump-only without --dump-only the command will take few minutes to complete because it will TEST all packages. You should see an OK for each package if everything is fine ;) List files belonging to a package For package bash do: cygcheck --list-package bash it works for installed packages only ...


14

You should be able to use setup.exe w/o the GUI: setup.exe -q -n -N -d -R c:\cygwin -s http://yourFavoriteMirror \ -l c:\localPackageDir -P <comma-separated list of packages to install> This is from cygwin mailing list (and follow up post)


9

I came across charade a while ago, which replaces ssh-agent and proxies to Pageant. At the time I couldn't quite get it working, and haven't had the chance to play with it since, but it might be worth a try. If you have any luck please post back and let me know, it's been on my list of things to do for ages!


8

I also wrote a proxy between openssh and pageant, which I call ssh-pageant. It looks like pretty much the same approach as charade, but I hadn't heard of it. Well in case you have trouble, I thought I'd throw out ssh-pageant to try instead.


8

I've played around with the Windows build of Unreal IRCd. It's annoying to configure if you've never configured a Unixy IRC server before, but there's always the website to help you out, and on the plus side you get portable knowledge (all the concepts as well as most config files can be ported straight to a Unix machine.)


6

Without going into value judgements about the paradigm the principal advantages of PowerShell are .Net integration and incumbency - from Windows 2008 server onwards it is bundled by default and it is loaded in service packs on 2003 and 2003 R2. To be fair, there are several other choices for scripting - for example Perl and Python. Python also gives you ...


6

First of all "it seems to use caching stuff I don't need"... what the heck are you talking about? Complains about cygwin's size are unjustified myths. The base cygwin installation is very minimal and there is no point to trying to make it smaller for yourself. Cygwin has very small memory footprint. Compared to the 20 gb size of vista, my cygwin is 500 mb, ...


6

Some people appear to be under the assumption that it is easy to swap out the hardware on whatever platform this person is using. It may very well be that 500MB is actually a large amount of space to sacrifice if they are perhaps using a CF adapter and a 4GB card to run windows on a netbook or similar. Or they may be installing it to a virtual image and this ...


5

I just had this problem, and solved it, eventually. Firstly, make sure you were having the same issues as me. To do this, check the contents of your /var/log/sshd.log file: cat /var/log/sshd.log If the last line reads: /var/empty must be owned by root and not group or world-writable. then I can help you. Read on. All of the following need to run from ...


5

I've only used Windows SFU on Windows 2008 before, but I believe that's based on Interix. I've played with cygwin on occasion, but not a huge amount, so someone please correct me if I say something obviously wrong here. Unix-like feel: Interix wins this one. The environment feels far more "complete". I'm not sure how to put it. Interix runs alongside the ...


5

It's probably a permissions issue on either your ~/.ssh directory or your ~/.ssh/authorized_keys file. Your ~/.ssh directory should be chmod'd to 700 and your authorized_keys file should be chmod'd to 644 at the very least. If you check your /var/log/secure log file, it should give you some hint as to the reason it's failing.


5

Thanks, Your update was the resolution - for anyone else out there, there is a recipe #3 against Win32 error 1062 at Cygwin startup: 1) Check the Application Event log, see if there are "Information"-level events there with something like: "sshd: PID : Possible duplicate cygwin1.dll:" Find that silly duplicate at the specified location and rename it or get ...


4

If you have instructions on how to install to Windows natively, you should follow native instructions. Cygwin is really a way to graft particular functionality to the Windows platform because it's not natively supported. It might be kind silly to take a UNIX-based application, graft it to an abstraction layer on Windows, and put up with (potential) ...


4

In general you want to avoid having excess services installed on servers. Given the sensitive job of Active Directory domain controller computers (storing user credentials and performing authentication) you should be even more concerned about them than, say, a file server. Having said that, though, a server computer with no software installed would be ...


4

AFAIK, you first command is not functionnal. You are trying to pipe the output of /dev/zero into a command that takes no input. cat /dev/null is just a command that outputs nothing. Piping anything something in it will therefore do nothing at all. When you use the stdout redirect, the output of /dev/zero gets written to the file in question (/dev/null ...


4

I note that that my current install is under 250MB, It would have to be four times that size before I started to care about it on my laptop. But, if you have needs to get it smaller... Download the installer. Save it to to c:\cygwin\setup.exe. Run the installer. Unselecting as many of the packages as you can. Noting, that if you select a package that has ...


3

This is probably a X64 server. And the rwinsta.exe exist only in the real system32 folder. ssh service on the server is x32 process. So it is redirected to syswow64 directory when it asks for the system32 directory. And this directory doesn't have the rwinsta.exe You can find fix/Workaround in this article.


3

After way too much time spent stumbling around, I've finally discovered the cause of my problem. In short, I was getting "Permission denied" for my non-administrator users because on a DC, the Users group does not have the "Allow logon locally" user right. When sshd tried to switch context from the sshd service's account to a non-privileged user, the ...


3

Cygwin has its own symlink file format because native Windows symlinks don't have the right POSIX semantics. Worse, only administrators are allowed to create them. If you do have administrator rights, cmd /c mklink can give you access to cmd.exe's builtin mklink command from a Cygwin session. Combine with cygpath to add POSIX path support, e.g.: mklink() { ...


3

Don't set the display on the remote side. By using the -Y parameter on SSH, it will set up a listener on the (remote)local side that gets tunneled back to the local side. You should be able to do this: local$ ssh -Y user@remote remote$ xlogo ...and the xlogo will pop up. Edit: this assumes that the display is set up on the local system first, ie: ...


3

/*meta note- I hate that comments are so short */ I'd mostly agree with andrews answer with a couple of comments. I've replaced many unix systems with SUA/SFU (no they are not the same but close) under windows. performance- SUA is much faster than services for unix but SFU was no slouch either, both are usually faster than cygwin (but not always) ...


3

I you have installed Cygwin with its own installer, you should already have a /home/ directory, which acts the very same as a *NIX home directory. If you installed SSH server without the Cygwin installer, your home directory should be your Windows home, which usually is C:\Users\. The .ssh/ directory should be right under the home directory, just like for ...


3

OK, that other Serverfault.com answer has a typo. The right thing you want to run is: eval `ssh-agent` ssh-agent spits out a bunch of shell statements to set environmental variables. The eval runs them in the current shell. You can invoke ssh-agent that way, or run ssh-agent and then copy-paste its output into your current shell for the same effect.


3

There was a similar message on the Cygwin mailing list on July 31, 2012. The solution quoted there is: I've just applied a patch to fix this problem. It seems this is a long standing bug which could result in random stack corruption after changing or adding any file to /etc. I'm just generating a developer snapshot. Please test the today's ...



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