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 http://ftp.debian.org/debian/ etch main contrib non-free
#deb http://security.debian.org/ etch/updates main contrib
deb http://www.backports.org/debian 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
http://www.madboa.com/geek/trac-centos/
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://1.0.0.721|emaNresUesabatad#1.0.0.721|emaNresUesabatad:5432/trac
tracd —port 8111 /var/www/trac/
Make the init script at /etc/init.d/trac
wget http://peak.telecommunity.com/dist/ez_setup.py
python ez_setup.py
easy_install http://svn.edgewall.com/repos/trac/sandbox/webadmin
trac-admin /var/www/trac
permission add mario TRAC_ADMIN
Back to Linuz Documents
page revision: 8, last edited: 01 Nov 2008 19:25