Window Vista Cygwin Setup
- http://eto.com/d/CygwinSetup.html
- 互換モードでsetupする
Your group is currently "mkgroup". This indicates that the /etc/group (and possibly /etc/passwd) files should be rebuilt. See the man pages for mkpasswd and mkgroup then, for example, run mkpasswd -l [-d] > /etc/passwd mkgroup -l [-d] > /etc/group Note that the -d switch is necessary for domain users.
- このようなエラーがでる
$ cd /etc $ mkgroup -l > /etc/group $ cat group
■install 二回目
| Admin | cygrunsrv shutdown |
| Archive | unzip zip |
| Devel | cvs make subversion subversion-ruby |
| Editors | emacs vim |
| Interpreters | ruby |
| Net | openssh ping rsync |
| Shells | tcsh |
| Web | wget |
■起動
- desktop上のCygwinをダブルクリックして起動
- コマンドプロンプトと同様にpropertyを設定
% cygcheck -c -d | wc
93 187 2769 →以前
83 167 2476 →今回- ちょうどいい感じ
失敗
$ cygcheck -c -d | wc
182 365 5496- なにか大幅に間違ったみたい →うっかりどこかをまるごとinstallしてしまったようだ
■設定ファイルをいれる
% cd; svn checkout svn+ssh://eto at eto.com//repos/eto/usr % ./usr/bin/make-conf-link.sh % tcsh
■起動shell変更
- c:\cygwin\cygwin.bat
@echo off C: chdir C:\cygwin\bin rem bash --login -i tcsh
■login shell変更
% vi /etc/passwd 7G$8hC/usr/bin/tcsh ESC ZZ
■sshサーバ
kro% cd /etc; ssh-host-config
Generating /etc/ssh_host_key
Generating /etc/ssh_host_rsa_key
Generating /etc/ssh_host_dsa_key
Generating /etc/ssh_config file
Privilege separation is set to yes by default since OpenSSH 3.3.
However, this requires a non-privileged account called 'sshd'.
For more info on privilege separation read /usr/share/doc/openssh/README.privsep
.
Should privilege separation be used? (yes/no) yes
Warning: The following function requires administrator privileges!
Should this script create a local user 'sshd' on this machine? (yes/no) yes
Warning: Creating the user 'sshd' failed!
Warning: Can't create user 'sshd' in /etc/passwd!
Privilege separation set to 'no' again!
Check your /etc/sshd_config file!
Generating /etc/sshd_config file
mount: /ssh-host-config.3512: Permission denied
grep: /ssh-host-config.3512/services: No such file or directory
grep: /ssh-host-config.3512/services: No such file or directory
/usr/bin/ssh-host-config: line 367: /ssh-host-config.3512/services: No such file
or directory
WARNING: Adding ssh to C:\cygwin\ssh-host-config.3512\services failed!
umount: /ssh-host-config.3512: Permission denied
Warning: The following functions require administrator privileges!
Do you want to install sshd as service?
(Say "no" if it's already installed as service) (yes/no) yes
You appear to be running Windows 2003 Server or later. On 2003 and
later systems, it's not possible to use the LocalSystem account
if sshd should allow passwordless logon (e. g. public key authentication).
If you want to enable that functionality, it's required to create a new
account 'sshd_server' with special privileges, which is then used to run
the sshd service under.
Should this script create a new local account 'sshd_server' which has
the required privileges? (yes/no) yes
Please enter a password for new user 'sshd_server'. Please be sure that
this password matches the password rules given on your system.
Entering no password will exit the configuration. PASSWORD=
Creating the user 'sshd_server' failed! Reason:
システム エラー 5 が発生しました。
アクセスが拒否されました。
- だめじゃ.あきらめた.
■やっぱりsshとsvnで謎のエラーがでる
$ cd; svn checkout svn+ssh://eto@eto.com//repos/eto/usr
3 [main] svn 252 child_copy: linked dll data write copy failed, 0x25D000..
0x25D150, done 0, windows pid 2278436, Win32 error 487
svn: Can't create tunnel: Resource temporarily unavailable
$ svn checkout svn+ssh://eto@eto.com//repos/eto/usr
Are you sure you want to continue connecting (yes/no)? yes
Password:
Password:
4 [main] svn 1964 child_copy: linked dll data write copy failed, 0x367000.
.0x3670B0, done 0, windows pid 2278660, Win32 error 487
svn: Can't create tunnel: Resource temporarily unavailable
$ svn checkout svn+ssh://eto@eto.com//repos/eto/usr
4 [main] svn 1200 child_copy: linked dll data write copy failed, 0x367000.
.0x3670B0, done 0, windows pid 2278436, Win32 error 487
svn: Can't create tunnel: Resource temporarily unavailable
- 何回かやるとうまくいく.謎じゃ.
Last modified: 2006-12-03