Hot answers tagged

34

From cygwin prompt, do: $ wget http://peak.telecommunity.com/dist/ez_setup.py $ python ez_setup.py This will install easy_install on your cygwin. Easy as py.


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


20

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


19

I haven't used cygwin in some time, but I'm guessing that it wants ~/.bash_profile. Simple fix to test. ln -s ~/.bashrc ~/.bash_profile Or if ~/.bash_profile exists, source .bashrc. if [ -f ~/.bashrc ] then . ~/.bashrc fi


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


15

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.


15

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)


13

This question was already asked here. Answer: wget http://apt-cyg.googlecode.com/svn/trunk/apt-cyg chmod +x apt-cyg mv apt-cyg /usr/local/bin/ apt-cyg install bc


10

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!


9

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


9

You could check with "strace" and see what it is not doing. strace ssh -v hostname


9

xfer:clobber is the setting in lftp that decides whether or not to allow mget to replace files. Add set xfer:clobber on to your lftp script so that it's set, then the mget command should replace the file.


8

easy_install is part of the setuptools package. This package is provided by cygwin. To install it, rerun the cygwin setup[...].exe installer, and at the package selection step, tick "Python/python-setuptools". The easy_install script has the version number attached. Instead of running easy_install, run easy_install-2.7 or easy_install-3.4 (or whatever x.y ...


8

If you don't care about checking the validity of the certificate just add the --no-check-certificate option on the wget command-line.


7

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


7

Have a look at /etc/passwd. Make sure the entry there matches your expected home directory. It's the second to last field for your user's entry.


7

Just invoke powershell with the relevant arguments and pipe it to wherever you want it? You need to make sure it's in the PATH of course.


7

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


7

It appears to be related to my Active Directory username or group memberships. The error went away after running the following command as per this article: mkpasswd -l -c > /etc/passwd; mkgroup -l -d > /etc/group This updates the cygwin files with the latest AD user/group information.


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


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

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


6

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

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


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

There's no need to run Squid in Cygwin; Guido Serassio maintains binary installers for Windows, invlufi. Try using one of those instead; it has the same exact interface as the Linux versions.


5

Have you tried checking WMI for accurate values? You can query common aliases through the wmic command: C:\>wmic partition get name,bootable,size,type C:\>wmic diskdrive get size,status,TotalCylinders,TotalSectors,SCSIPort,SCSITargetId,model


5

Barry Kelly is right. You need to use my wrapper software that creates hidden console and runs powershell on it. My page is here: http://sergeybelous.com/shell-terminal/#proxywinconsole.exe Someone already found my wrapper software and created tutorial here: http://ssh-with-powershell.blogspot.com/2013/07/enable-ssh-with-powershell-and-remove.html



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