Trac (2)

ひきつづきTracのパケジ作成にトライ中。

  • SilverCity(0.9.7)
  • Trac(0.10.4)

…あれ、あっさりできちゃったよ?w
とりあえずインストールしてみる。

# apt-get install trac

昨日から作っているパケジに加えて、python-pyxml、subversion-pythonSWIGバインディング)などがインストールされる。
じゃあさっそくスタンドアローンでいってみますか?

$ trac-admin /path/to/test initenv

質問にうにゃうにゃと答える。Congratulations!と言われたので、スタンドアロンサーバを起こしてみる。

$ tracd --port 8000 /path/to/test

Firefoxhttp://localhost:8000/にアクセス。
おお!ちゃんとTrac来てるよ!レポジトリも見れるよ!やったよ母さん!
つぎはmod_pythonだな。めんどくさそうだな…。

認証

スタンドアロンでログインを機能させるにはApache添付のhtdigestコマンドでパスワードファイルを作る必要があるらしい。

$ htdigest2 -c test.htdigest localhost hoge
Adding password for hoge in realm localhost.
New password:
Re-type new password:

で、パスワードファイルを指定した上でtracdを起こす。

$tracd --port 8000 --auth test,/path/to/test.htdigest,localhost /path/to/test

で、ブラウザから「ログイン」をクリックして、ダイジェスト認証でログインできるようになる。めでたしめでたし。