Skip to content

sakai 2.7.0 source installation in ubuntu 10.04.1

조회 수 7887 추천 수 0 2012.10.31 17:08:56

installation on VirtualBox
OS Ubuntu 10.04.1 LTS
(LAMP & openssh configuration from installation)
Everything was conducted as root user(tired of sudo)

apt-get update
apt-get upgrade

(takes a little long)

root at ubuntu2011new:~#
root at ubuntu2011new:~# cd ..
root at ubuntu2011new:/# ls
bin    dev   initrd.img  media  proc  selinux  tmp  vmlinuz
boot   etc   lib         mnt    root  srv      usr
cdrom  home  lost+found  opt    sbin  sys      var
root at ubuntu2011new:/# cd etc
root at ubuntu2011new:/etc# cd apt
root at ubuntu2011new:/etc/apt# ls
apt.conf.d     secring.gpg   sources.list~   trustdb.gpg  trusted.gpg~
preferences.d  sources.list  sources.list.d  trusted.gpg  trusted.gpg.d
root at ubuntu2011new:/etc/apt# vi sources.list

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu lucid partner
# deb-src http://archive.canonical.com/ubuntu lucid partner

deb http://archive.canonical.com/ubuntu lucid partner
deb-src http://archive.canonical.com/ubuntu lucid partner

(ctrl O) ^O
enter
(ctrl X) ^X


apt-get update
apt-get upgrade

root at ubuntu2011new:/etc/apt# apt-get install sun-java6-jdk

root at ubuntu2011new:~# java -version

java version "1.6.0_22"
Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
Java HotSpot(TM) Client VM (build 17.1-b03, mixed mode, sharing)
root at ubuntu2011new:~#
root at ubuntu2011new:~# cd ..
root at ubuntu2011new:/# cd opt
root at ubuntu2011new:/opt# wget
http://apache.tsl.gr/tomcat/tomcat-5/v5.5.31/bin/apache-tomcat-5.5.31.tar.gz
root at ubuntu2011new:/opt# tar xvzf apache-tomcat-5.5.31.tar.gz
root at ubuntu2011new:/opt# ln -s /opt/apache-tomcat-5.5.31 tomcat
root at ubuntu2011new:/opt# ls
apache-tomcat-5.5.31  apache-tomcat-5.5.31.tar.gz  tomcat
root at ubuntu2011new:/opt#
root at ubuntu2011new:/opt# cd tomcat
root at ubuntu2011new:/opt/tomcat# ls
bin     conf     logs    RELEASE-NOTES  server  temp     work
common  LICENSE  NOTICE  RUNNING.txt    shared  webapps
root at ubuntu2011new:/opt/tomcat# cd conf
root at ubuntu2011new:/opt/tomcat/conf# ls
Catalina             context.xml         server.xml
catalina.policy      logging.properties  tomcat-users.xml
catalina.properties  server-minimal.xml  web.xml
root at ubuntu2011new:/opt/tomcat/conf# vi server.xml

(Changing ports for tomcat)  (i changed them because i will try to integrate
the BigBlueButton api - BigBlueButton is using nginx that listens to 8080 so
....)

###############################################################
<Server port="9005" shutdown="SHUTDOWN">

<!-- Define a non-SSL HTTP/1.1 Connector on port 9090 -->
    <Connector port="9090" maxHttpHeaderSize="8192"
               maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
               enableLookups="false" redirectPort="8443" acceptCount="100"
               connectionTimeout="20000" disableUploadTimeout="true" />
    <!-- Note : To disable connection timeouts, set connectionTimeout value
     to 0 -->

 <!-- Define a SSL HTTP/1.1 Connector on port 9443 -->
    <!--
    <Connector port="9443" maxHttpHeaderSize="8192"
               maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
               enableLookups="false" disableUploadTimeout="true"
               acceptCount="100" scheme="https" secure="true"
               clientAuth="false" sslProtocol="TLS" />
    -->

    <!-- Define an AJP 1.3 Connector on port 9009 -->
    <Connector port="9009"
               enableLookups="false" redirectPort="9443" protocol="AJP/1.3"
