MindTouch Developer Center > MindTouch Deki > FAQ > Testing and Contributing > How do I...Setup a Deki VM with latest SVN code?

How do I...Setup a Deki VM with latest SVN code?

These instructions let you try out the latest code in development with your existing VM. Please note that this is for technically savvy and adventurous souls that want to live on the edge. These instructions set you up with the trunk branch which we try to keep as stable (and buildable) as possible but mistakes happen and the code may not always work.

Download the Deki Wiki VM 

First, download the latest VM release from MindTouch and install it. You will also want to run through the Deki Wiki installer, as well. You can log-into the VM with the username 'root' and the password 'password'.

Preparation (for Windows + VMPlayer) 

If you're using VMPlayer on Windows, you'll want to install putty , a free SSH client, so you can copy/paste commands. To connect to your VM via putty, you'll need to enable SSH login through VMPlayer first.

Switch your bits

Backup your current dekiwiki folder

mv /var/www/dekiwiki /var/www/dekiwiki-sf

Get latest PHP code from SVN from the trunk branch

cd /var/www
svn co https://svn.mindtouch.com/source/public/dekiwiki/trunk/web dekiwiki

Copy your LocalSettings.php and attachments from your original installation to the fresh one.

cp /var/www/dekiwiki-sf/LocalSettings.php /var/www/dekiwiki 
cp -R /var/www/dekiwiki-sf/attachments /var/www/dekiwiki

Change permissions of the dekiwiki folder to allow apache access:

chown -R www-data.root /var/www/dekiwiki  

Sync your DekiWiki C# with what's newest in SVN:

cd /opt
mv deki deki-sf
svn co https://svn.mindtouch.com/source/public/dekiwiki/trunk deki

Get the Mono C# compiler:

apt-get update
apt-get install mono-gmcs

Update C# and PHP code,
build DekiHost and all built in extensions,
perform db updates,
copy binaries to /var/www/dekiwiki/bin, restart dekihost

updateWiki.sh -d 

Look for Compilation Succeeded message near the end of the scrolling text. Compilation broken? Stop by irc and let us know!  Note:  updateWiki.sh -d only works with mono 1.2.2.1.  All newer version of mono will cause compilation errors.

You should be all set if everything finished successfully! You should be able to hit your wiki thats running with the latest bits from the trunk branch. Switching to any other branch is the same process just modify the svn path. 

Note that you may try changing to a different installation by changing the symlink and restarting dekihost but due to db updates, this may not always work. 

If you have problems with this, stop by our irc channel on irc.freenode.net #opengarden or post on the forum.

Optional setup steps for the VM

//TODO:

  • Expose the VM file system via Samba so it can be mounted by Windows
  • Setup mysql for remote access
Tag page
Viewing 3 of 3 comments: view all
Shouldn't the line:

ln -s /var/www/deki-hayes-original /var/www/deki-hayes

be:

ln -s /var/www/deki-hayes-trunk /var/www/deki-hayes

?
Posted 18:29, 26 Dec 2007
Yes, thanks. You could have changed it above too. :-)
Posted 21:42, 31 Dec 2007
Thanks for the tutorial. It worked great for me.
Posted 18:45, 28 Jul 2008
Viewing 3 of 3 comments: view all
You must login to post a comment.