[Deploying Sakai] sakai 2.7.0 source installation in ubuntu 10.04.1

Mike De Simone michael.desimone at rsmart.com
Thu Feb 10 08:13:42 PST 2011


I look at it like this:  maven options (MAVEN_OPTS and M2_HOME) are for
compile-time and so seem naturally to go into /etc/profile or
$HOME/.bash_profile.  And JAVA_HOME and the PATH updates for maven/bin and
java/bin also are useful there.

JAVA_OPTS are for when tomcat is starting up and to me naturally belong in
setenv.sh.  Perhaps a default set is ok to have in the global settings
though.

CATALINA_HOME is automatically set by catalina.sh and so I usually don't
bother setting that on a user-level basis in case I have
multiple tomcats I'm testing with.


Thanks,

-------------------------------
Mike DeSimone
Lead Systems Engineer
*r**Smart* | 602-490-0473


On Thu, Feb 10, 2011 at 02:55, Bob Nguyen <bobnguyen at dmu.ac.uk> wrote:

> yiorgos <yiorgoskatopodis at ...> writes:
>
> >
> >
> > I have made a small mistake in the list. Please see the bold letters
> >
> > root <at>
> ubuntu2011new:/opt/sakai-src-2.7.0/config/configuration/bundles/src/
> bundle/org/sakaiproject/config/bundle#
> > cp default.sakai.properties /opt/tomcat/sakai/sakai.properties
> >
> > cd
> > root <at> ubuntu2011new:~# cd ..
> > root <at> ubuntu2011new:/# cd opt/tomcat/sakai
> > root <at> ubuntu2011new:/opt/tomcat/sakai# nano sakai.properties
> >
> > change this:
> >
> > # INSTITUTIONAL "PERSONALIZATION"
> >
> > sorry if i confused anyone!!!
> >
> > Yiorgos Katopodis
>
>
> Hello,
>
> My name is Bob, from the Mechatronic Research Centre,
> De Montfort University, Leicester, UK.
>
> Many thanks for your note. I followed it and Sakai 2.7.1 ran smoothly
> on my PC Windows 7 > VMware Server > Ubuntu 10.10.
>
> Just to contribute that most of the export commands could be store in
>  ~/.bash_login, including:
>
> > export JAVA_HOME=/usr/lib/jvm/java-6-sun
> > export PATH=$PATH:$JAVA_HOME/bin
> > export MAVEN_HOME=/usr
> > export PATH=$PATH:$MAVEN_HOME/bin
> > export CATALINA_HOME=/opt/tomcat
> > export PATH=$PATH:$CATALINA_HOME/bin
> > export SAKAI_HOME=/opt/tomcat/sakai
>
> Just "nano ~/.bash_login" and type those export commands in then save the
> file, it will be done automatically from your next log in as root.
> And that could save you some minutes.
>
> However, I am not sure about the other two export commands for £MAVEN_OPTS
> and $JAVA_OPTS. From the Sakai Gateway Installation guide, they suggest us
> to export $JAVA_OPTS inside $CATALINA_HOME/bin/setenv.sh but it did not
> work for me. Therefore I still have to type in manually everytime I log in.
>
> > export MAVEN_OPTS='-Xms512m -Xmx1024m -XX:PermSize=64m
> -XX:MaxPermSize=128m'
>
> > export JAVA_OPTS='-server -Xms512m -Xmx1024m -XX:PermSize=128m
> -XX:MaxPermSize=512m
> > -XX:NewSize=192m -XX:MaxNewSize=384m -Djava.awtECHO.headless=true
> -Dhttp.agent=Sakai
> > -Dsakai.home=/opt/tomcat/sakai
> > -Dorg.apache.jasperRT.compiler.Parser.STRICT_QUOTE_ESCAPING=false
> -Dsun.lang.ClassLoader.allowArraySyntax=true'
>
> If you know wherether we can put the two export commands for $XXX_OPTS,
> please let me know.
>
> Have a nice day,
>
> Bob
>
> _______________________________________________
> production mailing list
> production at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/production
>
> TO UNSUBSCRIBE: send email to
> production-unsubscribe at collab.sakaiproject.org with a subject of
> "unsubscribe"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/production/attachments/20110210/7cce9a88/attachment.html 


More information about the production mailing list