Dspace Install Alekha
Dspace Install Alekha
1 LTS
Alekha Karadia
Professional Assistant
Regional Institute of Education (NCERT)
Bhopal- 462013
Mob:- +91-9178124339
email:- [email protected]
sudo su
apt-get update
apt-get upgrade
apt-get install openjdk-8-jdk postgresql ant maven
Shall the new role be allowed to create more new roles? (y/n) n
Type exit
[If the following command not open, check the postgresql version number and apply in the command]
Restart PostgreSQL :
sudo su
/etc/init.d/postgresql restart
exit
wget https://github.com/DSpace/DSpace/releases/download/dspace-6.3/dspace-6.3-src-
release.tar.gz
You can find latest version from this page and copy the link to download latest version.
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>buildnumber-maven-plugin</artifactId>
<version>1.4</version>
<executions><execution>
<phase>validate</phase>
<goals>
<goal>create</goal>
</goals>
</execution>
</executions>
</plugin>
mvn -U package
STEP 1.
Execute the command below
update-alternatives --config java
STEP 2.
Kindly select openjdk-8 as default
STEP 3.
Then re-run maven using
mvn -U package
cd dspace/target/dspace-installer
sudo ant fresh_install
Installation of Tomcat
Download the and extract the Tomcat package,
cd /opt
wgethttps://archive.apache.org/dist/tomcat/tomcat-8/v8.0.37/bin/apache-tomcat-8.0.37.tar.gz
mv apache-tomcat-8.0.37 tomcat
rm apache-tomcat-8.0.37.tar.gz
gedit /etc/profile
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
export CATALINA_HOME=/opt/tomcat
You can set up to start the Tomcat server start automatically at the time of system turn on.
gedit /etc/init.d/tomcat
PATH=/sbin:/bin:/usr/sbin:/usr/bin
start() {
sh /opt/tomcat/bin/startup.sh
}
stop() {
sh /opt/tomcat/bin/shutdown.sh
}
case $1 in
start|stop) $1;;
restart) stop; start;;
*) echo "Run as $0 <start|stop|restart>"; exit 1;;
esac
chmod +x /etc/init.d/tomcat
update-rc.d tomcat defaults
Now you can start and stop Tomcat server using following commands;
http://localhost:8080/jspui
http://localhost:8080/xmlui
sudo su
pg_dump -U dspace -h localhost -Fc dspace > dspace.pgsql
/etc/init.d/postgresql stop
/etc/init.d/postgresql start
rm -rf /dspace/assetstore
rm -rf /dspace/log/
mv assetstore /dspace
mv log /dspace
Restoration of database
su -l dspace
dropdb -U dspace dspace
createdb -U dspace -E UNICODE dspace
pg_restore -d dspace < /home/dspace/dspace.pgsql
exit