Skip to content

sakai 2.7.0 source installation in ubuntu 10.04.1

조회 수 7940 추천 수 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
267 time.bora.net 시간 동기화후 dovecot 데몬이 죽는 현상 해결 ADMINPLAY 2009-04-27 23932
266 [Linux] too many files 에러가 날때 ADMINPLAY 2009-09-20 23867
265 DRBD(Distributed Replicated Block Device) 에 대해서 ADMINPLAY 2012-01-16 23794
264 [Linux]RedHat Enterprise Linux 5 계열 VNC Server 설정 ADMINPLAY 2009-09-25 23752
263 리눅스에서 실수로 삭제한 파일을 복구 ADMIN 2008-12-10 23636
262 kernel: nf_conntrack: table full, dropping packet. ADMINPLAY 2009-11-26 23625
261 리눅스 로그파일 관리 [로그파일 삭제하는 방법] ADMINPLAY 2009-07-31 23580
260 libphp4.so: cannot restore segment prot after reloc: P... ADMINPLAY 2011-02-07 23577
259 리눅스 쓸데없는 파일,로그파일 주기적으로 삭제하기 ADMINPLAY 2009-07-02 23572
258 포트 포워딩 도구 ipmasqadm file ADMINPLAY 2009-09-08 23548
257 리눅스에서 베드섹터 검사명령어 ADMINPLAY 2009-08-18 23545
256 eAccelerator설치와 PHP 성능 향상 분석 ADMINPLAY 2011-06-22 23529
255 vi 이용한 파일내용 일괄변경 ADMINPLAY 2010-08-10 23526
254 서버 점검 : 자원 및 apache, mysql ADMIN 2008-12-10 23513
253 LVS 기능 및 장점과 설치프로그램 및 적용사이트 ADMINPLAY 2009-11-04 23437
252 Linux 파일 오픈 갯수 확인 ADMINPLAY 2009-05-10 23422
251 X-window 설치 ADMINPLAY 2010-03-24 23413
250 single mode readonly 파티션 rw로 다시 마운트 ADMINPLAY 2008-12-10 23354
249 인터넷 속도 단위 (bps, cps) ADMINPLAY 2009-08-03 23339
248 FreeBSD SSH 접속 안되요 ADMINPLAY 2009-07-14 23322

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234