1 of 1 found this page helpful

Setup a MindTouch 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 MindTouch VM 

    First, download the latest VM release from MindTouch and install it. You will also want to run through the MindTouch 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 MindTouch folder to allow apache access:

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

    Sync your MindTouch 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
    Was this page helpful?
    Tag page
    Viewing 6 of 6 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 10:29, 26 Dec 2007
    Yes, thanks. You could have changed it above too. :-)
    Posted 13:42, 31 Dec 2007
    Thanks for the tutorial. It worked great for me.
    Posted 10:45, 28 Jul 2008
    Where is the mono 1.2.2.1 ?

    Recently I setting-up on the latest VM (8.08 Kilen Woods) accordance with this guide.
    As a result, newer version mono-1.9.1 installed as below.

    However I could not build DekiHost and all built in extensions with this mono, because "Unhandled Exception" happend durling compilation. :(

    Please update this guide for Deki 8.08. :)

    dekiwiki:/opt# /usr/bin/mono --version
    Mono JIT compiler version 1.9.1 (tarball)
    Copyright (C) 2002-2007 Novell, Inc and Contributors. www.mono-project.com
    TLS: __thread
    GC: Included Boehm (with typed GC)
    SIGSEGV: altstack
    Notifications: epoll
    Architecture: x86
    Disabled: none
    Posted 14:49, 8 Sep 2008
    > Where is the mono 1.2.2.1 ?

    WOW! My question of previous post are solved.

    I had delete pre-installed Mono-1.9.1, then re-install Mono and C# compiler.
    I here by get mono-1.2.2.1 at Deki's request to build Deki binaries.

    As you are aware this make a diffrence on Mono version between MindTouch shipped version and yours.
    Please try this at your own risk. ;)
    Here are command line to do it.

    apt-get update
    apt-get remove mono-common
    apt-get install mono
    apt-get install mono-gmcs

    dekiwiki:/opt# /usr/bin/mono -V
    Mono JIT compiler version 1.2.2.1, (C) 2002-2006 Novell, Inc and Contributors. www.mono-project.com
    TLS: normal
    GC: Included Boehm (with typed GC)
    SIGSEGV: normal
    Disabled: none edited 21:41, 12 Sep 2008
    Posted 20:52, 12 Sep 2008
    [NOTEICE]
    The procedure that I described in above (#5) has already gone out of use.
    So, Anyone should NOT do this on latest Deki Lyons (9.02) VM. Sorry... :(
    Posted 17:50, 30 Jul 2009
    Viewing 6 of 6 comments: view all
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by