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 데몬 및 프로세스 관리 ADMINPLAY 2009-05-11 17326
266 안녕하세요'ㅅ' 오늘가입해서 이런질문을 드려봅니다~ 'ㅅ' [1] chustyle 2010-12-06 17362
265 사이트 이전시 - rsync ADMINPLAY 2009-03-17 17418
264 [설정] 로그 파일 관리 - logrotate ADMINPLAY 2010-12-23 17486
263 [rsync]서버 백업및 동기화 ADMINPLAY 2009-05-17 17571
262 슈퍼데몬 : xinetd ADMINPLAY 2009-05-11 17605
261 퍼미션 설정 ADMINPLAY 2009-05-11 17609
260 dd 명령어 ADMINPLAY 2012-01-16 17632
259 /etc/syslog.conf 의 이해 ADMINPLAY 2012-01-16 17700
258 [리눅스] 파일의 속성관리를 위한 chattr실무활용 -1- ADMINPLAY 2009-09-09 17870
257 SSH 서버 설정 파일(sshd_config) ADMINPLAY 2009-05-17 18031
256 Cent5 ffmpeg 설치 ADMINPLAY 2009-03-17 18040
255 리눅스 커널 버전 편하게 분석할 수 있는 사이트 ADMINPLAY 2012-01-16 18238
254 vi편집기 행번호 표시, 들여쓰기 ADMINPLAY 2009-05-22 18255
253 리눅스 - 하드디스크 추가, 파티션 및 마운트 ADMIN 2008-11-12 18315
252 phpmyadmin 에 로그인시 The configuration file now nee... ADMINPLAY 2011-06-10 18430
251 텍스트 모드 설정 유틸리티 Setup 없다 file ADMINPLAY 2011-07-29 18430
250 ssh 로 상대방 서버에 자동으로 접속하기 ADMINPLAY 2011-05-03 18511
249 파일시스템 생성 mount 및 포맷 ext3 ext4 ADMINPLAY 2012-01-16 18546
248 X-Window 설치후 한글 깨짐발생 ADMINPLAY 2012-01-16 18629

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234