Setup moinmoin as a personal wiki

Moinmoin is a wiki engine implemented in Python language.

Use scenarios

My purpose for this wiki is a personal knowledge base. Mostly scattered with drafts, stuff that don’t belong to my blogs. It will be a single user wiki. My focus is purely on adding content quickly, so I will prefer as less time on administration as possible.

I would love it to work across all my machines with minimal setup. May be I will put the wiki directory into dropbox or a private bitbucket repo and clone it on all machines.

I will be maintaining just the wiki data, updating moinmoin install will be managed by the most efficient `pacman` :)

Setup

sudo pacman -S moinmoin
cd ~/docs/notes
wget https://bitbucket.org/thomaswaldmann/moin-1.9/raw/0265eec31d99/wikiserver.py
wget https://bitbucket.org/thomaswaldmann/moin-1.9/raw/0265eec31d99/wikiserverconfig.py
wget https://bitbucket.org/thomaswaldmann/moin-1.9/raw/0265eec31d99/wikiserverlogging.conf

Copy data/ and underlay/ files into your wiki instance.

cd ~/docs/notes
cp -rv /usr/share/moin/data/* data
cp -rv /usr/share/moin/underlay/* underlay

I will be running moinmoin server with my user. So let’s change the ownership of these directories to let server access them:

sudo chown -R arun:wheel data
sudo chown -R arun:wheel underlay
chmod -R 755 data
chmod -R 755 underlay

Run the standalone server.

python2 wikiserver.py

That’s it. You will be running a moinmoin instance at http://localhost:8080.

References

  • John Goerzen has a post on moinmoin, ZTD
  • Dirk Adlers’ page at moinmoin wiki has templates for writing new Parser, Action or Macro to extend moinmoin

This post is for reference. Well after setting up, I didn’t like the way moinmoin stores the wiki files (something like: ./data/PageName/revisions/). So yet another didn’t-work-for-me experiment, the story of personal wiki setup will continue in another post on vimwiki :)

About these ads

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s