User Tools

Site Tools


sysadmin_misc:tiddlywiki

Tiddlywiki

Initialization

useradd -d /home/tiddlywiki -m tiddlywiki
su - tiddlywiki
npm install tiddlywiki
node_modules/.bin/tiddlywiki adyxax.org --init server

Add the following to /etc/rc.local and run those commands :

su - tiddlywiki -c '/usr/bin/tiddlywiki /home/tiddlywiki/wiki.adyxax.org --server 8080 $:/core/save/all text/plain text/html "" "" 0.0.0.0' &
iptables -t nat -A PREROUTING -i eth0 -p tcp -m tcp --dport 80 -j DNAT --to-destination 10.1.0.200:8080

Static export

node_modules/.bin/tiddlywiki adyxax.org --rendertiddlers [!is[system]] $:/core/templates/static.tiddler.html static text/plain
node_modules/.bin/tiddlywiki adyxax.org --rendertiddler $:/core/templates/static.template.html static.html text/plain
node_modules/.bin/tiddlywiki adyxax.org --rendertiddler $:/core/templates/static.template.css static/static.css text/plain

Custom Solarized palette

  • To add a custom palette, create a tiddler named `$:/palettes/Solarized`
  • Set the content type to `application/x-tiddler-dictionary`
  • add a custom field `description` with a description of your choice.
  • add a custom field `name` with your palette's name.
  • add a tag `$:/tags/Palette`
  • paste your palette's content, save and switch palette in the tools menu.
sysadmin_misc/tiddlywiki.txt · Last modified: 2018/09/25 15:00 (external edit)