特殊:Badtitle/NS100:Trac:修订间差异
小 新页面: {{From|https://help.ubuntu.com/community/Trac}} {{Languages|UbuntuHelp:Trac}} Trac is an enhanced wiki and issue tracking system for software development projects. Trac uses a minimalisti... |
小无编辑摘要 |
||
第76行: | 第76行: | ||
or die "Unable to open root directory ($trac_path)"; | or die "Unable to open root directory ($trac_path)"; | ||
</nowiki></pre> | </nowiki></pre> | ||
You can now create new projectgs using trac-admin like described on [http://trac.edgewall.org/wiki/TracAdmin]. | You can now create new projectgs using trac-admin like described on [[http://trac.edgewall.org/wiki/TracAdmin]]. | ||
If you would like to use the latest version of Trac (right now 0.11), you can get the version from subversion using: | If you would like to use the latest version of Trac (right now 0.11), you can get the version from subversion using: | ||
<pre><nowiki> | <pre><nowiki> |
2008年10月19日 (日) 17:38的版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/Trac }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:Trac | UbuntuHelp:Trac | {{#if: | :}}Trac}}/af | • {{#if: UbuntuHelp:Trac|Afrikaans| [[::Trac/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Trac | UbuntuHelp:Trac | {{#if: | :}}Trac}}/ar | • {{#if: UbuntuHelp:Trac|العربية| [[::Trac/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Trac | UbuntuHelp:Trac | {{#if: | :}}Trac}}/az | • {{#if: UbuntuHelp:Trac|azərbaycanca| [[::Trac/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Trac | UbuntuHelp:Trac | {{#if: | :}}Trac}}/bcc | • {{#if: UbuntuHelp:Trac|جهلسری بلوچی| [[::Trac/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Trac | UbuntuHelp:Trac | {{#if: | :}}Trac}}/bg | • {{#if: UbuntuHelp:Trac|български| [[::Trac/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Trac | UbuntuHelp:Trac | {{#if: | :}}Trac}}/br | • {{#if: UbuntuHelp:Trac|brezhoneg| [[::Trac/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Trac | UbuntuHelp:Trac | {{#if: | :}}Trac}}/ca | • {{#if: UbuntuHelp:Trac|català| [[::Trac/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Trac | UbuntuHelp:Trac | {{#if: | :}}Trac}}/cs | • {{#if: UbuntuHelp:Trac|čeština| [[::Trac/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Trac | UbuntuHelp:Trac | {{#if: | :}}Trac}}/de | • {{#if: UbuntuHelp:Trac|Deutsch| [[::Trac/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Trac | UbuntuHelp:Trac | {{#if: | :}}Trac}}/el | • {{#if: UbuntuHelp:Trac|Ελληνικά| [[::Trac/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Trac | UbuntuHelp:Trac | {{#if: | :}}Trac}}/es | • {{#if: UbuntuHelp:Trac|español| [[::Trac/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Trac | UbuntuHelp:Trac | {{#if: | :}}Trac}}/fa | • {{#if: UbuntuHelp:Trac|فارسی| [[::Trac/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Trac | UbuntuHelp:Trac | {{#if: | :}}Trac}}/fi | • {{#if: UbuntuHelp:Trac|suomi| [[::Trac/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Trac | UbuntuHelp:Trac | {{#if: | :}}Trac}}/fr | • {{#if: UbuntuHelp:Trac|français| [[::Trac/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Trac | UbuntuHelp:Trac | {{#if: | :}}Trac}}/gu | • {{#if: UbuntuHelp:Trac|ગુજરાતી| [[::Trac/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Trac | UbuntuHelp:Trac | {{#if: | :}}Trac}}/he | • {{#if: UbuntuHelp:Trac|עברית| [[::Trac/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Trac | UbuntuHelp:Trac | {{#if: | :}}Trac}}/hu | • {{#if: UbuntuHelp:Trac|magyar| [[::Trac/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Trac | UbuntuHelp:Trac | {{#if: | :}}Trac}}/id | • {{#if: UbuntuHelp:Trac|Bahasa Indonesia| [[::Trac/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Trac | UbuntuHelp:Trac | {{#if: | :}}Trac}}/it | • {{#if: UbuntuHelp:Trac|italiano| [[::Trac/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Trac | UbuntuHelp:Trac | {{#if: | :}}Trac}}/ja | • {{#if: UbuntuHelp:Trac|日本語| [[::Trac/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Trac | UbuntuHelp:Trac | {{#if: | :}}Trac}}/ko | • {{#if: UbuntuHelp:Trac|한국어| [[::Trac/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Trac | UbuntuHelp:Trac | {{#if: | :}}Trac}}/ksh | • {{#if: UbuntuHelp:Trac|Ripoarisch| [[::Trac/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Trac | UbuntuHelp:Trac | {{#if: | :}}Trac}}/mr | • {{#if: UbuntuHelp:Trac|मराठी| [[::Trac/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Trac | UbuntuHelp:Trac | {{#if: | :}}Trac}}/ms | • {{#if: UbuntuHelp:Trac|Bahasa Melayu| [[::Trac/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Trac | UbuntuHelp:Trac | {{#if: | :}}Trac}}/nl | • {{#if: UbuntuHelp:Trac|Nederlands| [[::Trac/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Trac | UbuntuHelp:Trac | {{#if: | :}}Trac}}/no | • {{#if: UbuntuHelp:Trac|norsk| [[::Trac/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Trac | UbuntuHelp:Trac | {{#if: | :}}Trac}}/oc | • {{#if: UbuntuHelp:Trac|occitan| [[::Trac/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Trac | UbuntuHelp:Trac | {{#if: | :}}Trac}}/pl | • {{#if: UbuntuHelp:Trac|polski| [[::Trac/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Trac | UbuntuHelp:Trac | {{#if: | :}}Trac}}/pt | • {{#if: UbuntuHelp:Trac|português| [[::Trac/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Trac | UbuntuHelp:Trac | {{#if: | :}}Trac}}/ro | • {{#if: UbuntuHelp:Trac|română| [[::Trac/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Trac | UbuntuHelp:Trac | {{#if: | :}}Trac}}/ru | • {{#if: UbuntuHelp:Trac|русский| [[::Trac/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Trac | UbuntuHelp:Trac | {{#if: | :}}Trac}}/si | • {{#if: UbuntuHelp:Trac|සිංහල| [[::Trac/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Trac | UbuntuHelp:Trac | {{#if: | :}}Trac}}/sq | • {{#if: UbuntuHelp:Trac|shqip| [[::Trac/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Trac | UbuntuHelp:Trac | {{#if: | :}}Trac}}/sr | • {{#if: UbuntuHelp:Trac|српски / srpski| [[::Trac/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Trac | UbuntuHelp:Trac | {{#if: | :}}Trac}}/sv | • {{#if: UbuntuHelp:Trac|svenska| [[::Trac/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Trac | UbuntuHelp:Trac | {{#if: | :}}Trac}}/th | • {{#if: UbuntuHelp:Trac|ไทย| [[::Trac/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Trac | UbuntuHelp:Trac | {{#if: | :}}Trac}}/tr | • {{#if: UbuntuHelp:Trac|Türkçe| [[::Trac/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Trac | UbuntuHelp:Trac | {{#if: | :}}Trac}}/vi | • {{#if: UbuntuHelp:Trac|Tiếng Việt| [[::Trac/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Trac | UbuntuHelp:Trac | {{#if: | :}}Trac}}/yue | • {{#if: UbuntuHelp:Trac|粵語| [[::Trac/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Trac | UbuntuHelp:Trac | {{#if: | :}}Trac}}/zh | • {{#if: UbuntuHelp:Trac|中文| [[::Trac/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Trac | UbuntuHelp:Trac | {{#if: | :}}Trac}}/zh-hans | • {{#if: UbuntuHelp:Trac|中文(简体)| [[::Trac/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Trac | UbuntuHelp:Trac | {{#if: | :}}Trac}}/zh-hant | • {{#if: UbuntuHelp:Trac|中文(繁體)| [[::Trac/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:Trac|:Trac|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :Trac/zh | | {{#ifexist: Trac/zh | | {{#ifeq: {{#titleparts:Trac|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:Trac|1|-1|}} | zh | | }}
Trac is an enhanced wiki and issue tracking system for software development projects. Trac uses a minimalistic approach to web-based software project management. Our mission is to help developers write great software while staying out of the way. Trac should impose as little as possible on a team's established development process and policies.
Dependencies
For the installation of Trac we need Python, as well as Apache and Subversion. Therefor install apache2 and Subversion. Trac is programmed in Python and therefor a module for the usage of python in apache is required. Since Python 2.5 and apache play well together using the mod-python, we are going to use it for the following installation as well.
apt-get install libapache2-mod-python apt-get install python-setuptools
Installation
To install Trac, we can now just use the version in the repository by typing:
apt-get install trac
For the usage of multiple projects in trac, you can define the apahe-configuration file (/etc/apache2/conf.d/trac.conf) as follows:
# Trac static content Alias /trac "/usr/share/trac/htdocs" <Directory "/usr/share/trac/htdocs"> Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all </Directory> # Trac project directory (for project listing) <Directory "/var/www/projects"> AllowOverride None Options Indexes +ExecCGI MultiViews FollowSymLinks AddHandler cgi-script .cgi Order allow,deny Allow from all </Directory> # use the following for one authorization for all projects <LocationMatch "/projects/[[:alnum:]]+/login"> AuthType Basic AuthName "trac" AuthUserFile /etc/apache2/htpasswd Require valid-user </LocationMatch> <Location /projects> SetHandler mod_python PythonInterpreter main_interpreter PythonHandler trac.web.modpython_frontend PythonOption TracEnvParentDir /var/trac PythonOption TracUriRoot /projects </Location>
Furthermore, for a project listing, you need the following index.cgi in /var/www/projects: This is a perl script and therefor you need perl installed.
#!/usr/bin/perl use strict; my $trac_path = "/var/trac"; my $trac_location = "/projects"; my $projectAvailable = "false"; # Send header print "Content-Type: text/html\n\n"; # Send content print "<html>\n"; print " <head>\n"; print " <title>Project listing</title>\n"; print " </head>\n\n"; print " <body>\n"; print " <h1>Project listing</h1>\n"; print " <ul id=\"trac\">\n"; opendir(ROOT, $trac_path) or die "Unable to open root directory ($trac_path)";
You can now create new projectgs using trac-admin like described on [[1]]. If you would like to use the latest version of Trac (right now 0.11), you can get the version from subversion using:
svn co https://svn.edgewall.org/repos/trac/trunk trac
To install this version, use:
cd trac python setup.py install --prefix=/usr