/>

    <!-- Define a Proxied HTTP/1.1 Connector on port 9092 -->
    <!-- See proxy documentation for more information about using this. -->
    <!--
    <Connector port="9092"
               maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
               enableLookups="false" acceptCount="100"
connectionTimeout="20000"
               proxyPort="80" disableUploadTimeout="true" />

####################################################################


root at ubuntu2011new:~# cd ..
root at ubuntu2011new:/# cd opt
root at ubuntu2011new:/opt# ls
apache-tomcat-5.5.31  apache-tomcat-5.5.31.tar.gz  tomcat

root at ubuntu2011new:/opt# cd

root at ubuntu2011new:~# export JAVA_HOME=/usr/lib/jvm/java-6-sun
root at ubuntu2011new:~# export PATH=$PATH:$JAVA_HOME/bin

root at ubuntu2011new:~# apt-get install maven2

root at ubuntu2011new:~# export MAVEN_HOME=/usr
root at ubuntu2011new:~# export PATH=$PATH:$MAVEN_HOME/bin
root at ubuntu2011new:~# export MAVEN_OPTS='-Xms512m -Xmx1024m -XX:PermSize=64m
-XX:MaxPermSize=128m'

root at ubuntu2011new:~# cd ..
root at ubuntu2011new:/# cd opt
root at ubuntu2011new:/opt#

root at ubuntu2011new:/opt# wget
http://source.sakaiproject.org/release/2.7.0/artifacts/sakai-src-2.7.0.tgz
root at ubuntu2011new:/opt# tar xvzf sakai-src-2.7.0.tgz

root at ubuntu2011new:/opt# cd

root at ubuntu2011new:~# export CATALINA_HOME=/opt/tomcat
root at ubuntu2011new:~# export PATH=$PATH:$CATALINA_HOME/bin

You can make a sakai directory in:
root at ubuntu2011new:~# cd ..
root at ubuntu2011new:/# cd opt
root at ubuntu2011new:/opt# cd tomcat
root at ubuntu2011new:/opt/tomcat# mkdir sakai

From:
root at ubuntu2011new:/opt# cd
sakai-src-2.7.0/config/configuration/bundles/src/bundle/org/sakaiproject/config/bundle
root at ubuntu2011new:/opt/sakai-src-2.7.0/config/configuration/bundles/src/bundle/org/sakaiproject/config/bundle#
ls
default.sakai.properties  demo.sakai.properties  sample.sakai.properties
root at ubuntu2011new:/opt/sakai-src-2.7.0/config/configuration/bundles/src/bundle/org/sakaiproject/config/bundle#
cp default.sakai.properties /opt/sakai/sakai.properties

cd
root at ubuntu2011new:~# cd ..
root at ubuntu2011new:/# cd opt/tomcat/sakai
root at ubuntu2011new:/opt/tomcat/sakai# vi sakai.properties

change this:

# INSTITUTIONAL "PERSONALIZATION"
# ########################################################################

# Identify your application server with a short name, unique among the
serve$
# choose a server id even if you are running a single app server
serverId=192.168.178.56

# The URL to the server, including transport, DNS name, and port, if any.
serverUrl=http://192.168.178.56:9090

# the DNS name of the server.
serverName=localhost

ctrl O
enter
ctrl X
(Here i used my internal ip)

Then cd

root at ubuntu2011new:~# export SAKAI_HOME=/opt/tomcat/sakai
root at ubuntu2011new:~# 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'


root at ubuntu2011new:/opt/tomcat# ls
bin         conf     NOTICE         sakai   temp
common      LICENSE  RELEASE-NOTES  server  webapps
components  logs     RUNNING.txt    shared  work
root at ubuntu2011new:/opt/tomcat#


root at ubuntu2011new:~# mkdir -p .m2/repository
root at ubuntu2011new:~# cd .m2
root at ubuntu2011new:~/.m2# ls
repository
root at ubuntu2011new:~/.m2# vi settings.xml

