Changes between Version 9 and Version 10 of TracOnUbuntu
- Timestamp:
- Apr 6, 2005, 12:47:15 AM (19 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracOnUbuntu
v9 v10 39 39 '''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? 40 40 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 ---- 42 NOTE: 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 45 Configure 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): 42 46 {{{ 43 47 NameVirtualHost * … … 93 97 ScriptAlias /cgi-bin/ /usr/share/trac/cgi-bin/ 94 98 <Location "/cgi-bin/trac.cgi"> 95 SetEnv TRAC_ENV "/var/trac/ project"99 SetEnv TRAC_ENV "/var/trac/YourProjectNameHere" 96 100 </Location> 97 101 … … 106 110 <Location "/cgi-bin/trac.cgi/login"> 107 111 AuthType Basic 108 AuthName " NIM"112 AuthName "YourProjectNameHere" 109 113 AuthUserFile /var/www/trac.htpasswd 110 114 Require valid-user … … 122 126 }}} 123 127 124 I installed my Subversion repository at '''/var/svn/ project'''. So I did a quick starting config of subversion with the following commands:128 I installed my Subversion repository at '''/var/svn/YourProjectNameHere'''. So I did a quick starting config of subversion with the following commands: 125 129 {{{ 126 130 sudo mkdir /var/svn 127 sudo mkdir /var/svn/ project131 sudo mkdir /var/svn/YourProjectNameHere 128 132 sudo mkdir /tmp/project 129 133 sudo mkdir /tmp/project/branches 130 134 sudo mkdir /tmp/project/tags 131 135 sudo mkdir /tmp/project/trunk 132 sudo svnadmin create /var/svn/ project133 sudo svn import /tmp/ project file:///var/svn/project-m "initial import"134 sudo rm -rf /tmp/ project136 sudo svnadmin create /var/svn/YourProjectNameHere 137 sudo svn import /tmp/YourProjectNameHere file:///var/svn/YourProjectNameHere -m "initial import" 138 sudo rm -rf /tmp/YourProjectNameHere 135 139 }}} 136 140 137 141 Some permissions changes and an apache restart are now needed: 138 142 {{{ 139 sudo chown -R www-data /var/svn/ project143 sudo chown -R www-data /var/svn/YourProjectNameHere 140 144 sudo chown -R www-data /usr/share/trac 141 145 sudo apache2 -k restart 142 146 }}} 143 147 144 Test by web-browsing to '''!http://servername/svn/ project'''148 Test by web-browsing to '''!http://servername/svn/YourProjectNameHere''' 145 149 146 150 If you see a simple web page which says '''Revision 1: /''' and lists ''branches'', ''tags'', and ''trunk'', your Subversion install is up and running! … … 148 152 Now let's finish the Trac install (but don't go on to Trac install until you have the above working properly). 149 153 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:154 I 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: 151 155 {{{ 152 156 sudo mkdir /var/trac 153 sudo trac-admin /var/trac/ projectinitenv154 sudo chown -R www-data /var/trac/ project157 sudo trac-admin /var/trac/YourProjectNameHere initenv 158 sudo chown -R www-data /var/trac/YourProjectNameHere 155 159 }}} 156 160 The "trac-admin" command above prompted me to enter: 157 161 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'') 160 164 * the path to the Trac templates directory (''usr/share/trac/templates'') 161 165