Discussion:
[Dspace-tech] dpspace installation on ubantu
Veena
2011-03-23 09:57:41 UTC
Permalink
Sir,
I want to install dspace on ubantu kindly give me installation steps.

Veena P Oak
Technical Director and District Informatics Officer
National Informatics Centre
Bangalore Urban District
Ph 9900516265
Josefina Perez Alvarez
2011-03-23 10:57:29 UTC
Permalink
We install successful Dspace 1.7.0 on Ubuntu 10.10 using the following
instructions - thanks to Panyarak Ngamsritragul for the steps:
http://www.mail-archive.com/dspace-***@lists.sourceforge.net/msg11235.html
Re:
[Dspace-tech] Install dspace unsucessful

Panyarak Ngamsritragul
Thu, 08 Jul 2010 04:59:11 -0700

Dear Volodymyr,

I followed what Sean has suggested and everything was OK.

Could you please let us know some more basic information, e.g. what is your
base OS? which version.

I recently install DSpace 1.6.2 in Ubuntu 10.04LTS with no problem.
The important steps are:

1. Install all necessary components


sudo apt-get install tomcat6 maven2 ant-optional postgresql sun-java6-jdk
apache2 libapache2-mod-jk

2. Add a line like 'host dspace tomcat6 127.0.0.1/32 md5'

to /etc/postgresql/8.3/main/pg_hba.conf (or

/etc/postgresql/8.4/main/pg_hba.conf)

In this case your DSpace database name is 'dspace' and DSpace instance is
run by user 'tomcat6'

3. Create a user name 'tomcat6' for postgreSQL
sudo su postgres
createuser -U postgres -d -A -P tomcat6
exit
(Remember your password for tomcat6 here, you need it for step 11)



4. Modify 'shell' of user 'tomcat6' and create a database 'dspace'
sudo chsh -s /bin/bash tomcat6
sudo chown -R tomcat6.tomcat6 /usr/share/tomcat6
sudo su tomcat6
createdb -U tomcat6 -E UNICODE dspace


exit

5. Make sure that settings in /etc/default/tomcat6 look like this
TOMCAT6_USER=tomcat6
JAVA_HOME=/usr/lib/jvm/java-6-sun
CATALINA_BASE=/var/lib/tomcat6
JAVA_OPTS="-Xmx1024M -Xms64M -Dfile.encoding=UTF-8"


JSP_COMPILER=jikes
TOMCAT6_SECURITY=no
LOGFILE_DAYS=180

6. at URIEncoding="UTF-8" to a tag in /etc/tomcat6/server.xml so that it
looks like:

<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
URIEncoding="UTF-8" redirectPort="8443" />



7. Tell the system to use correct 'java'
sudo update-alternatives --set java /usr/lib/jvm/java-6-sun/jre/bin/java

8. Test if tomcat6 runs correctly
sudo /etc/init.d/tomcat6 restart
or

sudo /etc/init.d/tomcat6 start



The following steps invlove installation of DSpace, and started from step
10, all commands must be run by user 'tomcat6'.

9. Create the install location (I chose /opt/dspace here)
sudo mkdir /opt/dspace
sudo chown tomcat6.tomcat6 /opt/dspace

10. Download DSpace source (I chose /usr/share/tomcat6 as my working
directory, you can make your own choice)

sudo su tomcat6
cd
wget
http://nchc.dl.sourceforge.net/sourceforge/dspace/dspace-1.6.2-src-release.tar.bz2


bzip2 -dc dspace-1.6.2-src-release.tar.bz2|tar xf -
(You should have DSpace source codes reside in ./dspace-1.6.2-src-release)

11. Modify some settings in ./dspace-1.6.2-src-release/dspace/config/dspace.cfg

dspace.dir=/opt/dspace

dspace.hostname={put your host name here}
dspace.baseUrl = http://${dspace.hostname}:8080
dspace.url = ${dspace.baseUrl}/jspui

dspace.oai.url = ${dspace.baseUrl}/oai


dspace.name="Your DSpace Instance Name"
db.name = postgres

db.url = jdbc:postgresql://localhost:5432/dspace

db.username = tomcat6
db.password = (Your password entered in step 3)

mail.server={set this if you have one}
mail.from.address=ds-***@domain.name

feedback.recipient=ds-***@domain.name

mail.admin=ds-***@domain.name

alert.recipient=ds-***@domain.name

registration.notify=ds-***@domain.name
handle.canonical.prefix = ${dspace.url}/handle/handle/


handle.prefix = 123456
handle.dir = ${dspace.dir}/handle-server

webui.submit.enable-cc = true
webui.submit.cc-jurisdiction = {your country, e.g. en}
webui.strengths.show = true
webui.strengths.cache = false


webui.feed.localresolve = true
webui.session.invalidate = false

webui.supported.locales = en, ja
xmlui.supported.locales = en, ja
xmlui.force.ssl = true
solr.log.server = http://localhost:8080/solr/statistics



12. Build the package. (You can run this command either in
./dspace-1.6.2-src-release/dspace or ./dspace-1.6.2-src-release)

mvn package

13. If there is no error in previous step, proceed to install your DSpace
instance:

cd target/dspace-1.6.2-build.dir
ant fresh_install

The last 2 lines of step 13 should read like:
BUILD SUCCESSFUL
Total time: 2 minutes 0 seconds



Hope this helps.

Panyarak Ngamsritragul
Prince of Songkla University.

======================

Até,
Josi
Post by Veena
Sir,
I want to install dspace on ubantu kindly give me installation steps.
Veena P Oak
Technical Director and District Informatics Officer
National Informatics Centre
Bangalore Urban District
Ph 9900516265
------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software
be a part of the solution? Download the Intel(R) Manageability Checker
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
DSpace-tech mailing list
https://lists.sourceforge.net/lists/listinfo/dspace-tech
Loading...