C.installDSpace4 1UbuntuLTS12 04desktop
C.installDSpace4 1UbuntuLTS12 04desktop
C.installDSpace4 1UbuntuLTS12 04desktop
04 LTS
Installation of prerequisite applications
Open Applications > Accessories > Terminal and execute following
commands.
sudo apt-get install leafpad
sudo apt-get install openjdk-7-jdk
sudo apt-get install postgresql
sudo apt-get install tomcat7
sudo apt-get install ant maven
Create the database user
sudo su postgres
createuser -U postgres -d -A -P dspace
Enter password for new role: [Enter a password e.g. dspace]
Shall the new role be allowed to create more new roles? (y/n) n
[Enter n and press enter button]
Type exit
Allow the database user (dspace) to connect to the database
[If the following command not open, check the postgresql version
number and apply in the command]
sudo leafpad /etc/postgresql/9.1/main/pg_hba.conf
Add this line to the configuration file at the end:
local all dspace md5
save and close the file
Restart PostgreSQL :
sudo su
/etc/init.d/postgresql restart
http://sourceforge.net/projects/dspace/files/DSpace%20Stable/4.1/dsp
ace-4.1-src-release.tar.gz
(a single command in one line)
Extracting Dspace package
tar -zxf dspace-4.1-src-release.tar.gz
cd /build/dspace-4.1-src-release
mvn -U package
(takes long!!!!)
cd dspace/target/dspace-4.1-build
sudo ant fresh_install
Fix Tomcat permissions, and restart the Tomcat server
sudo chown tomcat7:tomcat7 /dspace -R
Restart Tomcat
/etc/init.d/tomcat7 restart
Make an initial administrator account (an e-person) in DSpace:
/dspace/bin/dspace create-administrator
It will ask to enter email address for user login. Enter an email address
(e.g. dspace@localhost).
Enter First name and surename (e.g. dspace)
Enter a password.
Open Dspace in your browser
You can load either one Dspace interface in a browser.
http://localhost:8080/xmlui
http://localhost:8080/jspui