Skip to content

sakai 2.7.0 source installation in ubuntu 10.04.1

조회 수 7882 추천 수 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
367 linux daemon (리눅스 데몬 설명) ADMINPLAY 2014-02-26 648088
366 대용량 HDD 파티셔닝(Mass storage Partitioning) (GPT 파... ADMINPLAY 2010-04-14 74311
365 FFMPEG를 가장쉽게 설치하는 방법(ffmpeg-php 등) ADMINPLAY 2010-05-03 67082
364 rrdtool 컴파일시 에러 configure: error: Please fix the... ADMINPLAY 2009-08-08 65441
363 커널 2.6으로 업그레이드!「A to Z」 ADMINPLAY 2009-08-08 65086
362 e2fsck - 파일 시스템 복구 및 검사. - fsck file ADMINPLAY 2010-09-12 60904
361 배치파일을 이용한 백업방법 l2zeo 2010-03-31 59533
360 Maskrading ADMIN 2008-11-11 59460
359 시스템 백업과 응급 복구 ADMINPLAY 2009-05-11 59417
358 리눅스 전원부터 부팅이 되기까지의 과정이해 ADMIN 2008-11-11 58294
357 리눅스 디렉토리 구조와 파티션 관리의 기본 ADMINPLAY 2009-05-22 58242
356 hdparm 세부옵션 ADMINPLAY 2012-01-16 55807
355 CentOS 설치 - VMware 상에서 CentOS 설치하기 file l2zeo 2010-02-24 52101
354 Red Hat Linux 9 ADMINPLAY 2009-09-24 51551
353 Dell OMSA 설치 및 이용방법 ADMINPLAY 2014-08-13 50481
352 2TB이상의 Disk를 사용한 Raid6 구성 ADMINPLAY 2015-08-08 46897
351 sulinux 1.0. 서버 패키지 리스트 ADMINPLAY 2011-04-30 46210
350 ORA-01031: insufficient privileges 오류 ADMINPLAY 2010-02-24 41013
349 [APM] 리눅스에서 Apache, PHP, MySQL 등 제거 방법 ADMINPLAY 2009-06-29 39388
348 AIX 필수 명령어 ADMINPLAY 2009-12-10 39131

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234