From Alessandro's Wiki
Jump to navigation Jump to search



  • conf/trac.ini
versioncontrol.api.repositorymanager = enabled
versioncontrol.svn_authz.svnauthzoptions = enabled
versioncontrol.svn_fs.subversionconnector = enabled
versioncontrol.svn_prop.subversionmergepropertydiffrenderer = enabled
versioncontrol.svn_prop.subversionmergepropertyrenderer = enabled
versioncontrol.svn_prop.subversionpropertyrenderer = enabled


trac-admin <projenv> repository resync <reponame>
trac-admin /var/lib/trac/videoteca repository resync \(default\)
elwood # trac-admin /var/lib/trac/videoteca repository list
Name       Type  Alias  Directory                       
(default)               /home/xunil/subversion/videoteca

User management

trac.web.auth.LoginModule = disabled
acct_mgr.web_ui.LoginModule = enabled
acct_mgr.web_ui.RegistrationModule = disabled 


  • example: set permissions for the ScreenShot plugin
trac-admin <path_to_environment> permission add <user> SCREENSHOTS_ADMIN
trac-admin <path_to_environment> permission add <user> SCREENSHOTS_ADD
trac-admin <path_to_environment> permission add <user> SCREENSHOTS_DELETE
trac-admin <path_to_environment> permission add <user> SCREENSHOTS_FILTER
trac-admin <path_to_environment> permission add <user> SCREENSHOTS_ORDER
trac-admin <path_to_environment> permission add <user> SCREENSHOTS_VIEW

environment install

  • install the software: (original documentation) [1]

most of Linux distribuions have the Trac package available on their repositories of software.


emerge trac


yum install trac

generic (using python installer utility)

easy_install Trac

  • create the trac instance, means you'll have to do this for every "website" you're going to install
trac-admin /var/lib/trac/<project> initenv
  • check the configuration file if you want


  • with easy_install
easy_install --upgrade Trac
trac-admin /var/lib/trac/videoteca upgrade
trac-admin /var/lib/trac/videoteca wiki upgrade
trac-admin /var/lib/trac/youngrock upgrade
trac-admin /var/lib/trac/youngrock wiki upgrade
  • restart apache !!
/etc/init.d/apache2 restart


ValueError: year is out of range trac upgrade

  • /var/lib/trac/youngrock
trac-admin /var/lib/trac/youngrock wiki upgrade
sqlite3 db/trac.db "UPDATE wiki SET time = time / 1000000 WHERE time > 20000000000;"

Missing "youngest_rev" in cache metadata

TracScreenshots not loading

  • errror message
File "/usr/lib64/python2.7/site-packages/TracScreenshots-0.7-py2.7.egg/tracscreenshots/", line 8, in <module>
    from PIL import Image, ImageOps
ImportError: No module named PIL
  • SOLVED installing dev-python/imaging