linux
read only bind mount

bind mount を -o ro を使って read only で mount しようとして、read only にできない。read only にするには、-o remount, ro と、remount 時に r [...]

Read More
Posted on 23rd 3月 2010No Comments
debian で cert の update 方法

cert を追加するには 「dpkg-reconfigure ca-certificates」

Read More
Posted on 25th 1月 2010No Comments
コンテナ内でapacheの起動

コンテナ内でapacheを起動して、”libgcc_s.so.1 must be installed for pthread_cancel to work” というエラーが [...]

Read More
Posted on 2nd 11月 2009No Comments
debianでrubygemsのupdate

debianでrubygemsをupdateするには、rubygems-update gemをインストールして、/var/lib/gems/1.8/bin/update_rubygemsを実行する。

Read More
Posted on 16th 5月 2009No Comments
debian/lenny で最新VirtualBox-ose を使う

debian/lenny には VirtualBox のOSE版パッケージがあるがバージョンが古い。新しいバージョンが debian backports にあるのでそれをインストール。インストール後、virtualbox [...]

Read More
Posted on 8th 5月 2009No Comments
ssh2でホストベース認証

sshのホストベース認証を利用する為には、サーバとクライアントの両方でホストベース認証(HostbasedAuthentication)をyesにし、互いのホストキーを /etc/ssh/ssh_known_hosts2 [...]

Read More
Posted on 20th 4月 2009No Comments
gnome-keyring-daemon 起動方法

gnome 環境以外で、gnome-keyring-daemonを起動するには、.xinitrc や .xsession などに、以下の行を追加しておく。
eval “`gnome-keyring-daemo [...]

Read More
Posted on 14th 4月 2009No Comments
git-push でリモートディレクトリの update

gitでリモートリポジトリを更新する為には、git pushを行う。この時、リモート上のローカルコピーはupdateされない。update後に起動されるhookにこのスクリプトを利用することで、updateできるようにな [...]

Read More
Posted on 23rd 2月 2009No Comments
etchで最新rubygems

とりあえず、sidのrubygems1.8_1.2.0-3_all.debそのまま入った。

Read More
Posted on 21st 1月 2009No Comments