copy this from
https://confluence.sakaiproject.org/display/DOC/Sakai+2.7;jsessionid=0C0D6619DEBC7C775ED16AD8C5E44922
(4.3 Create a Maven settings.xml file)

<settings xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<profiles>
<profile>
<id>tomcat5x</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<appserver.id>tomcat5x</appserver.id>
<appserver.home>/opt/tomcat</appserver.home>
<maven.tomcat.home>/opt/tomcat</maven.tomcat.home>
<sakai.appserver.home>/opt/tomcat</sakai.appserver.home>
<surefire.reportFormat>plain</surefire.reportFormat>
<surefire.useFile>false</surefire.useFile>
</properties>
</profile>
</profiles>
</settings>

to the ~/.m2# vi settings.xml

change   <maven.tomcat.home>/opt/tomcat</maven.tomcat.home>

to        <maven.tomcat.home>${env.CATALINA_HOME}</maven.tomcat.home>


then:

root at ubuntu2011new:~# cd
root at ubuntu2011new:~# cd ..
root at ubuntu2011new:/# cd opt
root at ubuntu2011new:/opt# cd sakai-src-2.7.0
root at ubuntu2011new:/opt/sakai-src-2.7.0# cd master
root at ubuntu2011new:/opt/sakai-src-2.7.0/master# mvn clean install    (Wait a
little .......)

Then:

root at ubuntu2011new:/opt/sakai-src-2.7.0/master# cd ..
root at ubuntu2011new:/opt/sakai-src-2.7.0# mvn clean install sakai:deploy
(don't add   -Dmaven.tomcat.home=/pathto/tomcathome    because you have
already change it in the settings.xml under .m2 directory to
<maven.tomcat.home>${env.CATALINA_HOME}</maven.tomcat.home>)

after a while
...........................................................waiting and
waiting and waiting
.........................................................................
and if you are lucky or havent done anything wrong (maybe me maybe you)
you have it

[INFO] sakai-usermembership-tool ............................. SUCCESS
[5.759s]
[INFO]
------------------------------------------------------------------------
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 77 minutes 2 seconds
[INFO] Finished at: Mon Jan 03 22:35:15 EET 2011
[INFO] Final Memory: 201M/714M
[INFO]
------------------------------------------------------------------------
root at ubuntu2011new:/opt/sakai-src-2.7.0#

apply after to be sure the following (just to be sure lol):

export JAVA_HOME=/usr/lib/jvm/java-6-sun
export PATH=$PATH:$JAVA_HOME/bin
export CATALINA_HOME=/opt/tomcat
export PATH=$PATH:$CATALINA_HOME/bin
export SAKAI_HOME=/opt/tomcat/sakai
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'

then go to

root at ubuntu2011new:~# cd ..
root at ubuntu2011new:/# cd opt/tomcat/bin/
root at ubuntu2011new:/opt/tomcat/bin# ls
bootstrap.jar                  i64                    tomcat5.exe
catalina.bat                   jmxaccessor-tasks.xml  tomcat5w.exe
catalina.sh                    service.bat            tomcat-juli.jar
catalina-tasks.xml             setclasspath.bat       tomcat-native.tar.gz
commons-daemon.jar             setclasspath.sh        tool-wrapper.bat
commons-daemon-native.tar.gz   shutdown.bat           tool-wrapper.sh
commons-logging-api-1.1.1.jar  shutdown.sh            version.bat
cpappend.bat                   startup.bat            version.sh
digest.bat                     startup.sh             x64
digest.sh                      tcnative-1.dll
root at ubuntu2011new:/opt/tomcat/bin# sh startup.sh

(then you have the following)

Using CATALINA_BASE:   /opt/tomcat
Using CATALINA_HOME:   /opt/tomcat
Using CATALINA_TMPDIR: /opt/tomcat/temp
Using JRE_HOME:        /usr/lib/jvm/java-6-sun
Using CLASSPATH:       /opt/tomcat/bin/bootstrap.jar

