How to Install DSpace on Ubuntu Server Latest
DSpace is a digital repository software system used to capture, store, index, preserve, and redistribute a wide range of digital content. In this tutorial, we will be installing DSpace on Ubuntu server latest.
Prerequisites
Before starting, ensure that your system meets the following requirements:
- Ubuntu Server Latest
- Java Version 8 or higher
- PostgreSQL
Step 1: Installing Java
Update your Ubuntu server with the following command:
sudo apt-get updateInstall Java using the following command:
sudo apt-get install default-jdkVerify the Java installation by running the following command:
java -versionYou should see the Java version installed on your system.
Step 2: Installing PostgreSQL
Install PostgreSQL by running the following command:
sudo apt-get install postgresql postgresql-contribAfter the installation, create a new user for PostgreSQL with the following command:
sudo su postgres createuser --interactiveEnter a name for the PostgreSQL user and select the options for the new user.
Create a new database for DSpace with the following command:
createdb dspaceChange the owner of the dspace database to the user that was created earlier:
ALTER USER <username> WITH CREATEDB;Finally, exit the PostgreSQL command prompt by typing the following command:
\q
Step 3: Downloading and installing DSpace
Download the latest version of DSpace from the following link: https://github.com/DSpace/DSpace/releases
Extract the downloaded file to a directory of your choice.
Open the installation directory and run the following command:
mvn packageThis will build the necessary files needed for the installation.
Copy the configuration files from the
dspace/configdirectory to thedspace/config/localdirectory:
cp dspace/config/* dspace/config/local
Edit the
dspace/config/local/dspace.cfgfile and update the configuration settings for your system.- Change the
db.nameproperty todspace. - Change the
db.usernameanddb.passwordproperties to the PostgreSQL username and password created earlier.
- Change the
Create a new user for DSpace with the following command:
sudo adduser dspaceChange the ownership of the DSpace installation directory to the dspace user:
sudo chown -R dspace:dspace /path/to/dspaceSwitch to the dspace user with the following command:
sudo su dspaceInitialize the DSpace database with the following command:
/path/to/dspace/bin/dspace database initializeInstall the DSpace software with the following command:
/path/to/dspace/bin/dspace install
- Start the DSpace software with the following command:
/path/to/dspace/bin/dspace start
You can verify that DSpace is running by visiting the IP address of your server in a web browser.
Congratulations! You have successfully installed DSpace on Ubuntu server latest.