アーカイブファイルをダウンロードし、展開。
$ wget http://www.tdiary.org/download/tdiary-full-2.0.2.tar.gz $ tar xvfz tdiary-full-2.0.2.tar.gz $ ln -s tdiary-2.0.2 blog $ cd blog
tDiary のデータを保存するディレクトリを作成。
$ mkdir -p ~/tDiary $ chmod 707 ~/tDiary
~/tDiary/.htpasswd ファイルを作成。
$ htpasswd -c ~/tDiary/.htpasswd revulo $ chmod 604 ~/tDiary/.htpasswd
dot.htaccess を .htaccess にコピー。
$ cp -p dot.htaccess .htaccess
.htaccess の <Files update.rb> セクションの設定を以下のように変更。
<Files update.rb> AuthName tDiary AuthType Basic AuthUserFile /home/revulo/tDiary/.htpasswd Require user revulo </Files>
mod_ruby 環境で動かす場合は、.htaccess の以下の行をコメントアウト。
AddHandler cgi-script .rb
tdiary.conf.sample を tdiary.conf にコピー。
$ cp -p tdiary.conf.sample tdiary.conf
tdiary.conf の設定を以下のように変更。
@data_path = '/home/revulo/tDiary'
wiki_parser.rb と wiki_style.rb を tdiary ディレクトリにコピー。
$ cp -p misc/style/wiki/wiki*.rb tdiary/
tdiary.conf の設定を以下のように変更。
@style = 'Wiki'