TracをUbuntuにインストールしたときのメモ

まず最初に、参考にしたURLを。

http://trac.edgewall.org/wiki/TracOnUbuntu

それでは、実際の作業を。


初期設定では、apt-getでtracのパッケージが見つからなかったので、
/etc/apt/sources.listにあるリポジトリのコメントを外して

>sudo apt-get update	# ←リストの再読み込み
>sudo apt-get install trac	# ←tracのインストール

tracをインストール。


次に、これをインストール。

>sudo apt-get install libapache2-svn


次にtracの管理ツールtrac-adminコマンドでプロジェクトごとにTracの環境をセットアップする。
プロジェクトのホームディレクトリにするディレクトリに移動し、

> trac-admin . initenv

を実行すると、続く質問が表示されるので適当に入力

Creating a new Trac environment at /home/develop/trac/test_project

Trac will first ask a few questions about your environment 
in order to initalize and prepare the project database.

 Please enter the name of your project.
 This name will be used in page titles and descriptions.

Project Name [My Project]> My Test Project

 Please specify the connection string for the database to use.
 By default, a local SQLite database is created in the environment 
 directory. It is also possible to use an already existing 
 PostgreSQL database (check the Trac documentation for the exact 
 connection string syntax).

Database connection string [sqlite:db/trac.db]> 

 Please specify the type of version control system,
 By default, it will be svn.

 If you don't want to use Trac with version control integration, 
 choose the default here and don't specify a repository directory. 
 in the next question.

Repository type [svn]> 

 Please specify the absolute path to the version control 
 repository, or leave it blank to use Trac without a repository.
 You can also set the repository location later.

Path to repository [/path/to/repos]> /home/develop/svn-repos    

 Please enter location of Trac page templates.
 Default is the location of the site-wide templates installed with Trac.

Templates directory [/usr/share/trac/templates]> 
                         :
                 各種初期設定が始まる(略)
                         :

                                                                                                                                        • -
Project environment for 'My Test Project' created. You may now configure the environment by editing the file: /home/develop/trac/test_project/conf/trac.ini If you'd like to take this new project environment for a test drive, try running the Trac standalone web server `tracd`: tracd --port 8000 /home/develop/trac/test_project Then point your browser to http://localhost:8000/test_project. There you can also browse the documentation for your installed version of Trac, including information on further setup (such as deploying Trac to a real web server). The latest documentation can also always be found on the project website: http://trac.edgewall.org/ Congratulations!

ということで、以上でインストール終了