[Pharo-project] installing a cog image to deploy pier

Yanni Chiu yanni at rogers.com
Tue Nov 23 02:50:40 CET 2010


On 22/11/10 6:43 PM, sergio_101 wrote:
> http://www.mirandabanda.org/files/Cog/VM/
>
> but i am not sure how to install it.
>
> i have tried a few different things that i thought made sense, but
> they didn't work..
>
> anyone have any ideas?

Create a squeakvm directory somewhere on your server.
Download the coglinux.tgz file from the link above, to the squeakvm 
directory.
Un-tar and un-gzip it using:
     tar -ztvf coglinux.tgz
Create a shell script to start your image. The shell script should 
contain something like (adjust the directory to be where you created 
your squeakvm directory):

==========
#!/bin/bash

# vm configuration
if [ `uname` = "Linux" ]
then
         PHARO_VM="/home/yanni/apps/squeakvm/coglinux/bin/squeak"
         PHARO_PARAM="-mmap 100m -vm-sound-null -vm-display-X11 -headless"
elif [ `uname` = "Darwin" ]
then
 
PHARO_VM="/Users/yanni/apps/squeakvm/Cog.app/Contents/MacOS/Croquet"
         PHARO_PARAM="-headless"
else
         echo "Unsupported OS: `uname`"
         exit 1
fi

# start the vm
"$PHARO_VM" $PHARO_PARAM "$IMAGE" "$SCRIPT"
==========





More information about the Pharo-project mailing list