Friday, October 9, 2015

DSpace 5.2 on Ubuntu 15.04

Prerequisite:

Open terminal   using Ctrl+Alt (like a command prompt in window)

(I assume that your system is 64bit and not under the proxy server)

 Login as a > 

enter  sudo su 



sudo apt-get install openjdk-7-jdk

Sudo apt-get install tasksel

wget http://get.enterprisedb.com/postgresql/postgresql-9.4.4-3-linux-x64.run

chmod +x postgresql-9.4.4-3-linux-x64.run

Install PostgreSQL database in Ubuntu system





























Give the password (postgres) 





























Go to program menu and open PgAdmin (search pgadmin from first launcher menu from desktop screen) 

               give the password – postgres to connect the database



create login role – dspace with password – dspace (in definition tab)

Create a database – dspace with owner – dspace

(close the PgAdmin screen)

open terminal 

sudo apt-get install tasksel

sudo tasksel 


Select the following packages.



Use space bar for select applications from list.

[*] LAMP server [*] Tomcat Java server 

use tab key to select OK button and enter. Packages will start to install.
On the way you have to give MySQL root password. MySQL not necessary for Dspace installation

Sudo apt-get install ant maven

Edit postgresql config file

sudo gedit /opt/PostgreSQL/9.4/data/pg_hba.conf

(save and close the file)


sudo mkdir /dspace

Configure TOMCAT

sudo gedit /etc/tomcat7/server.xml 

Insert the following chunk of text just above the closing </Host> Section


<!-- Define a new context path for all DSpace web apps -->

<Context path="/xmlui" docBase="/dspace/webapps/xmlui" allowLinking="true"/>
<Context path="/jspui" docBase="/dspace/webapps/jspui" allowLinking="true"/>
<Context path="/solr" docBase="/dspace/webapps/solr" allowLinking="true"/>

(Save and close)

(Now Install Dspace 5.2 Package)

sudo mkdir /build 
sudo chmod -R 777 /build 
cd /build

wget http://sourceforge.net/projects/dspace/files/DSpace%20Stable/5.2/dspace-5.2-src-release.zip

unzip -xvjf dspace-5.2-src-release.zip

Open computer manager go to build directory and 

Extract dspace-5.2-src-release.zip 

enter cd /build/dspace-5.2-src-release


mvn -U package

(It will take a while to download necessary repository files from maven)

Finally you will receive BUILD SUCCESS massage

cd /build/dspace-5.2-src-release/dspace/target/dspace-installer/

sudo ant fresh_install


Fix Tomcat permissions, and restart the Tomcat server

sudo chown tomcat7:tomcat7 /dspace -R

sudo chmod -R 777 /opt/PostgreSQL/

Now create your Dspace Administrator

/dspace/bin/dspace create-administrator

(enter the required information)

Restart Tomcat Server:

sudo service tomcat7 restart

test your Dspace live using follwing Urls
http://localhost:8080/xmlui
http://localhost:8080/jspui

Now your DSpace 5.0 is Up and Running 

If you have any query  regarding Installation please feel free to connect me 
to openbharat@gmail.com OR Mob. 9428415401



Friday, July 17, 2015

Creating a new user account in DSpace

[dspace]/bin/dspace user --add --email openbharat@gmail.com -g bharat -s User --password abcdefg
[dspace]/bin/dspace user --add --netid bharat --telephone 999-999-999 --password abcdefg

To See the list of users

[dspace]/bin/dspace user --list


To modify an account:


[dspace]/bin/dspace user --modify -m opedinesh@gmail.com




To delete an account


[dspace]/bin/dspace user --delete -n bharat

Sunday, February 8, 2015

How to Install DSpace 5.0 on Ubuntu 14.10

Installing DSpace 5.0 on UBUNTU 14.10

Open Terminal and execute following commands. Text in italics are commands to be executed.

sudo apt-get apdate

sudo apt-get install openjdk-7-jdk
sudo apt-get install tomcat8

sudo apt-get install ant maven

Database [PostgreSQL 9.3] Installation


cd /home/user
execite
Go to program list and find [pgpadminIII]. the dilog box will appear on screen.
Create login role as a {dspace} password a {dspace}, create database {dspace}

Restart postgres service

/etc/init.d/postgresql-9.3 restart

Dspace Installation

sudo mkdir /dspace
sudo chown dspace /dspace

Downlaod DSpace 5.0 release


sudo mkdir /build
sudo chmod -R 777 /build
cd /build


Extract Dspace 5.0 package

tar -zxf dspace-4.1-src-release.tar.gz
cd /build/dspace-4.1-src-release
mvn -U package


cd /build/dspace-5.0-src-release/dspace/target/dspace-installer

sudo ant fresh_install   

Fix Tomcat permissions, and restart the Tomcat server

sudo chown tomcat8:tomcat8 /dspace -R

Configure Tomcat

sudo gedit /etc/tomcat8/server.xml

(past this below text befor </host> section)

<!-- Define a new context path for all DSpace web apps -->
<Context path="/xmlui" docBase="/dspace/webapps/xmlui" allowLinking="true"/>
<Context path="/sword" docBase="/dspace/webapps/sword" allowLinking="true"/>
<Context path="/oai" docBase="/dspace/webapps/oai" allowLinking="true"/>
<Context path="/jspui" docBase="/dspace/webapps/jspui" allowLinking="true"/>
<Context path="/lni" docBase="/dspace/webapps/lni" allowLinking="true"/>
<Context path="/solr" docBase="/dspace/webapps/solr" allowLinking="true"/>

(Save the file and close)

Restart Tomcat

sudo service tomcat8 restart

Install Dspace

cd /build/dspace-5.0-src-release/dspace/target/dspace-installer

sudo ant fresh_install

Make an initial administrator account (an e-person) in DSpace:

sudo /dspace/bin/dspace create-administrator

It will ask to enter email address for user login. Enter an email address (e.g. dspace@domain).
Enter First name and surename (e.g. dspace)
Enter a password.***

Now open Dspace in your browser

You can load either one Dspace interface in a browser.

http://localhost:8080/xmlui
http://localhost:8080/jspui

Dspace Demo