Installing Trac on Ubuntu

Here’s the condensed version, using the installation guide for help:

Install the software

sudo apt-get install python-setuptools python-subversion
sudo easy_install Trac

Initialize the Trac project

We’re going to run the standalone trac server just for simplicity. You don’t want it running as root (or yourself), but it needs at least read access to the subversion repository. Replace “projectname” with the name of your project.

sudo -u [some role user]
trac-admin ~/trac-projectname initenv

trac-admin will ask you some questions.

Run Trac

To prevent unwanted viewing or edits to your trac instance, enable apache digest authentication. First make an .htdigest file:

sudo apt-get install apache2-utils
sudo -u [some role user]
htdigest -c ~/.htdigest mycompany.com [admin username]

(to add more users later, omit the -c).

Then tell trac that the admin username is an admin:

trac-admin ~/trac-projectname permission add [admin username] TRAC_ADMIN

Then launch the standalone Trac instance (replace projectname and mycompany.com as appropriate):

sudo -u [some role user]
cd ~
tracd -s --port 8000 \
 --auth=trac-projectname,.htdigest,mycompany.com \
 ~/trac-projectname

If the server is only visible to a trusted network, you can skip the htpasswd command and the –auth line.
Use -s if you only have one subversion repository.

Related posts:

  1. Installing CrashPlan on Ubuntu 9.04 Server Edition
    Although rsnapshot is super for linux-to-linux backups, I’ve found CrashPlan to work very well as a backup solution for my family’s windows and mac boxes. The CrashPlan installation works pretty......
  2. OpenDNS updater for linux/ubuntu
    The OpenDNS service is great — it provides anti-phishing and the ability to filter out some of the less desirable detritus from the internets. OpenDNS needs to be periodically notified......
  3. Installing Phusion Passenger on Ruby 1.9.1, Nginx, & Ubuntu 10.04
    Getting ruby 1.9.1 and nginx and passenger and ubuntu to all play nicely is fairly straightforward, but it’s not just “apt-get” and “gem install” lovin’. Making ruby 1.9.1 the default......
  4. Installing VMware Player on Ubuntu Gutsy
    Please note that these instructions are for Ubuntu 7.10. Newer versions of Ubuntu can just follow the normal installation instructions at http://www.vmware.com/download/player/. So it turns out that the current release......

This entry was posted in Technical HOWTOs and tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

Additional comments powered by BackType