codename::boilingbit www.boilingbit.com/blogen

12Jan/120

Install Trac on Ubuntu

Install:

1
2
sudo apt-get install python python-babel
sudo apt-get install trac

Add this line if need git support

1
sudo apt-get install trac-git

Create a test project:

1
2
cd /path/to/projects
trac-admin project initenv

A project sub folder is created, and will ask you for project title and database to use, the default sqlite is OK. Config file is located at conf/trac.ini

Start server:

1
tracd --port 8000 /path/to/projects/project

Browse http://localhost:8000 and you can see the project list, but only one project.

Exit server:

1
ctrl-c

To support multiple projects:

1
tracd -p 8080 -e /path/to/projects

List permission:

1
trac-admin project permission list

Add an admin user "username111"

1
trac-admin project permission add username111 TRAC_ADMIN

Generate password:If you have apache installed, you can use digest authorization for security.

1
htdigest -c users.htdigest boilingbit.com username111

Start server:

1
tracd -p 8080 --auth="*,/path/to/users.htdigest,boilingbit.com" -e /path/to/projects/project

Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

(required)

No trackbacks yet.