go to your browser (i used google chrome)
type 192.168.178.56:9090/portal (dont type this 192.168.178.56  type your
own)

wait a little dont be dissapointed (i was because my laptop is too slow)

and SUCCESS!!!!!!!!

(if somebody can put all the enviromental variables somewhere so as not to
copy and type them every time and share it please do)
#########################################################################################################################################
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 MAVEN_OPTS='-Xms512m -Xmx1024m -XX:PermSize=64m -XX:MaxPermSize=128m'
export CATALINA_HOME=/opt/tomcat
export PATH=$PATH:$CATALINA_HOME/bin
export SAKAI_HOME=/opt/tomcat/sakai
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'
##############################################################################################################################################

I hope the above come handy to somebody.
Please if you see something wrong or a better way post it
It worked for me though!!!
Have a Happy New Year!!!

Yiorgos Katopodis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/production/attachments/20110104/57c5f38d/attachment-0001.html
-------------- next part --------------
?installation on VirtualBox
OS Ubuntu 10.04.1lts
(LAMP & open SSH configuration from installation)
Everything was conducted as root user(tired of sudo)

apt-get update
apt-get upgrade

(takes a little long)

root at ubuntu2011new:~#
root at ubuntu2011new:~# cd ..
root at ubuntu2011new:/# ls
bin    dev   initrd.img  media  proc  selinux  tmp  vmlinuz
boot   etc   lib         mnt    root  srv      usr
cdrom  home  lost+found  opt    sbin  sys      var
root at ubuntu2011new:/# cd etc
root at ubuntu2011new:/etc# cd apt
root at ubuntu2011new:/etc/apt# ls
apt.conf.d     secring.gpg   sources.list~   trustdb.gpg  trusted.gpg~
preferences.d  sources.list  sources.list.d  trusted.gpg  trusted.gpg.d
root at ubuntu2011new:/etc/apt# vi sources.list

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu lucid partner
# deb-src http://archive.canonical.com/ubuntu lucid partner

deb http://archive.canonical.com/ubuntu lucid partner
deb-src http://archive.canonical.com/ubuntu lucid partner

(ctrl O) ^O
enter
(ctrl X) ^X


apt-get update
apt-get upgrade

root at ubuntu2011new:/etc/apt# apt-get install sun-java6-jdk

root at ubuntu2011new:~# java -version

java version "1.6.0_22"
Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
Java HotSpot(TM) Client VM (build 17.1-b03, mixed mode, sharing)
root at ubuntu2011new:~#
root at ubuntu2011new:~# cd ..
root at ubuntu2011new:/# cd opt
root at ubuntu2011new:/opt# wget http://apache.tsl.gr/tomcat/tomcat-5/v5.5.31/bin/apache-tomcat-5.5.31.tar.gz
root at ubuntu2011new:/opt# tar xvzf apache-tomcat-5.5.31.tar.gz
root at ubuntu2011new:/opt# ln -s /opt/apache-tomcat-5.5.31 tomcat
root at ubuntu2011new:/opt# ls
apache-tomcat-5.5.31  apache-tomcat-5.5.31.tar.gz  tomcat
root at ubuntu2011new:/opt#
root at ubuntu2011new:/opt# cd tomcat
root at ubuntu2011new:/opt/tomcat# ls
bin     conf     logs    RELEASE-NOTES  server  temp     work
common  LICENSE  NOTICE  RUNNING.txt    shared  webapps
root at ubuntu2011new:/opt/tomcat# cd conf
root at ubuntu2011new:/opt/tomcat/conf# ls
Catalina             context.xml         server.xml
catalina.policy      logging.properties  tomcat-users.xml
catalina.properties  server-minimal.xml  web.xml
root at ubuntu2011new:/opt/tomcat/conf# vi server.xml

(Changing ports for tomcat)  (i changed them because i will try to integrate the BigBlueButton api - BigBlueButton is using nginx that listens to 8080 so ....)

