https://wiki.archlinux.org/api.php?action=feedcontributions&user=Apoc&feedformat=atomArchWiki - User contributions [en]2024-03-29T13:32:46ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=User:Apoc&diff=42773User:Apoc2008-06-08T19:33:00Z<p>Apoc: </p>
<hr />
<div>Hi :)<br />
<br />
I use Arch Linux for all my Home Boxes(1 Server 2 Desktops(PC/Laptop))<br />
<br />
For many years i use Debian only, since ~3 Months i use Arch and be very happy with it.</div>Apochttps://wiki.archlinux.org/index.php?title=User:Apoc&diff=42772User:Apoc2008-06-08T19:27:21Z<p>Apoc: New page: Hi :) I use Arch Linux for all my Home Boxes(1 Server 2 Desktops(PC/Laptop)) For many years i use Debian only, since 3 Months i use Arch and be very happy with it.</p>
<hr />
<div>Hi :)<br />
<br />
I use Arch Linux for all my Home Boxes(1 Server 2 Desktops(PC/Laptop))<br />
<br />
For many years i use Debian only, since 3 Months i use Arch and be very happy with it.</div>Apochttps://wiki.archlinux.org/index.php?title=SCM_Example_Trac&diff=42771SCM Example Trac2008-06-08T19:19:41Z<p>Apoc: see discussion page</p>
<hr />
<div>[[Category:Development (English)]]<br />
[[Category:HOWTOs (English)]]<br />
The HOWTO teaches you to setup multi-project Trac/Subversion for a private and trusted environment (ex: a development team).<br />
<br />
==Basic Environment==<br />
'''Network''':<br><br />
: URL: <tt>http://scm.example.com</tt><br><br />
: Subversion URL: <tt>http://scm.example.com/svn/MY_PROJECT</tt><br><br />
: Trac URL: <tt>http://scm.example.com/trac/MY_PROJECT</tt><br />
<br />
'''Database''':<br><br />
: PostgreSQL, with trust authentication method<br />
<br />
'''Filesystem''':<br><br />
: Configuration files are in /mnt/rpo/conf<br><br />
: Subversion repositories is in /mnt/rpo/svn<br><br />
: Trac project files is in /mnt/rpo/trac<br />
<br />
== Preparation ==<br />
=== Required Packages ===<br />
Install the following packages:<br />
* apache<br />
* mod_python<br />
* postgresql<br />
* pypgsql<br />
* setuptools<br />
* subversion<br />
* trac<br />
<br />
=== Post-Install Steps ===<br />
==== Disable connection pooling ====<br />
Edit ''/usr/lib/python2.5/site-packages/trac/db/postgres_backend.py'':<br />
class PostgreSQLConnection<br />
......<br />
poolable = False # Change this line<br />
==== Install webadmin plugin ====<br />
svn co http://svn.edgewall.com/repos/trac/sandbox/webadmin<br />
cd webadmin<br />
python setup.py bdist_egg<br />
easy_install -Z dist/*.egg<br />
<br />
== Setup Basic Environment ==<br />
Create the directories:<br />
mkdir -p /mnt/rpo/conf<br />
mkdir -p /mnt/rpo/svn<br />
mkdir -p /mnt/rpo/trac<br />
<br />
=== Create User List ===<br />
Create a new list and add initial user:<br />
htdigest -c /mnt/rpo/conf/scm-user scm ''FIRST_USER''<br />
<br />
To add other users:<br />
htdigest /mnt/rpo/conf/scm-user scm ''OTHER_USER''<br />
<br />
You can edit the ''scm-user'' file to remove or rename users<br />
<br />
=== Create Database ===<br />
Create the trac user and the database:<br />
psql -U postgres postgres<br />
postgres=# CREATE USER trac;<br />
postgres=# CREATE DATABASE trac OWNER = trac;<br />
postgres=# \q<br />
<br />
=== Configure Web Server ===<br />
Edit ''/etc/httpd/conf/httpd.conf'':<br />
LoadModule dav_module lib/apache/mod_dav.so<br />
LoadModule dav_svn_module lib/apache/mod_dav_svn.so<br />
LoadModule python_module lib/apache/mod_python.so<br />
<br />
# Inside some virtual host if the server is not dedicated to scm<br />
DocumentRoot "/var/empty"<br />
<Location /><br />
Require valid-user<br />
AuthType Digest<br />
AuthName "svnrepos"<br />
AuthDigestDomain ''http://scm.example.com/''<br />
AuthDigestProvider file<br />
AuthUserFile ''/mnt/rpo/conf/scm-user''<br />
</Location><br />
<Location /svn><br />
DAV svn<br />
SVNParentPath ''/mnt/rpo/svn''<br />
SVNPathAuthz off<br />
</Location><br />
<Location /trac><br />
SetHandler mod_python<br />
PythonHandler trac.web.modpython_frontend<br />
PythonOption TracEnvParentDir ''/mnt/rpo/trac''<br />
PythonOption TracUriRoot /trac<br />
</Location><br />
<br />
== Create Projects ==<br />
Each project is consisted of one subversion repository and one trac project, with independent wiki and access control.<br />
=== Create Subversion Repository ===<br />
Just execute one line:<br />
svnadmin create /mnt/rpo/svn/MY_PROJECT<br />
=== Create Trac Project ===<br />
* Initialize project dir:<br />
trac-admin /mnt/rpo/trac/MY_PROJECT initenv<br />
: Database connection string: <tt>postgres://trac:password@localhost/trac?schema=MY_PROJECT</tt><br />
:: (each project must be given an unique schema; no need to create the schemas first)<br />
<br />
* Grant admin permission to all logon users:<br />
trac-admin /mnt/rpo/trac/MY_PROJECT permission add authenticated TRAC_ADMIN<br />
<br />
* Configure code encoding:<br><br />
: edit ''/mnt/rpo/trac/MY_PROJECT/conf/trac.ini'', change ''default_charset'' to ''utf-8'' or other encodings.<br><br />
<br />
* Allow web admin (http://scm.example.com/trac/MY_PROJECT/admin):<br />
echo -e "[components]\nwebadmin.* = enabled" >> /mnt/rpo/trac/MY_PROJECT/conf/trac.ini</div>Apochttps://wiki.archlinux.org/index.php?title=Talk:SCM_Example_Trac&diff=42770Talk:SCM Example Trac2008-06-08T19:17:37Z<p>Apoc: svn-admin</p>
<hr />
<div>== svn-admin ==<br />
<br />
: ''trac-admin /mnt/rpo/svn/MY_PROJECT permission add authenticated TRAC_ADMIN''<br />
<br />
The syntax for permission add is:<br />
: ''trac-admin </path/to/projenv> permission add <user> <action> [action] [...]''<br />
<br />
it should be /mnt/rpo/'''trac'''/MY_PROJECT (i changed that because im very sure about that)<br />
<br />
and authenticated is an alias user for all Unix-Users on the system right?<br />
<br />
also the code for /etc/httpd/conf/httpd.conf is not working with my setup. I think there missing <Directory>-Directives? i use now other Configuration with ScriptAlias. --[[User:Apoc|Apoc]] 15:17, 8 June 2008 (EDT)</div>Apoc