How to run Trac on pc51

  1. Before you start Trac, make a project and import it into your Subversion repository. Your repository can be anywhere in your account for the time being. You don't have to do this before starting Trac, but it is better so you would be able to "Browse" something in your repository.
  2. ssh into pc51. Type:
  3. % ssh pc51

    Answer yes to the question. Then you will be asked for your password. Enter your password.

  4. Now you must create a project environment for Trac. This is the backend storage where Trac stores information like wiki pages, tickets,....An environment is created  using trac-admin. Type:
  5. % trac-admin /home/yourusername/path_to_trac_prj_env initenv

    You don't have to have an environment set before running this command. It'll make the directory for you. So, if I would call my Trac environment TracPrjEnv  I would type:

    % trac-admin /home/abbasine/TracPrjEnv initenv

    trac-admin will prompt you for some information such as the name of your project, the path to your subversion repository,...The only important part you should answer is the path to your repository. Please specify a complete path from your home directory (/home/username/path_to_svn_rep). You can just leave the other options or questions blank by pressing enter and continuing. Don't worry if you made a mistake. You can always change these values by editing the TracIni configuration file located in /path_to trac_prj_env/conf/trac.ini. You can also just start all over!
     

  6. After creating the project environment, you run trac by running its standalone server. Type:

    % tracd --port 8000 /home/username/path_to_trac_prj_env

  7. Now fire up a web browser and type http://pc51.cs.ucdavis.edu:8000. Trac should start running. Try "Browse Source" to make sure you see the files you put in your subversion repository.
  8. Enjoy!

Let me know if you run into problems.