###############################################################
<Server port="9005" shutdown="SHUTDOWN">

<!-- Define a non-SSL HTTP/1.1 Connector on port 9090 -->
    <Connector port="9090" maxHttpHeaderSize="8192"
               maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
               enableLookups="false" redirectPort="8443" acceptCount="100"
               connectionTimeout="20000" disableUploadTimeout="true" />
    <!-- Note : To disable connection timeouts, set connectionTimeout value
     to 0 -->

 <!-- Define a SSL HTTP/1.1 Connector on port 9443 -->
    <!--
    <Connector port="9443" maxHttpHeaderSize="8192"
               maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
               enableLookups="false" disableUploadTimeout="true"
               acceptCount="100" scheme="https" secure="true"
               clientAuth="false" sslProtocol="TLS" />
    -->

    <!-- Define an AJP 1.3 Connector on port 9009 -->
    <Connector port="9009"
               enableLookups="false" redirectPort="9443" protocol="AJP/1.3" />

    <!-- Define a Proxied HTTP/1.1 Connector on port 9092 -->
    <!-- See proxy documentation for more information about using this. -->
    <!--
    <Connector port="9092"
               maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
               enableLookups="false" acceptCount="100" connectionTimeout="20000"
               proxyPort="80" disableUploadTimeout="true" />

####################################################################


root at ubuntu2011new:~# cd ..
root at ubuntu2011new:/# cd opt
root at ubuntu2011new:/opt# ls
apache-tomcat-5.5.31  apache-tomcat-5.5.31.tar.gz  tomcat

root at ubuntu2011new:/opt# cd

root at ubuntu2011new:~# export JAVA_HOME=/usr/lib/jvm/java-6-sun
root at ubuntu2011new:~# export PATH=$PATH:$JAVA_HOME/bin

root at ubuntu2011new:~# apt-get install maven2

root at ubuntu2011new:~# export MAVEN_HOME=/usr
root at ubuntu2011new:~# export PATH=$PATH:$MAVEN_HOME/bin
root at ubuntu2011new:~# export MAVEN_OPTS='-Xms512m -Xmx1024m -XX:PermSize=64m -XX:MaxPermSize=128m'

root at ubuntu2011new:~# cd ..
root at ubuntu2011new:/# cd opt
root at ubuntu2011new:/opt#

root at ubuntu2011new:/opt# wget http://source.sakaiproject.org/release/2.7.0/artifacts/sakai-src-2.7.0.tgz
root at ubuntu2011new:/opt# tar xvzf sakai-src-2.7.0.tgz

root at ubuntu2011new:/opt# cd

root at ubuntu2011new:~# export CATALINA_HOME=/opt/tomcat
root at ubuntu2011new:~# export PATH=$PATH:$CATALINA_HOME/bin

You can make a sakai directory in:
root at ubuntu2011new:~# cd ..
root at ubuntu2011new:/# cd opt
root at ubuntu2011new:/opt# cd tomcat
root at ubuntu2011new:/opt/tomcat# mkdir sakai

From:
root at ubuntu2011new:/opt# cd sakai-src-2.7.0/config/configuration/bundles/src/bundle/org/sakaiproject/config/bundle
root at ubuntu2011new:/opt/sakai-src-2.7.0/config/configuration/bundles/src/bundle/org/sakaiproject/config/bundle# ls
default.sakai.properties  demo.sakai.properties  sample.sakai.properties
root at ubuntu2011new:/opt/sakai-src-2.7.0/config/configuration/bundles/src/bundle/org/sakaiproject/config/bundle# cp default.sakai.properties /opt/sakai/sakai.properties

cd
root at ubuntu2011new:~# cd ..
root at ubuntu2011new:/# cd opt/tomcat/sakai
root at ubuntu2011new:/opt/tomcat/sakai# vi sakai.properties

change this:

# INSTITUTIONAL "PERSONALIZATION"
# ########################################################################

