[lively-kernel] Local installation of Lively Core from Github: some notes, questions, and errors

Milan Zimmermann milan.zimmermann at gmail.com
Tue Feb 28 20:57:03 CET 2012

Hi Jens:

Thanks for your notes. Part of my confusion is the difference between
LivelyKernel and Webwerkstatt - I have so far only used "the whole
package" on lively-kernel.org so I am not sure where one starts and

I want to make over my installation based on your comments, but let me
make a summary if I am getting your process right:

a) Just installing the LivelyKernel files from Github under proper
apache directory  (as files - is WebDAV needed for this?) gives us
LivelyKernel functionality, correct? [subquestion that I can answer by
experimenting - what is the LivelyKernel functionality?]

b) To add the functionality of PartsBin, ability to save and version,
I need to also create a "real" svn repository (svnadmin create) under
Apache and attach WebDAV to it. From your notes it seems you created
an empty svn repository, and then, just copied the blank.xhtlm from
a), to b) and then you used the "bootstrap" process to populate the
svn repository with things like PartsBin etc. Is this correct so far?
If correct, at the end of this process, should the functionality be
expected to be equivalent to what I experience by opening a world at
lively-kernel such as

Sorry for all the questions, I am trying to get a picture of where I
am  heading and what to expect at each step ..



On Tue, Feb 28, 2012 at 4:21 AM, Jens Lincke
<jens.lincke at hpi.uni-potsdam.de> wrote:
> Hi, Milan -
> I did a local Lively Setup the following way. I made some notes, they are
> Mac specific and might miss some steps.
> My basic idea was to have two installations: one clean from git with the
> code and one in the webwerkstatt wiki style for
> playing around with parts and pages.
> How to install lively locally on my Mac: - check out LivelyKernel from
> github: cd /Library/WebServer/ git clone
> https://github.com/rksm/LivelyKernel.git - copy
> https://github.com/rksm/LivelyKernel/blob/master/apache_config/lk_osx.conf
> into /etc/apache2/other/ - enable your local web server in the Mac system
> preferences - or if you already have, restart apache: sudo apachectl restart
> - /Library/WebServer/Documents/LivelyKernel/ This will give you a bare
> installaltion of Lively without history and without any Tool Parts. How to
> setup a LivelyWiki - For Lively Wiki functionality as in WebWerkstatt we
> need apache to serve us an svn repository. So we have to create one: sudo
> mkdir /Library/WebServer/repositories sudo svnadmin create
> /Library/WebServer/repositories/LivelyWiki - Allow the webserver to read and
> write the repositories: sudo chown -R _www:_www
> /Library/WebServer/repositories/LivelyWiki
> - add /etc/apache2/other/livelywiki_osx.conf:
> <IfModule !dav_module> LoadModule dav_module libexec/apache2/mod_dav.so
> </IfModule> <IfModule !dav_svn_module> LoadModule dav_svn_module
> libexec/apache2/mod_dav_svn.so </IfModule> Redirect /LivelyWiki/core/
> /LivelyKernel/core/ # change this to wherever your svn repo is <Location
> /LivelyWiki> DAV svn SVNPath /Library/WebServer/repositories/LivelyWiki
> SVNAutoVersioning on ModMimeUsePathInfo on Order Deny,Allow Allow from All
> SetOutputFilter DEFLATE DavDepthInfinity on </Location>
> #EOF
> This gives you two repositories:
> a) http://localhost/LivelyKernel/ -> WebDAV served plain git
> b) http://localhost/LivelyWiki/ -> SVN DAV Lively wiki with auto commit
> history
> if we copy a blank.xhtml from (a) into (b)i we can start working in (b)
> because all the .js files are loaded from (a)
> I then bootstrapped the parts using a part from WebWerkstatt:
> var oldRootPath = Config.rootPath try { Config.rootPath =
> 'http://lively-kernel.org/repository/webwerkstatt/'
> this.openPartItem("BootstrapParts", "PartsBin/Tools") } finally {
> Config.rootPath = oldRootPath }
> I tried to figure out a way how I can upload parts / changes made on my
> localhost machine to webwerkstatt using the proxy,
> but I failed because digest authentication can not be proxied with our URL
> rewriting approach and I will have to use node.js for this.
> Best,
> Jens
> Am 28.02.2012 um 06:18 schrieb Milan Zimmermann:
> Hi:
> This weekend I set to install Lively Core from Github on"localhost" ,
> using the instructions on Github, with some tinkering in addition.
> Short summary is that the resulting install does sort of work, I can
> drag out PartsBin, from there drag out parts etc. There are however
> quite a few errors when using it (more below).
> A brief summary of my installation steps on localhost (Opensuse 12.1
> although that is likely not relevant):
> --------------------------------------
> - git clone as instructed ~/LivelyKernel
> - npm install
> - make install_partsbin (at the end of this step I have an
> combination of .git and .svn client directories) in ~/LivelyKernel)
> - copied ~/LivelyKernel under Apache /srv/www/htdocs
> - configured Apache for WebDAV to /srv/www/htdocs/LivelyKernel
> - pointed to
> - the world shows and somewhat works, but  not as good as the online
> lively-kernel.org :)
> I have some questions (realizing most are related to WebDAV/Git) and errors:
> -------------------------------------------------------------
> If anyone could help or comment that would be great - thanks
> 1) From my previous installation of Lively2, I thought WebDAV
> requires an actual SVN repository (svnadmin create repo) to work with
> Lively2, but this time the lk.conf seem to indicate it can simply
> contain the combination of the .git and .svn directories created
> above.  Is that how it is supposed to be configured for webDAV /
> Lively to work? Also, is the the combination of .git and .svn client
> files an issue, and I wonder which parts of the ~/LivelyKernel are
> used by Lively for saving and changes...
> 2) How does webwerkstatt create the login (later used to authorize to
> save worlds), and is there an equivalent way to set it up for the
> localhost install?
> 3) did someone reading this tried to install core to share notes
> Errors:
> -----------
> 1) Error on dragging out the cloud from PartsBin (similar errors in
> other situations):
> Error when trying to update
> AttributeConnection(PartsItem(Cloud,PartsSpace(PartsBin/Basic/)).loadedMetaInfo
> --> <lively.morphic.Box#E5AB3... -
> PartsBinBrowser>.setMetaInfoOfSelectedItem) with value
> MetaInfo(PartsBin/Basic/Cloud):
> TypeError: Object Thu Nov 03 2011 19:13:58 GMT-0400 (EDT) has no method
> 'format'
> TypeError: Object Thu Nov 03 2011 19:13:58 GMT-0400 (EDT) has no method
> 'format'
>    at eval at <anonymous>
> (
>    at Array.map (native)
>    at Box.commitLogString (eval at <anonymous>
> (
>    at Box.setMetaInfoOfSelectedItem (eval at <anonymous>
> (
>    at
>    at AttributeConnection.update
> (
>    at PartItem.loadedMetaInfo
> (
>    at
>    at AttributeConnection.updater (eval at <anonymous>
> (
>    at AttributeConnection.update
> (
> 2) Cannot Save at all / Error on saving blank.xhtml as blank2.xhtml:
> "directory does not exist! Create it?"
> on OK:
> Problem saving
> #<NetRequestStatus{PUT,,403}>
> Thanks
> milan
> _______________________________________________
> lively-kernel mailing list
> lively-kernel at hpi.uni-potsdam.de
> http://lists.hpi.uni-potsdam.de/listinfo/lively-kernel

More information about the lively-kernel mailing list