Trac at job4: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 14: | Line 14: | ||
** sudo pip2 install TracPlantUml | ** sudo pip2 install TracPlantUml | ||
** After trac (re)start: page Admin/Plugins: enable TracPlantUml | ** After trac (re)start: page Admin/Plugins: enable TracPlantUml | ||
** DL file to trac folder | |||
{{{ | |||
cd /home/joachim/Dokumente/trac | |||
wget https://sourceforge.net/projects/plantuml/files/plantuml.jar | |||
}}} | |||
** Add this to trac.ini | |||
{{{ | |||
[plantuml] | |||
java_bin = java | |||
plantuml_jar = /home/joachim/Dokumente/trac/plantuml.jar | |||
}}} | |||
** Test this: | ** Test this: | ||
{{{#!PlantUml | {{{#!PlantUml |
Revision as of 17:06, 26 April 2022
Installation
- enable python2 for apache
- Install tracd in /usr/local/bin
- sudo pip2 install Trac
- Install Graphwiz plugin (nice to have)
- sudo pip2 install TracGraphviz
- After trac (re)start: page Admin/Plugins: enable TracGraphviz
- Test this:
{{{ #!graphviz digraph G {Hello->World->Graphviz->Rules} }}}
- Install Plant UML Plugin (nice to have)
- sudo pip2 install TracPlantUml
- After trac (re)start: page Admin/Plugins: enable TracPlantUml
- DL file to trac folder
{{{ cd /home/joachim/Dokumente/trac wget https://sourceforge.net/projects/plantuml/files/plantuml.jar }}}
- Add this to trac.ini
{{{ [plantuml] java_bin = java plantuml_jar = /home/joachim/Dokumente/trac/plantuml.jar }}}
- Test this:
{{{#!PlantUml @startuml Alice -> Bob: Authentication Request Bob --> Alice: Authentication Response Alice -> Bob: Another authentication Request Alice <-- Bob: another authentication Response @enduml }}}
- Create wiki in /home/joachim/Dokumente/trac
- Autostart
job4:/etc/systemd/system # cat trac.service [Unit] Description=Trac Wiki [Service] Type=simple User=joachim ExecStart=/usr/bin/python2 /usr/local/bin/tracd -s --port 8000 --auth='*,/home/joachim/Dokumente/trac/users.htdigest,Joachim privat' trac WorkingDirectory=/home/joachim/Dokumente/ Restart=on-failure [Install] WantedBy=multi-user.target
Users
- /home/joachim/Dokumente/trac/users.htdigest
- /home/joachim/Dokumente/trac/README.users.htdigest
htdigest /home/joachim/Dokumente/trac/users.htdigest 'Joachim privat' julian