trac

Interface customization

Adjust the look and feel of the Trac interface.

Official Trac Wiki Page

Project logo
Save the logo graphic in /var/trac/projectname/htdocs/my_logo.gif. Change the src setting to site/ followed by the name of your image file. The width and height settings should be modified to match your image's dimensions (the Trac chrome handler uses "site/" for files within the project directory htdocs and "common/" for the common ones). Edit /var/trac/projectname/conf/trac.ini:

[header_logo]

Technology:

Trac Customization

Various ways to customize your Trac server

Some of these are no longer necessary with version 0.11.5, such as adding "components" to the ticket system as the WebAdmin plugin is now included.

Wiki page for trac.ini

Technology:

Disable Subversion Component

Use Trac as just an issue-track and Wiki by disabling the SVN component.

If you just want to use Trac as a Wiki and issue tracker, without any version control subsystem, you can disable it that part.

  1. When initializing a project's environment with trac-admin, don't enter anything for the repository directory (i.e. keep the default).
  2. Add the following to project/conf/trac.ini:
    [components]
    trac.versioncontrol.* = disabled

Technology:

Apache config

Configuration instructions for serving Trac with Apache.

TracModMython wiki page with detailed Apache instructions.

Prerequisites
Apache requires mod_python to be installed in order to run Trac.

Simple Configuration
Edit /usr/local/apache2/conf/httpd.conf and add the following to instruct Apache to redirect any URLs starting with "/trac/" to Trac:

SetHandler mod_python
PythonInterpreter main_interpreter

Technology:

Syntax Colouring

Trac supports language-specific syntax highlighting of source code in wiki formatted text and the repository browser.

Trac supports a number of external libraries for syntax highlighting.
Silvercity
SilverCity is a lexing package, based on Scintilla, that can provide lexical analysis for over 20 programming and markup langauges.
Download the latest version (0.9.7)

cd /extra/src
wget http://superb-west.dl.sourceforge.net/sourceforge/silvercity/SilverCity-0.9.7.tar.gz
tar zxvf SilverCity-0.9.7.tar.gz
cd SilverCity-0.9.7

Build and install it:

Technology:

MySQLdb

Instruction for installing Trac using MySQL instead of SQLite

Install MySQL per the instructions here.However, add --enable-thread-safe-client to the configure options.
Edit your ~/.bash_profile and add your MySQL binaries:

PATH="${PATH}:/usr/local/mysql/bin"

Then, install MySQLdb. First, download a copy of the latest version:

cd /extra/src
wget http://superb-east.dl.sourceforge.net/sourceforge/mysql-python/MySQL-python-1.2.2.tar.gz
tar zxvf MySQL-python-1.2.2.tar.gz
cd MySQL-python-1.2.2

Technology:

Trac

Trac provides an interface to Subversion, an integrated Wiki and convenient reporting facilities.

Prerequisites

  • Python development libraries

    yum install python-devel
  • setuptools
    Download EasyInstall and run it to install the appropriate setuptools egg for your Python version:

    cd /extra/src
    wget http://peak.telecommunity.com/dist/ez_setup.py
    python ez_setup.py

Technology:

Subscribe to RSS - trac

Recent Updates

  • 2 years 3 days ago
  • 2 years 3 days ago
  • 2 years 5 days ago
    php 8.x
  • 2 years 1 week ago
    10.6.7
  • 2 years 1 week ago
    Drop Centos 5/6 stuff