Users/trac svn

Using SVN and Trac on Skynet

Skynet have a dedicated SVN server with a Web based Interface ([WWW] Trac).

To get a SVN Account setup for you - please email: svnadm at Also include a project name with which to be initially setup for you.

The Details you will recieve back will be similar to:

You project has been created. You can log into trac at: [WWW]

Your svn repository can be accessed at: [WWW]

Note: It is up to yourself whether or not to access your svn and trac over https or http. Both will work. As svn and trac authentication is via an Apache .htaccess file, it is not deemed critical to access your trac and svn over https, although it is advisable.

Using Trac

Your username and password - are your skynet one's. The first URL (e.g. [WWW] is the wiki and Trac Web Interface to your SVN account. You can login, and update whatever details you require, (e.g. project wiki, timelines, milestones etc.) Note that this Trac Web Interface is only for updating project details. No SVN checkin-checkout etc. are carried out through this interface.

In your home dir is a directory called projects, and within this is the project name you requested (with the initial setup request). The Main TRAC (Web Interface as described aboev) Configuration file is in /home/username/projects/projectname/trac/conf/trac.ini

The Main Changes I have made are as follows:

alt = 
height = -1
link =
src = /~steviewdr/webirc/images/cgiirc.gif
width = -1

I included the following also, because of spam etc. anyone can open a ticket for bugs/updates etc. If you want to DISABLE tickets - the following can be inserted into the trac.ini config file:

trac.ticket.* = disabled

This folder /home/username/projects/projectname/* is were all the project information is contained. The folder /home/username/public_html/projectname/* is where all the web information is contained (although mainly in cgi scripts. You can make an images folder here if you like).

This Ends the HowTo on Trac.

Using your SVN account

If you are not familiar with SVN - then the following PDF document is a DEFINATE MUST: [WWW]

The following are ONLY the Basic guidelines to using SVN:

  1. Setup a new folder in your home dir - all the initial files in your project, in a folder called setupprojectname (or similar)

  2. ~$ svn import /home/username/setupprojectname [WWW] -m "Initial Import"

  3. Go check out your Trac SVN interface and browse the files you just imported.

  4. Remove the folder setupprojectname in your homedir. It is not needed. All the files have been imported into your SVN repository.

  5. Checkout a "Working Copy" of your SVN imported code: ~$ svn checkout [WWW] workingprojectname.

  6. Now you have Checked out a Copy of the Project.

  7. Edit a file and make changes.

  8. To see your change(s) type ~$ svn diff

  9. To Save and Commit back your changes, type ~$ svn commit workingprojectname

  10. Go to Trac and See your Changes etc.

That Ends the quick HowTo on SVN and Trac. Have fun and enjoy.


Restricting/Locking Down your SVN & Trac

1. Lock Down SVN

vi /home/username/projects/projectname/svn-perms
and remove "* = r" if you dont want everyone to read your SVN repository at:

2. Lock Down Trac

create a .htaccess at: /home/username/public_html/projectname/cgi-bin/.htaccess
and place the following lines in it (as you said):
  AuthType Basic
  AuthName "trac"
  AuthUserFile /home/username/projects/projectname/users
  Require valid-user

--steviewdr 13-Jan-07