P. 1
DSpace Instalacao v05 Novo

DSpace Instalacao v05 Novo

|Views: 0|Likes:
Published by Angelo Silva

More info:

Published by: Angelo Silva on Aug 12, 2013
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as TXT, PDF, TXT or read online from Scribd
See more
See less

08/12/2013

pdf

text

original

_|_|_| _|_|_|_| _|_|_|_| _|_|_|_| _|_|_|_| _|_|_|_

|
_| _| _| _| _| _| _| _| _|
_| _| _| _| _| _| _| _| _|
_| _| _|_|_|_| _|_|_|_| _|_|_|_| _| _|_|_|
_| _| _| _| _| _| _| _|
_| _| _| _| _| _| _| _|
_|_|_| _|_|_|_| _| _| _| _|_|_|_| _|_|_|_|
================================================================================
=
INSTALAR O DSPACE 1.8.2 NO UBUNTU 10.04 com upgrade para 10.10 (ver documentação)
================================================================================
=
Obs: NÃO fazer o 'do-release-upgrade'
apt-get update
apt-get upgrade -y
apt-get install build-essential -y
#apt-get build-dep postgresql-8.4 -y
apt-get install postgresql-8.4 -y
useradd -m -s /bin/bash dspace
passwd dspace
mkdir /home/dspace/work
cd /home/dspace/work/
<<< JAVA >>>
#https://help.ubuntu.com/community/Java
apt-get remove --purge openjdk-6-jre && apt-get remove openjdk-6-doc openjdk-6-j
re-headless openjdk-6-jre-lib
dpkg --purge $(dpkg --list | grep ^rc | awk '{ print $2; }')
wget https://github.com/flexiondotorg/oab-java6/raw/0.2.6/oab-java.sh -O oab-jav
a.sh
chmod +x oab-java.sh
./oab-java.sh
apt-get update
apt-get install sun-java6-jdk -y
+-------------
|
OBSERVACAO
-remover ppa
add-apt-repository --remove ppa:someppa/ppa
-purgar ppa
apt-get install ppa-purge
ppa-purge ppa:someppa/ppa
|
+-------------
<<< MAVEN >>>
mkdir /usr/local/apache-maven
cd /home/dspace/work
wget http://apache.mirror.pop-sc.rnp.br/apache/maven/maven-3/3.0.4/binaries/apac
he-maven-3.0.4-bin.tar.gz
tar -zxvf apache-maven-3.0.4-bin.tar.gz
mv apache-maven-3.0.4 /usr/local/apache-maven
vi /etc/profile
+--------------
MAVEN_HOME=/usr/local/apache-maven/apache-maven-3.0.4
MAVEN_OPTS="-Xms256m -Xmx512m"
PATH=$MAVEN_HOME/bin:$PATH
+--------------
source /etc/profile
mvn --version
<<< ANT >>>
mkdir /usr/local/apache-ant
cd /home/dspace/work
wget http://ftp.unicamp.br/pub/apache/ant/binaries/apache-ant-1.8.4-bin.tar.gz
tar -zxvf apache-ant-1.8.4-bin.tar.gz
mv apache-ant-1.8.4 /usr/local/apache-ant
vi /etc/profile
+--------------
ANT_HOME=/usr/local/apache-ant/apache-ant-1.8.4
PATH=$ANT_HOME/bin:$PATH
+--------------
source /etc/profile
ant -version
<<< TOMCAT 7 >>>
mkdir /usr/local/apache-tomcat7
cd /home/dspace/work
wget http://apache.mirror.pop-sc.rnp.br/apache/tomcat/tomcat-7/v7.0.32/bin/apach
e-tomcat-7.0.32.tar.gz
tar -zxvf apache-tomcat-7.0.32.tar.gz
mv apache-tomcat-7.0.32 /usr/local/apache-tomcat7
vi /etc/profile
+--------------
CATALINA_HOME=/usr/local/apache-tomcat7
PATH=$CATALINA_HOME/bin:$PATH
+--------------
source /etc/profile
vi $CATALINA_HOME/bin/startup.sh
+--------------
JAVA_OPTS="-Xmx512M -Xms64M - Dfile.encoding=UTF-8 -Dcom.sun.management.jmxremot
e -XX:MaxPermSize=256m -XX:ParallelGCThreads=20 -XX:+UseConcMarkSweepGC -XX:+Use
ParNewGC "
+--------------
vi $CATALINA_HOME/conf/startup.sh
# adicionar a linha abaixo no Connector port="8080"
+--------------
URIEncoding="UTF-8"
+--------------
cd /usr/local
chmod 775 apache-* -R
chown root:dspace apache-* -R
vi /etc/init.d/tomcat
+--------------
#!/bin/sh
# Tomcat daemon start/stop script.
mode=$1
export TOMCAT_HOME=/usr/local/apache-tomcat7/apache-tomcat-7.0.32
export JAVA_HOME=/usr/lib/jvm/java-6-sun
case "$mode" in
'start')
# Start daemon
su -c "$TOMCAT_HOME/bin/startup.sh $mode" dspace
;;
'stop')
# Stop daemon. We use a signal here to avoid having to know the
# root password.
$TOMCAT_HOME/bin/shutdown.sh $mode
;;
*)
# usage
echo "usage: $0 start|stop"
exit 1
;;
esac
+--------------
chmod 775 /etc/init.d/tomcat
update-rc.d tomcat defaults
+--------------
|
Observação
service tomcat start
service tomcat stop
|
+--------------
--------------------------------------------------------------------------------
------------------------------
!!!!!!!!!!! PAREI AQUI !!!!!!!!!!!!
--------------------------------------------------------------------------------
------------------------------
vi /etc/apt/sources.list
:%s/lucid/maverick/g
:wq
apt-get update
apt-get upgrade
POSTGRESQL ????
cd /home/dspace
mkdir nome-do-repositorio
cd nome-do-repositorio
wget dspace-versao-src-release.tar.bz2 (http://sourceforge.net/projects/dspace)
tar -jxvf dspace-versao-src-release.tar.bz2
chown dspace.dspace dspace-versao-src-release -R
------------
vi /etc/postgresql/8.4/main/pg_hba.conf
local all dspace trust (tem que ser a primeira
linha de configuração de autenticação)
local all usr-nome-do-repositorio trust
/etc/init.d/postgresql-8.4 restart
------------
sudo su postgres
createuser -U postgres -d -A -P usr-nome-do-repositorio <====== ex.: usrarca
- digitar senha <==================================== ex.: pwdarca
- repetir senha <==================================== ex.: pwdarca
- responder: n
createdb -U postgres -E UNICODE -O usr-nome-do-repositorio nome-da-base
exit
cd /home/dspace/nome-do-repositorio/dspace-versao-src-release/dspace/config
vi dspace.cfg
+-------------------------------------------------------------------------------
-+
| Configurar
|
| ----------
|
| dspace.dir = /srv/nome-no-repositorio
|
| dspace.name = nome-do-repositorio
|
| db.url = jdbc:postgresql://localhost:5432/nome-da-base
|
| db.username = usr-nome-do-repositorio
|
| db.password = senha-usr-nome-do-repositorio
|
| mail.server = servidor-smtp
|
| mail.server.username = usuario-que-se-autentica-no-server-smtp
|
| mail.server.password = senha-do-usuario-que-se-autentica-no-server-smtp
|
| mail.from.address = conta-de-email-que-enviará-as-mensagens |
| feedback.recipient = conta-de-email-que-receberá-as-mensagens |
| mail.admin = conta-de-email-do-admin-do-sistema
|
| default.language = pt_BR
|
| handle.canonical.prefix = http://site-do-repositório/handle/ |
| handle.prefix = nome-que-represente-de-quem-é-o-handle (ex.: icict) |
| webui.submit.upload.required = true
|
| webui.strengths.show = true
|
| default.locale = pt_BR
|
| webui.supported.locales = pt_BR, en, es
|
| xmlui.supported.locales = pt_BR, en, es
|
+-------------------------------------------------------------------------------
-+
mkdir -p /srv/nome-do-repositorio
chown dspace.dspace /srv/nome-do-repositorio -R
su - dspace
bash
cd /home/dspace/nome-do-repositorio/dspace-versao-src-release/dspace
mvn package
cd /home/dspace/nome-do-repositorio/dspace-versao-src-release/dspace/target/dspa
ce-versao-build.dir
ant fresh_install
/srv/nome-do-repositorio/bin/./dspace create-administrator
exit
exit
vi /etc/tomcat6/server.xml
Dentro de <Host> </Host> INCLUIR a linha abaixo
<Context path="/nome-do-repositorio" docBase="/srv/nome-do-repositorio/webapps/
xmlui/" debug="0" reloadable="true" cachingAllowed="false" allowLinking="true"/>
service tomcat stop
service tomcat start
+--------------------------------------------------------+
| Com o 'dspace' |
| |
| crontab -e |
| |
| # Send out subscription e-mails at 01:00 every day |
| 0 1 * * * [dspace]/bin/dspace sub-daily |
| # Run the media filter at 02:00 every day |
| 0 2 * * * [dspace]/bin/dspace filter-media |
| # Run the checksum checker at 03:00 |
| 0 3 * * * [dspace]/bin/dspace checker -lp |
| # Mail the results to the sysadmin at 04:00 |
| 0 4 * * * [dspace]/bin/dspace checker-emailer -c |
| # Statistics Client for Maintenance of Solr Statistics |
| 0 5 * * * [dspace]/bin/dspace stats-util -o |
| |
+--------------------------------------------------------+
| Com o 'postgres' |
| |
| crontab -e |
| |
| # Clean up the database nightly at 4.20am |
| 20 4 * * * vacuumdb --analyze dspace > /dev/null 2>&1 |
| |
+--------------------------------------------------------+
+-------------
| Opção para rodar o Tomcat na porta 80
iptables -t nat -I PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080
iptables-save > /etc/firewall.conf
echo '#!/bin/sh' > /etc/network/if-up.d/iptables
echo "iptables-restore < /etc/firewall.conf" >> /etc/network/if-up.d/iptables
chmod +x /etc/network/if-up.d/iptables
|
+-------------
+-------------
|
iptables -F
iptables -X
iptables -t nat -F
iptables -t nat -X
iptables -t mangle -F
iptables -t mangle -X
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
|
+-------------
Obs.: O tema XMLUI é configurado em /srv/nome-do-repositorio/config/xmlui.xconf
http://localhost:8080/nome-do-repositorio

0.0.8.4 MAVEN_OPTS="-Xms256m -Xmx512m" PATH=$MAVEN_HOME/bin:$PATH +-------------source /etc/profile mvn --version <<< ANT >>> mkdir /usr/local/apache-ant cd /home/dspace/work wget http://ftp.rnp.mirror.0.Dfile.sun.4 /usr/local/apache-maven vi /etc/profile +-------------MAVEN_HOME=/usr/local/apache-maven/apache-maven-3.mkdir /usr/local/apache-maven cd /home/dspace/work wget http://apache.0.tar.32.sh +-------------JAVA_OPTS="-Xmx512M -Xms64M .jmxremot e -XX:MaxPermSize=256m -XX:ParallelGCThreads=20 -XX:+UseConcMarkSweepGC -XX:+Use ParNewGC " +-------------- .tar.32 /usr/local/apache-tomcat7 vi /etc/profile +-------------CATALINA_HOME=/usr/local/apache-tomcat7 PATH=$CATALINA_HOME/bin:$PATH +-------------source /etc/profile vi $CATALINA_HOME/bin/startup.gz mv apache-ant-1.0.management.pop-sc.32/bin/apach e-tomcat-7.gz tar -zxvf apache-ant-1.8.rnp.br/apache/tomcat/tomcat-7/v7.br/apache/maven/maven-3/3.0.4-bin.4 /usr/local/apache-ant vi /etc/profile +-------------ANT_HOME=/usr/local/apache-ant/apache-ant-1.4-bin.4/binaries/apac he-maven-3.0.32.tar.encoding=UTF-8 -Dcom.8.0.gz mv apache-maven-3.mirror.unicamp.gz tar -zxvf apache-maven-3.gz tar -zxvf apache-tomcat-7.0.4-bin.8.tar.tar.4-bin.gz mv apache-tomcat-7.pop-sc.4 PATH=$ANT_HOME/bin:$PATH +-------------source /etc/profile ant -version <<< TOMCAT 7 >>> mkdir /usr/local/apache-tomcat7 cd /home/dspace/work wget http://apache.tar.br/pub/apache/ant/binaries/apache-ant-1.

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->