Installs Trac and Graphviz plugin in DreamHost

I installed Trac 0.11.7 and the Graphviz plugin to a web site which is hosting in DreamHost’s (shared web hosting, not VPS).

This  is the illustration page : TracGraphvizPlugin

The following is  the draft note.

 Text |  copy code |? 
01
1. TRAC Installation
02
  Use One-Click Installation in DH to install.
03
  Notes:
04
    (a) Needs not to set "Htaccess/WebDAV" for it, only ".htaccess" by default, no ".htpassword".
05
    (b) Anonymous accessable, but not able to "log in" in TRAC.
06
 
07
2. Configuration Users
08
  # refers to "solution 2" in  http://wiki.dreamhost.com/Troubleshoot_Trac_One-Click_Install
09
  a. install the plugin TracAccountManager  # in "solution 2", no need to change "trac.ini"
10
  b. grant admin access right to 
11
      trac-admin <trac-install-path> permission add anonymous TRAC_ADMIN  # 'anonymous' is the user name
12
  c. open Admin (as anonymous), and change a bit in "Basic Settings" and save. # it makes the TracAccountManager enabled
13
  d. open "Accounts -> Configuration", set HtDigestStore as "1", and assign a file name (like ".users.passwd") for it, then "Save".
14
  e. add a user with password for your own in the "Accounts -> Users" in the Admin page of Trac.
15
  f. set it as TRAC_ADMIN by command line:
16
       trac-admin <trac-install-path> permission add <username> TRAC_ADMIN
17
  g. Remove the TRAC_ADMIN access right from user 'anonymous' in the "Accounts -> Users" in the Admin page of Trac.
18
 
19
3. Change logo
20
  a. put the image file (let's say) trac_logo.png to "htdocs" in your project.
21
  b. change 'trac.ini'.
22
    # "site/" for files within the project directory htdocs
23
    vi conf/trac.ini
24
    change to "src = site/trac_logo.png"
25
 
26
4. Install plugin Graphviz
27
  a. install Graphviz according to this : http://wiki.dreamhost.com/Graphviz
28
       Notes: the "--prefix" specifies it's installed to : /home/<YOUR_USER_NAME>/local
29
  b. install GraphvizPlugin
30
     (1) Download source from : https://trac-hacks.org/wiki/GraphvizPlugin
31
     (2) remove "tag_svn_revision =" in "setup.py" after extraction.
32
     (3) build the "egg" by running "python setup.py bdist_egg"
33
     (4) copy the "egg" file to "plugins" folder in Trac.  # it will be applied automatically
34
  c. configure Graphviz plugins
35
     # refers to : https://trac-hacks.org/browser/graphvizplugin/tags/0.11-0.7.5/README.txt
36
     (1) create "graphviz" folder in "htdocs" which contained in Trac folder.
37
     (2) add the following to "trac.ini" configuration file (change the <YOUR_USER_NAME>):
38
        [graphviz]
39
        cmd_path = /home/<YOUR_USER_NAME>/local/bin
40
        cache_dir = htdocs/graphviz
41
        png_antialias = false
42
        default_graph_fontname = "Andale Mono"
43
        default_graph_fontsize = 10
44
        cache_manager = yes
45
        cache_max_size = 10000000
46
        cache_min_size = 5000000
47
        cache_max_count = 2000
48
        cache_min_count = 1500     
49
     (3) Try create a Wiki item and test
50
        Add the following to the item and "Preview":
51
          {{{
52
          #!graphviz
53
          digraph G {Hello->World->Graphviz->Rules}
54
          }}}
55
     (4) Now enjoy your Graphviz plugin.
56



Leave a Reply