0% found this document useful (0 votes)
312 views3 pages

Installing Dspace 6.3 in Ubuntu 18.04.1 LTS: (Save and Close The File)

This document provides steps to install DSpace 6.3 on Ubuntu 18.04.1 LTS. It involves installing Java, PostgreSQL, Tomcat, Ant and Maven. A database and user are created for DSpace. DSpace is downloaded, compiled and installed. The web applications are copied to Tomcat. Finally, an administrator account is created and DSpace can be accessed via the browser.

Uploaded by

Ivan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
312 views3 pages

Installing Dspace 6.3 in Ubuntu 18.04.1 LTS: (Save and Close The File)

This document provides steps to install DSpace 6.3 on Ubuntu 18.04.1 LTS. It involves installing Java, PostgreSQL, Tomcat, Ant and Maven. A database and user are created for DSpace. DSpace is downloaded, compiled and installed. The web applications are copied to Tomcat. Finally, an administrator account is created and DSpace can be accessed via the browser.

Uploaded by

Ivan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Installing DSpace 6.3 in Ubuntu 18.04.

1 LTS

# Open a terminal [ Ctrl+Alt+T ]

sudo apt-get update


sudo apt-get install openjdk-8-jdk

#check version of java


java -version

#install the database


sudo apt-get install postgresql

#install the webserver


sudo apt-get install tomcat8

#install the complier tools


sudo apt-get install ant
sudo apt-get install maven

# Create the database user


sudo su postgres

createuser -U postgres -d -A -P dspace

# Enter password for new role: [Enter password as dspace]

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 gedit /etc/postgresql/10/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 /etc/init.d/postgresql restart
# Create DSpace user
sudo useradd -m dspace
sudo passwd dspace
[enter password as dspace ]

sudo mkdir /dspace


sudo chown dspace /dspace

# Create the PostgreSQL 'dspace' database


sudo -u dspace createdb -U dspace -E UNICODE dspace
# Login to the database as a superuser, and enable the pgcrypto extension on this
database
sudo su postgres

psql --username=postgres dspace -c "CREATE EXTENSION pgcrypto;"

exit

sudo /etc/init.d/postgresql restart


# Create DSpace directory

sudo mkdir /build


sudo chmod -R 777 /build

cd /build

# Download DSpace to /build directory; Copy paste following line in the


terminal

wget https://github.com/DSpace/DSpace/releases/download/dspace-6.3/dspace-6.3-src-release.tar.gz

# Extracting Dspace package


tar -zxf dspace-6.3-src-release.tar.gz

cd /build/dspace-6.3-src-release

#Open the pom.xml file and comment the following code

sudo gedit /build/dspace-6.3-src-release/dspace-api/pom.xml


#Search for the keyword buildnumber by pressing Ctrl+F (line number 103)
#Add the comment tag to the following code block
<!--

<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>

-->
#Save and exit
mvn -U package

# Enter into Dspace package folder to download packages


cd dspace/target/dspace-installer

sudo ant fresh_install

# Fix Tomcat permissions, and restart the Tomcat server


sudo chown tomcat8:tomcat8 /dspace -R

sudo cp -R /dspace/webapps/* /var/lib/tomcat8/webapps*


[This will copy all the web applications to Tomcat]

# Restart Tomcat
sudo /etc/init.d/tomcat8 restart

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


sudo /dspace/bin/dspace create-administrator

Enter an email address (e.g. dspace@localhost ).


Enter First name and surname (e.g. dspace)
Enter a password (e.g. dspace)
Open DSpace in your browser

You can load either one of the DSpace interface in a browser


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

You might also like