1 Requriement
1.1 Python(http://www.python.org/)
1.2 ClearSilver(http://www.clearsilver.net/)1.3 SQLite(http://www.sqlite.org/)
1.4 PySQLite(http://pysqlite.org/)
1.5 Subversion(http://subversion.tigris.org/)
2 Trac initialization
mkdir -p /var/trac
trac-admin /var/trac/myproject initenv
find /var/trac/myproject -type f -exec chmod 660 {} \;
find /var/trac/myproject -type d -exec chmod 2770 {} \;
chown -R root.apache /var/trac/myproject
3 svn initialization
mkdir -p /var/svn/myproject
mkdir -p /tmp/myproject/{branches,tags,trunk}
svnadmin create /var/svn/myproject --fs-type fsfs
svn import /tmp/myproject file:///var/svn/myproject -m "initial import"
rm -rf /tmp/myproject
find /var/svn/myproject -type f -exec chmod 660 {} \;
find /var/svn/myproject -type d -exec chmod 2770 {} \;
chown -R root.apache /var/svn/myproject