2010-11-09 [長年日記]
_ さくらVPSを使い始めました (4) - /etc/apache2をめんどくさいので丸ごとgitで管理
セキュリティとか適当です。
$mkdir -p /export/git/local $cd /export/git/local $git init $mkdir -p ~/workspace/git_local/apache2 $cp -a /etc/apache2 ~/workspace/git_local/apache2 $cd ~/workspace/git_local/ $git add . $git commit -m 'tenuki manage' $sudo mv /etc/apache2 /etc/.apache2 $cd /etc $sudo ln -s ~/workspace/git_local/apache2 . $sudo service apache2 restart
_ さくらVPSを使い始めました (5) - rvmを使う
Route 477 - RVMでUbuntu 10.10上にRuby環境を構築する を参考にしました。
特に困ることはありませんでした。
$rvm list rvm rubies => ruby-1.9.2-p0 [ i386 ] ruby-1.8.7-p302 [ i386 ]
_ さくらVPSを使い始めました (6) - いろいろclone/coする
とりあえず、tDiary関連を。
$mkdir ~/workspace $mkdir svn_coderepos $mv svn_coderepos $svn co http://svn.coderepos.org/share/platform/tdiary/ tdiary_contrib $mkdir ~/workspace/github $cd ~/workspace/github $git clone git://github.com/tamoot/tdiary-core $git clone https://github.com/tdiary/tdiary-theme-nonfree.git $git clone https://github.com/tdiary/tdiary-theme.git
githubへssh接続する設定
@tdtdsさんの日記 Permission denied (publickey).」と言われてGitHubが使えなくなった場合の対処法 を参考にしました。
$cat ~/.ssh/config Host github.com User git Port 22 IdentityFile ~/.ssh/id_rsa_github $ssh git@github.com Enter passphrase for key '~/.ssh/id_rsa_github': PTY allocation request failed on channel 0 ERROR: Hi tamoot! You've successfully authenticated, but GitHub does not provide shell access Connection to github.com closed.
ちゃんと設定できました。/etc/services の sshポートを変更していたので、わざわざ .ssh/config の設定が必要になりました。
参考
_ きょうのつぶやき : 29回
[ツッコミを入れる]