cygwin相关cygwin有了163的镜像http://mirrors.163.com/cygwin/装openssh,启动sshdssh-host-config -y把cy
cygwin相关
cygwin有了163的镜像http://mirrors.163.com/cygwin/
装openssh,启动sshd
ssh-host-config -y把cyg_server加administrators组net start sshd
以rsa登录
本地ssh-keygen -N "" -t rsa -f ~/.ssh/id_rsascp -q ~/.ssh/id_rsa.pub root@$target_host:/tmp/ssh root@$target_host "mkdir -p ~/.ssh; cat /tmp/id_rsa.pub >> ~/.ssh/authorized_keys"
screen切换
screen -RCTRL+A.D
选择 cygwin 还是 mingw :
使用更多的unix:cygwin
比如 sshd、faye、msgpack-rpc、unicorn
无缝调用windows程序:mingw
比如 nodejs
还有cygwin不支持,也没有win版的东西,只好在virtualbox里装linux了
比如 redis
访问C盘
ls /cygdrive/c
cygwin不支持mysql5.5,5.1可以,只装客户端,连出去(本地用-h127.0.0.1)。
http://stackoverflow.com/questions/2818416/cygwin-does-not-contain-mysql-h-how-can-i-get-it-in-cygwin
Can't locate Autom4te/ChannelDefs.pm in @INC
重装autoconf。
编译 yaml 报错:
日志
expected an absolute directory name for --prefix: 0
http://fd0.x0.to/cygwin/release/yaml/yaml-0.1.4-1bl1-src.tar.bz2
重装libtool,重新编译。
ruby扩展
ruby extconf.rb --with-libyaml-dir=/usr/local && make && make install
unable to remap to same address as parent; died waiting for dll loading:
http://ficial.wordpress.com/2011/07/06/cygwin-and-rails-unable-to-remap-to-same-address-as-parent-died-waiting-for-dll-loading-errno-11/
in a cygwin shell: find /bin /lib /usr -iname '*.so' > /tmp/to_rebase.lst
in a cygwin shell: find /bin /lib /usr -iname '*.dll' >> /tmp/to_rebase.lst
quit all cygwin shells and stop all cygwin processes
run as Administrator C:\cygwin\bin\ash.exe
/bin/rebaseall -T /tmp/to_rebase.lst
exit ash
restart machine
or
/bin/rebaseall -s 'dll|so|oct'