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
307 <video>의 속성과 메소드 ADMINPLAY 2012-10-29 8226
306 SCM - 캐시 서버 구축 (Squid in Linux) ADMINPLAY 2014-04-27 8235
305 Zabbix 웹서비스 모니터링 ADMINPLAY 2014-07-07 8263
304 HTML5 멀티미디어 태그 - <video>,<audio>,<embed> ADMINPLAY 2012-05-02 8317
303 allowScriptAccess 설정 l2zeo 2012-05-05 8425
302 CentOS 자동로그인 설정 ADMINPLAY 2014-04-14 8831
301 클라이언트가 ssh접속시 서버의 RSA키값 변경으로 인한 접... ADMINPLAY 2016-05-20 8865
300 Bigbluebutton Installation Ubuntu ADMINPLAY 2013-04-11 8960
299 Adaptec 컨트롤러 StorMan 에러 및 각종 확인 방법 ADMINPLAY 2013-06-12 8986
298 [CentOS] sshfs - 리눅스 윈도우간 데이터 전송을 편리하게 file ADMINPLAY 2014-09-21 9422
297 How to Enable EPEL Repository for RHEL/CentOS 6/5 ADMINPLAY 2014-06-13 9532
296 파일비교 명령어 diff 사용법 ADMINPLAY 2013-05-03 9646
295 Sample rate(샘플레이트)와 Bit rate (비트레이트) ADMINPLAY 2012-12-28 9716
294 스트리밍 서비스 위한 각 회사 와우자,어도비,마이크로 ... ADMINPLAY 2013-05-06 9888
293 FreeBSD 참고 명령문 ( H/W 정보 확인 방법) ADMINPLAY 2012-10-22 10191
292 TaskSet 으로 Process의 사용 CPU를 지정해 보자! ADMINPLAY 2012-06-18 10221
291 rsync 를 이용하여 동기화 할때 특정 폴더 2개 이상 제외하기 ADMINPLAY 2012-05-09 10736
290 GSLB(Global Service Load Balancing) ADMINPLAY 2012-07-30 10892
289 OS X 10.9 매버릭스의 기본 파일공유 프로토콜은 AFP가 아... ADMINPLAY 2014-03-04 11025
288 Linux 마우스 휠 방향 바꾸기 (mac 처럼 마우스 휠 바꾸기) ADMINPLAY 2014-02-27 11846

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234