{{{ #!rst ======== Trac FAQ ======== Here you can find the answer to some of the most frequently asked questions about Trac. If you a question not answered by this page you can add your question by clicking on the "Edit this page" link at the bottom of this page. .. contents:: .. sectnum:: ----- .. ** INSTALLING AND RUNNING TRAC ** Installing and Running Trac =========================== What operating systems does Trac run on? ---------------------------------------- Trac will run on any system supported by Python and the depending modules. Today we are aware of people running Trac on various Linux distributions, Mac OS X, FreeBSD, NetBSD and MS Windows. See also: `TracOnFreeBsd`:trac: , `TracOnNetBsd`:trac: , `TracOnOsx`:trac:, `TracOnMandrakelinux`:trac:, `TracOnGentoo`:trac:, `TracOnDebian`:trac:, `TracOnWindows`:trac: What are the dependencies of Trac? ---------------------------------- Trac depends on the following software: Subversion w/Python bindings, Clearsilver_, `SQLite w/Python bindings`_. Syntax coloring requires `GNU Enscript`_ and/or SilverCity_. See also: `TracInstall`:trac:, `TracSyntaxColoring`:trac:. .. _Clearsilver: http://www.clearsilver.net/ .. _`SQLite w/Python bindings`: http://www.sqlite.org/ .. _`GNU Enscript`: http://people.ssh.fi/mtr/genscript/ .. _SilverCity: http://silvercity.sf.net/ Can I replace SQLite with MySQL or PostgreSQL? ---------------------------------------------- FIXME: Dunno, I'm asking the question, please, please fill in the answer here :) Documentation details say that it can, because at the end it is still pure SQL. How practically should that be done...? Can I manage multiple projects from a single installation of Trac? ------------------------------------------------------------------ (or do I have to setup a different directory for each one?) Only one installation is required, then for each project create an Environment (using trac-admin initdb). They will be separate projects, all handled by the same installation of Trac. **Note:** Right now there is no support for sharing information between projects. The rationale for this is that the scope of Trac (1.0) is to manage a single project, and do it well. Support for larger multi-project management adds alot of complexity, but is planned for post-1.0 development, probably as a separate framework around Trac. See also: `TracMultipleProjects`:trac: Great software. Is there a guide on hacking the templates? ------------------------------------------------------------------ FIXME: I have no idea. ;-) How do I reliably create backups of my Trac environment? ------------------------------------------------------------------ With the `TracAdmin`:trac: command ''hotcopy''. See `TracBackup`:trac: for documentation. -------- .. ** WIKI ** Wiki ==== What is a "Wiki"? ----------------- The term Wiki is a shortened form of WikiWikiWeb_. A Wiki is a database of pages that can be collaboratively edited using a web browser. See also: `TracWiki`:trac: .. _WikiWikiWeb: http://c2.com/cgi/wiki?WikiWikiWeb Did you copy the previous question from the MoinMoin FAQ? --------------------------------------------------------- Why yes, thanks for asking. How to remove a page from the Wiki? --------------------------------------------------------- FIXME: Find an answer Could the Wiki perhaps get a RecentChanges page, showing the changed pages in anti-chronological order? ------------------------------------------------------------------------------------------------------- The timeline_ contains information about all the changes to Trac content. By deselecting the *view ticket changes* and *view repository checkins* boxes you can view only the Wiki changes. .. _timeline: http://projects.edgewall.com/trac/timeline/ I get the following error message when editing a wiki page with Trac 0.6.1: --------------------------------------------------------------------------- :: columns name, version are not unique SQLite_ version 2.8.13 has a bug in the max() function. Either downgrade/upgrade sqlite or replace trac/Wiki.py with this file: Wiki.py_ .. _SQLite: http://www.sqlite.org/ .. _Wiki.py: http://svn.edgewall.com/repos/trac/branches/0.6-stable/trac/Wiki.py Does Trac support Unicode/UTF-8 or any other encodings? ------------------------------------------------------- Yes, Trac uses UTF-8 internally for all text. See `TracUnicode`:trac: for a detailed description. Can I directly add questions to this Wiki FAQ? ---------------------------------------------- Yes, I can! Just click *Edit this page* at the bottom of the page. But then how do we control spammers and malicious contributors? --------------------------------------------------------------- I guess you would get an answer rapidly if you added a malicious contribution, and you just might get a bruise. ----- .. ** TIMELINE ** Timeline ======== How do I get Trac to resync the timeline with my subversion repository? ----------------------------------------------------------------------- trac-admin in trac 0.8 and above has built-in command to resync the repository that works like this. :: trac-admin resync ----- .. ** BROWSER ** Browser ======= On Windows, why does Trac not display diffs? -------------------------------------------- The tree diff functionality provided by the subversion python bindings use an external diff_ command. On UNIX-like systems, diff is usually installed already, so this wasn't an issue there. Installing diffutils_ should solve the problem. Diffutils for windows: http://gnuwin32.sourceforge.net/packages/diffutils.htm .. _diff: http://gnuwin32.sourceforge.net/packages/diffutils.htm .. _diffutils: http://gnuwin32.sourceforge.net/packages/diffutils.htm Does Trac support syntax coloring/highlighting of source code files? -------------------------------------------------------------------- Yes, using several methods. See `TracSyntaxColoring`:trac: for details. ----- .. ** TICKETS ** Tickets ======= Is there any way to remove tickets ? ------------------------------------ You have to go through the db file in order to remove a ticket. No web interface is available for the moment (but there is a `ticket:298`:trac: regarding it). ----- .. ** REPORTS ** Reports ======= Is there any way to remove reports? ----------------------------------- Yes, if you have the proper permissions, you should be able to delete a report simply by viewing it and clicking *delete*. ----- .. ** DEVELOPMENT ** Development =========== How can i contribute to the project? ------------------------------------ There are several ways to contribute, including submitting patches, sending feedback and reporting bugs. For details, see `HowToContribute`:trac:. Are there any provisions for I18N and L10N? Is it enough to translate the templates? ------------------------------------------------------------------------------------ Yes and no. Merely translating the templates is not enough to provide complete internationalization of Trac. Python supports gettext_ just fine, but templates might require some extra work, using Clearsilver's built-in `trans.py`_ mechanism or the new `gettext patch`_. The standpoint of the `TracTeam`:trac: right now is to hold up on translation efforts until the feature base and source code has stabilized somewhat, as to not add too much extra work until 1.0. That said, people have already started looking into it, and making some good suggestions already. We will need help with translation efforts. If you're interested in volunteering, please consider joining `the mailing list`_ .. _gettext: http://www.gnu.org/software/gettext/gettext.html .. _`trans.py`: http://groups.yahoo.com/group/ClearSilver/message/211 .. _`gettext patch`: http://groups.yahoo.com/group/ClearSilver/message/210 .. _`the mailing list`: http://projects.edgewall.com/trac/wiki/MailingList Is the Database scheme available anywhere? ------------------------------------------ Yes you can find it here_. .. _here: http://projects.edgewall.com/trac/file/trunk/trac/db_default.py?rev=latest FIXME: Asking the question again ;) ----- .. ** MISCELLANEOUS ** Miscellaneous ============= What is a typical use-case for trac? Why/when would I want to use it? --------------------------------------------------------------------- *Note:* in the gist, this boils down to 'what is trac?' and should rather be the first question IMHO. How do I create or change a milestone with an associated date? -------------------------------------------------------------- Using *trac-admin*, specifically the *milestone time* or *milestone add* command. The input format for the date is rather limited still, and should be a string like this: 'Jun 3, 2003'. Note the string **must** be quoted for proper parsing. Example: :: trac-admin myprojenv milestone add anniversary 'Jun 3, 2003' Are there similar systems for CVS? ---------------------------------- CVSTrac is a similar but far simpler system which can trac a CVS repository. It doesn't (IMO) look as nice as trac, but a lot of the functionality is similar. Go here: http://www.cvstrac.org/ ----- See also: `TracGuide`:trac:, `TitleIndex`:trac: }}}