Edgewall Software

Changes between Version 9 and Version 10 of TracOnUbuntu


Ignore:
Timestamp:
Apr 6, 2005, 12:47:15 AM (19 years ago)
Author:
bryan@…
Comment:

minor edits

Legend:

Unmodified
Added
Removed
Modified
  • TracOnUbuntu

    v9 v10  
    3939'''NOTE:''' You should also do an '''apt-get install python''' before installing '''trac'''.  Apparently, apt-get failed to install python properly and cause some errors on in the later commands.  The only caveat here is that '''apt-get install python''' will uninstall '''gde''' so beware!!!  Do an '''apt-get install gde''' to restore the desktop... if you installed the desktop, that is. Also, take a look near the end of this file for how the original author solved the python issue without doing this. Could be that python changed in the Hoary repository?
    4040
    41 Configure Apache for DAV (svn needs it) by editing '''/etc/apache2/sites-available/default'''. When you're done the file will look like this (I think my changes are pretty obvious - they are preceded by the comment lines IN ALL CAPS):
     41----
     42NOTE: Throughout the rest of this text I use '''YourProjectNameHere''' as the project name. Clearly, you'll want to replace this with a name for your own project!
     43----
     44
     45Configure Apache for by editing '''/etc/apache2/sites-available/default'''. When you're done the file will look like this (I think my changes are pretty obvious - they are preceded by the comment lines IN ALL CAPS):
    4246{{{
    4347NameVirtualHost *
     
    9397ScriptAlias /cgi-bin/ /usr/share/trac/cgi-bin/
    9498<Location "/cgi-bin/trac.cgi">
    95  SetEnv TRAC_ENV "/var/trac/project"
     99 SetEnv TRAC_ENV "/var/trac/YourProjectNameHere"
    96100</Location>
    97101
     
    106110<Location "/cgi-bin/trac.cgi/login">
    107111  AuthType Basic
    108   AuthName "NIM"
     112  AuthName "YourProjectNameHere"
    109113  AuthUserFile /var/www/trac.htpasswd
    110114  Require valid-user
     
    122126}}}
    123127
    124 I installed my Subversion repository at '''/var/svn/project'''. So I did a quick starting config of subversion with the following commands:
     128I installed my Subversion repository at '''/var/svn/YourProjectNameHere'''. So I did a quick starting config of subversion with the following commands:
    125129{{{
    126130sudo mkdir /var/svn
    127 sudo mkdir /var/svn/project
     131sudo mkdir /var/svn/YourProjectNameHere
    128132sudo mkdir /tmp/project
    129133sudo mkdir /tmp/project/branches
    130134sudo mkdir /tmp/project/tags
    131135sudo mkdir /tmp/project/trunk
    132 sudo svnadmin create /var/svn/project
    133 sudo svn import /tmp/project file:///var/svn/project -m "initial import"
    134 sudo rm -rf /tmp/project
     136sudo svnadmin create /var/svn/YourProjectNameHere
     137sudo svn import /tmp/YourProjectNameHere file:///var/svn/YourProjectNameHere -m "initial import"
     138sudo rm -rf /tmp/YourProjectNameHere
    135139}}}
    136140
    137141Some permissions changes and an apache restart are now needed:
    138142{{{
    139 sudo chown -R www-data /var/svn/project
     143sudo chown -R www-data /var/svn/YourProjectNameHere
    140144sudo chown -R www-data /usr/share/trac
    141145sudo apache2 -k restart
    142146}}}
    143147
    144 Test by web-browsing to '''!http://servername/svn/project'''
     148Test by web-browsing to '''!http://servername/svn/YourProjectNameHere'''
    145149
    146150If you see a simple web page which says '''Revision 1: /''' and lists ''branches'', ''tags'', and ''trunk'', your Subversion install is up and running!
     
    148152Now let's finish the Trac install (but don't go on to Trac install until you have the above working properly).
    149153
    150 I put my trac environment at /var/trac/project. Of course you could use any other path or name - something a little more descriptive of ''your'' project would probably be a good idea. First I ran these commands:
     154I put my trac environment at /var/trac/YourProjectNameHere. Of course you could use any other path or name - something a little more descriptive of ''your'' project would probably be a good idea. First I ran these commands:
    151155{{{
    152156sudo mkdir /var/trac
    153 sudo trac-admin /var/trac/project initenv
    154 sudo chown -R www-data /var/trac/project
     157sudo trac-admin /var/trac/YourProjectNameHere initenv
     158sudo chown -R www-data /var/trac/YourProjectNameHere
    155159}}}
    156160The "trac-admin" command above prompted me to enter:
    157161
    158  * the project name (''project'')
    159  * the path to svn repository (''var/svn/project'')
     162 * the project name (''YourProjectNameHere'')
     163 * the path to svn repository (''var/svn/YourProjectNameHere'')
    160164 * the path to the Trac templates directory (''usr/share/trac/templates'')
    161165