# Identify your application server with a short name, unique among the serve$
# choose a server id even if you are running a single app server
serverId=192.168.178.56

# The URL to the server, including transport, DNS name, and port, if any.
serverUrl=http://192.168.178.56:9090

# the DNS name of the server.
serverName=localhost

ctrl O
enter
ctrl X
(Here i used my internal ip)

Then cd

root at ubuntu2011new:~# export SAKAI_HOME=/opt/tomcat/sakai
root at ubuntu2011new:~# 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'


root at ubuntu2011new:/opt/tomcat# ls
bin         conf     NOTICE         sakai   temp
common      LICENSE  RELEASE-NOTES  server  webapps
components  logs     RUNNING.txt    shared  work
root at ubuntu2011new:/opt/tomcat#

 
root at ubuntu2011new:~# mkdir -p .m2/repository
root at ubuntu2011new:~# cd .m2
root at ubuntu2011new:~/.m2# ls
repository
root at ubuntu2011new:~/.m2# vi settings.xml

copy this from https://confluence.sakaiproject.org/display/DOC/Sakai+2.7;jsessionid=0C0D6619DEBC7C775ED16AD8C5E44922
(4.3 Create a Maven settings.xml file)

<settings xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<profiles>
<profile>
<id>tomcat5x</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<appserver.id>tomcat5x</appserver.id>
<appserver.home>/opt/tomcat</appserver.home>
<maven.tomcat.home>/opt/tomcat</maven.tomcat.home>
<sakai.appserver.home>/opt/tomcat</sakai.appserver.home>
<surefire.reportFormat>plain</surefire.reportFormat>
<surefire.useFile>false</surefire.useFile>
</properties>
</profile>
</profiles>
</settings>

to the ~/.m2# vi settings.xml

change   <maven.tomcat.home>/opt/tomcat</maven.tomcat.home>

to        <maven.tomcat.home>${env.CATALINA_HOME}</maven.tomcat.home>


then:

root at ubuntu2011new:~# cd
root at ubuntu2011new:~# cd ..
root at ubuntu2011new:/# cd opt
root at ubuntu2011new:/opt# cd sakai-src-2.7.0
root at ubuntu2011new:/opt/sakai-src-2.7.0# cd master
root at ubuntu2011new:/opt/sakai-src-2.7.0/master# mvn clean install    (Wait a little .......)

Then:

root at ubuntu2011new:/opt/sakai-src-2.7.0/master# cd ..
root at ubuntu2011new:/opt/sakai-src-2.7.0# mvn clean install sakai:deploy (don't add   -Dmaven.tomcat.home=/pathto/tomcathome    because you have already change it in the settings.xml under .m2 directory to <maven.tomcat.home>${env.CATALINA_HOME}</maven.tomcat.home>)

after a while ...........................................................waiting and waiting and waiting .........................................................................
and if you are lucky or havent done anything wrong (maybe me maybe you)
you have it

[INFO] sakai-usermembership-tool ............................. SUCCESS [5.759s]
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 77 minutes 2 seconds
[INFO] Finished at: Mon Jan 03 22:35:15 EET 2011
[INFO] Final Memory: 201M/714M
[INFO] ------------------------------------------------------------------------
root at ubuntu2011new:/opt/sakai-src-2.7.0#

apply after to be sure the following (just to be sure lol):

export JAVA_HOME=/usr/lib/jvm/java-6-sun
export PATH=$PATH:$JAVA_HOME/bin
export CATALINA_HOME=/opt/tomcat
export PATH=$PATH:$CATALINA_HOME/bin
export SAKAI_HOME=/opt/tomcat/sakai
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'

then go to

