LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs > your_shadow03
User Name
Password

Notices


Rate this Entry

Installing TRAC on Linux

Posted 08-25-2008 at 07:29 AM by your_shadow03

STEPS OF INSTALLATION
admin@linuxguy:~$ trac-admin /var/lib/trac initenv
Creating a new Trac environment at /var/lib/trac

Trac will first ask a few questions about your environment
in order to initalize and prepare the project database.

Please enter the name of your project.
This name will be used in page titles and descriptions.

Project Name [My Project]> DOSE

Please specify the connection string for the database to use.
By default, a local SQLite database is created in the environment
directory. It is also possible to use an already existing
PostgreSQL database (check the Trac documentation for the exact
connection string syntax).

Database connection string [sqlite:db/trac.db]>

Please specify the type of version control system,
By default, it will be svn.

If you don't want to use Trac with version control integration,
choose the default here and don't specify a repository directory.
in the next question.

Repository type [svn]>

Please specify the absolute path to the version control
repository, or leave it blank to use Trac without a repository.
You can also set the repository location later.
Path to repository [/path/to/repos]> /home/linuxguy/repository
Creating and Initializing Project
Failed to create environment. [Errno 13] Permission denied: '/var/lib/trac/log' Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/Trac-0.11rc1-py2.5.egg/trac/admin/conso le.py", line 543, in do_initenv options=options)
File "/usr/lib/python2.5/site-packages/Trac-0.11rc1-py2.5.egg/trac/env.py", li ne 188, in __init__ self.create(options)
File "/usr/lib/python2.5/site-packages/Trac-0.11rc1-py2.5.egg/trac/env.py", li ne 282, in create os.mkdir(self.get_log_dir())
OSError: [Errno 13] Permission denied: '/var/lib/trac/log'
vjs@dicex:~$ sudo trac-admin /var/lib/trac initenv
Creating a new Trac environment at /var/lib/trac
Trac will first ask a few questions about your environment in order to initalize and prepare the project database.
Please enter the name of your project
. This name will be used in page titles and descriptions.
Project Name [My Project]> DOSE
Please specify the connection string for the database to use. By default, a local SQLite database is created in the environment directory. It is also possible to use an already existing PostgreSQL database (check the Trac documentation for the exact connection string syntax).
Database connection string [sqlite:db/trac.db]>
Please specify the type of version control system, By default, it will be svn.
If you don't want to use Trac with version control integration, choose the default here and don't specify a repository directory. in the next question.
Repository type [svn]>
Please specify the absolute path to the version control
repository, or leave it blank to use Trac without a repository.
You can also set the repository location later.

Path to repository [/path/to/repos]> /home/linuxguy/repository

Creating and Initializing Project
Installing default wiki pages
/usr/lib/python2.5/site-packages/Trac-0.11rc1-py2.5.egg/trac/wiki/default-pages
/TracBrowser imported from TracBrowser /usr/lib/python2.5/site-packages/Trac-0.11rc1-py2.5.egg/trac/wiki/default-pages
/TracUpgrade imported from TracUpgrade /usr/lib/python2.5/site-packages/Trac-0.11rc1-py2.5.egg/trac/wiki/default-pages
/TracPlugins imported from TracPlugins /usr/lib/python2.5/site-packages/Trac-0.11rc1-py2.5.egg/trac/wiki/default-pages
/SandBox imported from SandBox /usr/lib/python2.5/site-packages/Trac-0.11rc1-py2.5.egg/trac/wiki/default-pages
/InterTrac imported from InterTrac /usr/lib/python2.5/site-packages/Trac-0.11rc1-py2.5.egg/trac/wiki/default-pages
/InterMapTxt imported from InterMapTxt /usr/lib/python2.5/site-packages/Trac-0.11rc1-py2.5.egg/trac/wiki/default-pages
/WikiHtml imported from WikiHtml /usr/lib/python2.5/site-packages/Trac-0.11rc1-py2.5.egg/trac/wiki/default-pages
/TracWikiMacros imported from TracWikiMacros /usr/lib/python2.5/site-packages/Trac-0.11rc1-py2.5.egg/trac/wiki/default-pages
/TracTicketsCustomFields imported from TracTicketsCustomFields /usr/lib/python2.5/site-packages/Trac-0.11rc1-py2.5.egg/trac/wiki/default-pages
/TracEnvironment imported from TracEnvironment /usr/lib/python2.5/site-packages/Trac-0.11rc1-py2.5.egg/trac/wiki/default-pages
/TracPermissions imported from TracPermissions /usr/lib/python2.5/site-packages/Trac-0.11rc1-py2.5.egg/trac/wiki/default-pages
/TracModPython imported from TracModPython /usr/lib/python2.5/site-packages/Trac-0.11rc1-py2.5.egg/trac/wiki/default-pages /Tr
acImport imported from TracImport /usr/lib/python2.5/site-packages/Trac-0.11rc1-py2.5.egg/trac/wiki/default-pages /CamelC
ase imported from CamelCase /usr/lib/python2.5/site-packages/Trac-0.11rc1-py2.5.egg/trac/wiki/default-pages /TracIni im
ported from TracIni /usr/lib/python2.5/site-packages/Trac-0.11rc1-py2.5.egg/trac/wiki/default-pages /TracAdmin impo
rted from TracAdmin /usr/lib/python2.5/site-packages/Trac-0.11rc1-py2.5.egg/trac/wiki/default-pages /TracGuide imported
from TracGuide /usr/lib/python2.5/site-packages/Trac-0.11rc1-py2.5.egg/trac/wiki/default-pages /WikiStart imported fro
m WikiStart /usr/lib/python2.5/site-packages/Trac-0.11rc1-py2.5.egg/trac/wiki/default-pages /InterWiki imported from In
terWiki /usr/lib/python2.5/site-packages

http://trac.edgewall.org/
Congratulations!

vjs@linuxguy:~$

CONFIGURING TRAC TO WORK WITH SVN


We need to add Account Manager plugin to make TRAC work with SVN Authz.Kindly modify the /var/lib/trac/trac.ini file in the following manner.Add the lines at the end of trac.ini under /var/lib/trac/conf/trac.ini
File: trac.ini


[components]
acct_mgr.api.* = enabled
trac.web.auth.LoginModule = disabled
acct_mgr.web_ui.LoginModule = enabled
acct_mgr.svnserve.* = enabled
acct_mgr.web_ui.RegistrationModule = enabled



[account-manager]
password_store = SvnServePasswordStore
password_file = /home/DOSE/repository/conf/passwd

----
-------------------END OF THE DOCUMENT-----------------------------
Posted in Uncategorized
Views 3569 Comments 0
« Prev     Main     Next »

  



All times are GMT -5. The time now is 03:41 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration