Skip to content
albinpoignot edited this page Jul 19, 2011 · 9 revisions

TracDeploy give an easy to deploy Trac without a graphical user interface, on Linux systems. It's created for Gentoo based systems, and actually being tested on a Sabayon (v6).

#Dependencies

###Special case : Sabayon system If you're running under a Sabayon system, you can use the "Verify the installation of the packages" action. This script initialize correctly all your environment. Actually, it installs all the dependencies correctly then configure the several environments.

To understand what is done, please take a look on the part "Manual install".

###Special case : Gentoo system For Gentoo systems, a script is created. But you have to modify a file to be able to use it. Edit the file : MANAGE_TRAC.sh

Then replace the line : source INIT_packages_installation_sabayon.sh by the line : source INIT_packages_installation.sh

After this step, you can use the "Verify the installation of the packages" action.

###Manual install Trac have "a lot" of dependencies. You can read below the packets to install. Please respects the order of the steps. If a package is already installed, you obviously can skip it except if it's not the latest version or if a flag is different.

  1. Update your repositories
  2. Install Python
  3. Install Apache, and include mod_python, mod_authz, mod_authz_svn, WebDAV. The process to install the modules are dependent of your system. I can't really help you on this step...
  4. Install Subversion (and its dependencies), with the "apache2" flag enabled
  5. Install Genshi
  6. Install SQLite and SQLite for Python (package pysqlite on Gentoo)
  7. Install Babel
  8. Install Trac
  9. Activate mod_python, mod_authz, mod_authz_svn and WebDAV in Apache. This step depends of your system, I can't really help you either...
  10. Declare your computer in /etc/hosts. Add this line : 127.0.0.1 <name_of_your_machine>
  11. Declare your computer in /etc/apache2/httpd.conf. Add this line : ServerName <name_of_your_machine>
  12. Start/restart Apache

After all this steps, your system should be ready for a fresh install of a Trac environment. Actually, I test this process only on Gentoo and Sabayon (a Gentoo based distro) systems. Please keep me informed if there is an error or if you find a better way to do it.

#Installation It's not really an installation... Just copy all the scripts in the same directory and give execution permissions to the root user (or more if you want to).

#Usage YOU SHOULD NOT CALL EACH SCRIPT INDEPENDENTLY.

The scripts should be run as root.

Use this command (as root):

./MANAGE_TRAC.sh [<trac_path> [<svn_path>]]

You can put a path to Trac and to SVN even if the environments are not created for now (for example, when you'll want to launch the initialization of a Trac anvironment).

Clone this wiki locally