Trac Installation

Trac installation

apt-get install libdbd-pg-perl libxml2 ssl-cert libossp-uuid15 libxml2 libxslt1.1 uuid xml-core
apt-get install sgml-base-doc debhelper dh-make debian-keyring cvs gcc libmail-sendmail-perl libcompress-zlib-perl gcc-4.1-locales build-essential manpages-dev autoconf automake1.9 libtool flex bison gdb libc6-dev libc-dev libmudflap0-dev automake1.9 libltdl3-dev
apt-get install python-docutils libapache2-mod-encoding libapache2-svn libapache-mod-dav subversion libapache2-svn libapache-mod-dav apache2 ssl-cert libapache2-mod-python
apt-get install python-beaker python-flup python-myghty python-paste python-pastedeploy python-pastewebkit python-pgsql python-webpy python-pysqlite2 python-subversion python-textile
vi /etc/apt/sources.list

#deb etch main contrib non-free
#deb etch/updates main contrib

deb etch-backports main contrib non-free

apt-get update
apt-get install postgresql-8.3 postgresql-client-8.3 postgresql-contrib-8.3 postgresql-common trac
su - postgresql
postgres@rita:~$ createuser -P -E pgusr
Enter password for new role: d4t4pgusr
Enter it again: d4t4pgusr
Shall the new role be a superuser? (y/n) n
Shall the new role be allowed to create databases? (y/n) n
Shall the new role be allowed to create more new roles? (y/n) n
createdb trac
cp /etc/postgresql/8.3/main/pg_hba.conf /etc/postgresql/8.3/main/pg_hba.conf.`date +%d%b%g%H%M%S`
vi /etc/postgresql/8.3/main/pg_hba.conf
# Database administrative login by UNIX sockets
local   all         postgres                          ident sameuser
local   all         pgusr                          md5
/etc/init.d/postgresql-8.3 restart
mkdir -p /var/trac/operaciones
trac-admin /var/trac/operaciones/ initenv
Creating a new Trac environment at /var/trac/operaciones

Trac will first ask a few questions about your environment
in order to initialize 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]> OPERACIONES

 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]> postgres://pgusr:d4t4pgusr@localhost:5432/trac
chown www-data:www-data /var/trac

tracd --port 8000 /var/trac/operaciones

su - postgres
createuser -P -E
createdb trac -U databaseUserName (Create a new postgres database)
createdb trac (si el anterior falla)
trac-admin /var/www/trac initenv
Database connection string [sqlite:db/trac.db]> postgres://|emaNresUesabatad#|emaNresUesabatad:5432/trac
tracd —port 8111 /var/www/trac/

Make the init script at /etc/init.d/trac



trac-admin /var/www/trac

permission add mario TRAC_ADMIN

Back to Linuz Documents

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License