Wednesday, February 15, 2012

Mindtouch Wiki on Ubuntu 10.04

Introduction

We use the open source core version of the Mindtouch wiki for internal collaboration. Mindtouch has several attractive features including:

Prerequisites

Mono Runtime from Badgerports

You'll need the Badgerports backports repository to get the latest Mono runtime. Add the following to your /etc/apt/sources.list:

deb http://badgerports.org lucid main

Next, add the key for the repository:

$ sudo gpg --keyserver pgpkeys.mit.edu --recv-key  C90F9CB90E1FAD0C
$ sudo gpg -a --export C90F9CB90E1FAD0C | sudo apt-key add -
$ sudo apt-get update
$ sudo apt-get install mono-runtime

Installing Mindtouch

You'll need the fimero repository enabled.

Ensure the Mindtouch repository has been added to your /etc/apt/sources.list:

deb http://repo.mindtouch.com xUbuntu_10.04/

Finally, install Mindtouch with

$ sudo apt-get install bbmindtouch

When the install process completes, point your browser to http://<your wikihost> and complete the installation process. Finally run sudo /usr/local/bin/finalize-mindtouch.sh to complete the installation.

Backup and Restore

The source for the backup script is available here:

https://svn.mindtouch.com/source/public/dekiwiki/10.1/src/scripts/dataWiki.sh

The bbmindtouch package installs a copy at /usr/local/bin/dataWiki.sh. This generates a backup file in /tmp

Add the following crontab entry for backup:

# m h  dom mon dow   command
0 2 * * * /usr/local/bin/dataWiki.sh -b
30 2 * * * /bin/cp /tmp/backupWiki-10.1.3.tar.gz ${BACKUP_FOLDER}

Change ${BACKUP_FOLDER} to an appropriate path.

To restore your wiki, simply run

$ sudo /usr/local/bin/dataWiki.sh -r ${BACKUP_FILE}


No comments: