Life without names.
Sound… WebAppSec Survey Time Plus A Fast Approaching DefCon and Blackhat
Jul 16
1
2
3
4
5
6
sudo apt-get install apache2 libapache2-mod-python libapache2-svn python-setuptools subversion python-subversion
sudo easy_install Trac
sudo apt-get install sqlite
sudo mkdir /var/lib/trac
sudo chown www-data:www-data /var/lib/trac
sudo vi /etc/apache2/sites-available/trac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<virtualhost *>
        ServerAdmin webmaster@localhost
        ServerName trac.example.com
        DocumentRoot /var/www
        ErrorLog /var/log/apache2/error.trac.log
        CustomLog /var/log/apache2/access.trac.log combined
        <location /projects>
                SetHandler mod_python
                PythonInterpreter main_interpreter
                PythonHandler trac.web.modpython_frontend
                PythonOption TracEnvParentDir /var/lib/trac
                PythonOption TracUriRoot /projects
        </location>
        <locationmatch "/projects/[[:alnum:]]+/login">
            AuthType Basic
            AuthName "trac"
            AuthUserFile /etc/apache2/dav_svn.passwd
            Require valid-user
        </locationmatch>
</virtualhost>
7
8
9
10
11
12
13
14
15
16
17
sudo a2dissite default
sudo a2ensite trac
sudo /etc/init.d/apache2 reload
cd /var/lib
sudo mkdir svn
sudo svnadmin create /var/lib/svn/ProjectName
sudo chown -R www-data /var/lib/svn
sudo /etc/init.d/apache2 restart
sudo trac-admin /var/lib/trac/YourProjectNameHere initenv
sudo chown -R www-data /var/lib/trac
sudo vi /etc/apache2/mods-available/dav_svn.conf
1
2
3
4
5
6
7
8
9
<location /svn>
    DAV svn
    SVNParentPath /var/lib/svn
    AuthType Basic
    AuthName "Subversion Repository"
    AuthUserFile /etc/apache2/dav_svn.passwd
    AuthzSVNAccessFile /etc/apache2/dav_svn.authz
    Require valid-user
</location>
18
19
20
sudo htpasswd -c /etc/apache2/dav_svn.passwd username1
sudo htpasswd /etc/apache2/dav_svn.passwd username2
sudo vi /etc/apache2/dav_svn.authz
1
2
3
4
5
6
[/]
username1=r
username2=rw
[/ProjectName]
username1=rw
username2=r
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
sudo chown www-data /etc/apache2/dav_svn.passwd
cd /var/lib/trac
sudo trac-admin ProjectName permission add username TRAC_ADMIN
sudo mkdir /var/www/.python-eggs
sudo chown www-data /var/www/.python-eggs
sudo apt-get install build-essential graphviz
sudo easy_install http://svn.edgewall.org/repos/genshi/trunk/
sudo easy_install http://trac-hacks.org/svn/accountmanagerplugin/trunk
sudo easy_install http://trac-hacks.org/svn/customfieldadminplugin/0.11
sudo easy_install http://trac-hacks.org/svn/eclipsetracplugin/tracrpcext/0.10
sudo easy_install http://trac-hacks.org/svn/iniadminplugin/0.11
sudo easy_install http://trac-hacks.org/svn/masterticketsplugin/0.11
sudo easy_install http://trac-hacks.org/svn/pagetopdfplugin/0.10/
sudo easy_install http://trac-hacks.org/svn/progressmetermacro/0.11
sudo easy_install http://trac-hacks.org/svn/ticketdeleteplugin/0.11
sudo easy_install http://trac-hacks.org/svn/tracwysiwygplugin/0.11
sudo easy_install http://wikinotification.ufsoft.org/svn/trunk
sudo /etc/init.d/apache2 restart
w3m http://localhost
w3m http://localhost/projects and w3m http://localhost/svn/ProjectName

Tags: , , , , , , , , , , ,
  • Share/Save/Bookmark

2 Responses to “40 step to install Apache2, SQLite, Trac, Subversion in Ubuntu 8.04 (Debian)”

  1. Recent URLs tagged Subversion - Urlrecorder Says:

    [...] Recent public urls tagged “subversion” → 40 step to install Apache2, SQLite, Trac, Subversion in Ubuntu … [...]

  2. UFC betting Says:

    Interesting site, nice design, i have bookmarked it for the future referrence

Leave a Reply

 

You need to log in to vote

The blog owner requires users to be logged in to be able to vote for this post.

Alternatively, if you do not have an account yet you can create one here.

Powered by Vote It Up