DSpace/C2/DSpace-Installation-on-Ubuntu-Linux-OS/English
Script: Dspace installation on Ubuntu Linux OS
Author : Pankaj Patil
Keywords: DSpace installation, DSpace build, DSpace deployment, DSpace administrator account, local.cfg configuration
Visual Cue | Narration |
Slide : Title | Welcome to this spoken tutorial on installation of DSpace on Ubuntu Linux OS. |
Slide: Learning Objectives Slide | In this tutorial, we will learn to
|
Slide: System requirements | This tutorial is recorded using
However you may use any other editor or browser of your choice. |
Slide: Pre-requisites | To practice this tutorial, you should have
|
Slide: Pre-requisites | You will also need minimum 5 unique email ids for practising various roles in DSpace.
|
Slide: Pre-requisites | Pre-requisites:
|
Slide : Code files |
|
Switch to gedit text editor and open the file | I have opened the code file in gedit text editor on my machine.
|
Narration only | Let us begin. |
Press Ctrl+Alt+T keys | Open the terminal by pressing Ctrl ,Alt and T keys simultaneously on the keyboard.
|
Only Narration | Here onwards please remember to press the Enter key after typing each command. |
[Terminal] Type:
|
Now, we will login as user dspace.
|
[Terminal] Type:
cd $HOME |
Make sure that your present working directory in the terminal is DSpace’s Home directory.
|
[Terminal] Type:
wget https://github.com/DSpace/DSpace/releases/download/dspace-6.3/dspace-6.3-src-release.tar.gz |
To download DSpace 6.3 source code, type the command as shown here. |
[Terminal] Type:
tar -xzvf $HOME/dspace-6.3-src-release.tar.gz |
Now let us extract the DSpace tar file which we downloaded.
|
[Terminal] Type:
ls dspace-6.3-src-release/dspace/config/ |
To see the contents of the DSpace configure folder, type this command. |
Point to local.cfg.EXAMPLE in folder view
HOME Directory >> dspace-6.3-src-release >> dspace >> config>>local.cfg.EXAMPLE |
DSpace source code has local.cfg.EXAMPLE, which is a sample DSpace configuration.
DSpace checks for the configuration in the local.cfg file. |
Slide : local.cfg file | local.cfg file can be created in two ways.
Switch to the terminal. |
[Terminal] Type:
cp $HOME/dspace-6.3-src-release/dspace/config/local.cfg.EXAMPLE $HOME/dspace-6.3-src-release/dspace/config/local.cfg |
We’ll create a copy of local.cfg.EXAMPLE file as local.cfg for DSpace configuration.
|
[Terminal] Type:
sudo gedit /home/dspace/dspace-6.3-src-release/dspace/config/local.cfg |
Open the local.cfg file by typing the following command.
|
SERVER CONFIGURATION | Locate the SERVER CONFIGURATION section. |
dspace.dir=/home/dspace/dspace-install
|
Here, I have set the values for some parameters.
|
dspace.ui = xmlui
|
Default value of dspace.ui is xmlui.
|
Highlight
|
Suppose if we are working on a remote machine.
|
Point to DATABASE CONFIGURATION
db.password = dbuserpass |
Locate DATABASE CONFIGURATION section.
|
Press Ctrl + S >> Close File | Save and close the file. |
[Terminal] Type:
sudo chown dspace.dspace -R $HOME
|
Now, let us provide ownership of the Home directory to the dspace user.
|
[Terminal] Type:
sudo chmod 0777 -R $HOME |
Next, let us provide the read, write and execute permissions to the Home directory of dspace user.
|
[Terminal] Type:
cd dspace-6.3-src-release |
Using cd command go to the directory dspace-6.3-src-release in the Home folder. |
[Terminal] Type:
|
Maven package is used to download external java libraries and build the source code.
|
[Terminal] Highlight:
BUILD SUCCESSFUL message |
Once the download is complete, BUILD SUCCESSFUL message will be displayed on the terminal. |
Slide: Troubleshoot for build failure
|
In case you get BUILD FAILED message, do the following-
|
[Terminal] Type:
cd dspace/target/dspace-installer |
Now, using the cd command, go to the directory dspace-installer. |
[Terminal] Type:
|
Apache Ant is a tool used to build DSpace binaries.
|
[Terminal] Highlight:
BUILD SUCCESSFUL message |
Once the installation is complete, BUILD SUCCESSFUL message will be displayed on the terminal. |
[Terminal] Type:
sudo $HOME/dspace-install/bin/dspace create-administrator |
Next, we will create a DSpace administrator account and set the credentials.
|
Email: dspace.u1@gmail.com
First name : User1 |
Type the values for email address and First name as shown.
|
Last name : | I’m skipping the Last name field. |
Password : u1pass | Now set the password for the dspace admin account.
|
Retype the admin password
Password: u1pass |
Type the password once again and press Enter. |
Type Y to confirm entered details. | The prompt will ask you to type Y to confirm the newly added details.
|
Only narration | Administrator’s credentials are used to login to DSpace portal with Administrator authority. |
Narration only | Now, let us proceed to deploy DSpace Webapps on Tomcat. |
[Terminal] Type:
cd /var/lib/tomcat8/webapps/ |
Type the command as shown to navigate to tomcat webapps. |
[Terminal] Type: ls | Type ls to see the folder contents. |
Point to ROOT directory | ROOT is the default webapp created during tomcat installation.
Tomcat server redirects client requests to default ROOT webapp. |
[Terminal] Type:
|
For DSpace, we need to set up JSPUI as a ROOT web app.
|
Narration only | Now, we will deploy DSpace webapps on Tomcat.
|
[Terminal] Type:
|
We will deploy DSpace with JSPUI interface as a default.
|
sudo ln -s /home/dspace/dspace-install/webapps/rest | Next we’ll deploy rest webapp, by typing the command as shown. |
sudo ln -s /home/dspace/dspace-install/webapps/solr | Now, we will deploy solr webapp, by typing this command. |
sudo ln -s /home/dspace/dspace-install/webapps/oai | And then to deploy oai webapp, type the command as shown. |
sudo ln -s /home/dspace/dspace-install/webapps/sword | Lastly, we’ll deploy sword webapp, by typing this command. |
[Terminal] Type:
|
Restart Tomcat server by typing the following command.
|
[Terminal] Type:
|
Finally, restart the system before accessing DSpace.
|
Narration only | We have now successfully installed DSpace.
|
Browser >> | Open a web browser.
|
Narration only | Now, we will login to DSpace with our administrator account. |
Click Sign on to tab > My DSpace | Click on Sign on to tab at the top right corner.
|
Enter Email Address and Password
Password: u1pass |
Type in the email address and password of the administrator. |
Click on Log In button | Then click on the Log In button below the password field. |
Point to My DSpace section | The administrator login is successful and My DSpace page appears. |
Narration only | This brings us to the end of this tutorial.
|
Slide : Summary
|
In this tutorial we learnt to-
|
Slide : About Spoken Tutorial project | The video at the following link summarises the Spoken Tutorial project.
|
Slide : Spoken Tutorial workshops
|
The Spoken Tutorial Project team conducts workshops and gives certificates.
|
Slide: Answers for THIS Spoken Tutorial | Please post your timed queries in this Forum. |
Slide: Acknowledgement -I | Spoken Tutorial project is funded by MHRD, Government of India. |
Slide: Acknowledgement -II
|
DSpace spoken tutorial series is funded by the National Virtual Library of India, Ministry of Culture, Government of India. |
Narration only
|
This script and video for this tutorial was contributed by Pankaj Patil from IIT Bombay.
|