root at ubuntu2011new:~# cd ..
root at ubuntu2011new:/# cd opt/tomcat/bin/
root at ubuntu2011new:/opt/tomcat/bin# ls
bootstrap.jar                  i64                    tomcat5.exe
catalina.bat                   jmxaccessor-tasks.xml  tomcat5w.exe
catalina.sh                    service.bat            tomcat-juli.jar
catalina-tasks.xml             setclasspath.bat       tomcat-native.tar.gz
commons-daemon.jar             setclasspath.sh        tool-wrapper.bat
commons-daemon-native.tar.gz   shutdown.bat           tool-wrapper.sh
commons-logging-api-1.1.1.jar  shutdown.sh            version.bat
cpappend.bat                   startup.bat            version.sh
digest.bat                     startup.sh             x64
digest.sh                      tcnative-1.dll
root at ubuntu2011new:/opt/tomcat/bin# sh startup.sh

(then you have the following)

Using CATALINA_BASE:   /opt/tomcat
Using CATALINA_HOME:   /opt/tomcat
Using CATALINA_TMPDIR: /opt/tomcat/temp
Using JRE_HOME:        /usr/lib/jvm/java-6-sun
Using CLASSPATH:       /opt/tomcat/bin/bootstrap.jar

go to your browser (i used google chrome)
type 192.168.178.56:9090/portal

wait a little dont be dissapointed (i was because my laptop is too slow)

and SUCCESS!!!!!!!!

(if somebody can put all the enviromental variables somewhere so as not to copy them every time and share it please do)
#########################################################################################################################################
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 MAVEN_OPTS='-Xms512m -Xmx1024m -XX:PermSize=64m -XX:MaxPermSize=128m'
export CATALINA_HOME=/opt/tomcat
export PATH=$PATH:$CATALINA_HOME/bin
export SAKAI_HOME=/opt/tomcat/sakai
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'
##############################################################################################################################################

I hope the above come handy to somebody.
Please if you see something wrong or a better way post it
It worked for me though!!!
Have a Happy New Year!!!

List of Articles
번호 제목 글쓴이 날짜sort 조회 수
327 CentOS 6.5 에서 VirtualBox 4.3 설치후 VirtualBox 구동... ADMINPLAY 2014-02-14 7796
326 VirtualBox 4.3 Released – Install on RHEL/CentOS/Fedor... ADMINPLAY 2014-02-14 7276
325 ctime, mtime, atime 다른 점 설명 ADMINPLAY 2014-02-07 5955
324 ZFS 파일에 ACL 설정 ADMINPLAY 2014-02-03 5278
323 ll 명령시 날짜 전체가 보이도록 하기 ADMINPLAY 2014-01-02 5433
322 ModSecurity 로그파일의 사이즈가 너무 큰데 이를 날짜나 ... file ADMINPLAY 2013-12-29 6537
321 top 화면 내용중 load average와 PRI : priority(우선순위... ADMINPLAY 2013-12-24 5142
320 hddtemp와 mrtg를 이용한 하드디스크 온도 체크 file ADMINPLAY 2013-12-19 5456
319 tar 압축을 실수로 디렉토리 생성 안하고 풀었을때 대처법 ADMINPLAY 2013-09-22 5390
318 windows smartctl ADMINPLAY 2013-09-22 5278
317 HDD Guardian (a graphical user interface for smartctl) ADMINPLAY 2013-09-22 4958
316 리눅스 벤치마크 프로그램 목록 ADMINPLAY 2013-09-09 7564
315 Adaptec 컨트롤러 StorMan 에러 및 각종 확인 방법 ADMINPLAY 2013-06-12 8987
314 linux 커널 파라메터 수정 ADMINPLAY 2013-05-12 5557
313 특정 데몬의 메모리 점유율 확인하기 ADMINPLAY 2013-05-12 6133
312 make 정리 ADMINPLAY 2013-05-12 5270
311 What are the bandwidth requirements for running a BigB... ADMINPLAY 2013-05-06 5922
310 스트리밍 서비스 위한 각 회사 와우자,어도비,마이크로 ... ADMINPLAY 2013-05-06 9891
309 파일비교 명령어 diff 사용법 ADMINPLAY 2013-05-03 9648
308 웹서버 트래픽 시각화 logstalgia l2zeo 2013-05-03 6093

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234