DSpace/C2/Getting-ready-for-DSpace-Installation-on-Ubuntu-Linux-OS/English
Visual Cue | Narration |
Slide : Title | Welcome to this spoken tutorial on Getting ready for DSpace Installation. |
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 text editor of your choice. |
Slide : Pre-requisites | To practice this tutorial,
|
Slide : Pre-requisites | If not then please go through the prerequisite Linux tutorials on this website. |
Slide : Hardware requirements | The minimum hardware requirements for DSpace installation is
|
Slide : Code files | The commands used in this tutorial are available in the Code Files link on this tutorial page.
|
Switch to gedit text editor and open the file | I have opened the code file in the 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.
|
[Terminal] Type:
sudo adduser dspace |
First let us create a new user account and name it as dspace.
|
[Terminal] Type:
admin password |
Immediately, we are prompted to type the admin password.
|
Only Narration | Here onwards please remember to press the Enter key after typing each command. |
Enter new UNIX password
Type password as dupass |
The terminal will now prompt a message, “Enter new UNIX password”.
|
Retype password as dupass | Type the same password in Retype new UNIX password. |
Full Name: DSpace
|
Fill the rest of the details as shown here.
We have now successfully created the user dspace. |
[Terminal] Type:
|
Next let us add this new user dspace to the sudoers group.
|
[Terminal] Type:
|
Now, let us login as user dspace.
|
[Terminal] Type:
|
Before proceeding further, let us update our system.
|
Narration only | The updating process may take some time depending upon your internet speed. |
[Terminal] Type:
sudo dpkg --configure -a |
To avoid dpkg interruption errors during installation, type the following command
sudo dpkg --configure -a |
[Terminal] Type:
|
Next, let us install Java Development Kit.
|
Narration only | We have now successfully installed JDK. |
[Terminal] Type:
java -version |
Next, we will verify the installed JDK version.
To do so, type java -version |
Highlight openjdk version “1.8.0_242” | In the terminal , we can see openjdk version “1.8.0_242”
|
Slide : JDK version
|
Switch to the terminal. |
[Terminal] Type:
sudo apt-get install git -y |
DSpace resource packages have to be pulled from the git repository using the git tool.
|
[Terminal] Type:
sudo apt-get install maven -y |
Now, let us install an Apache Maven, which is used to build DSpace source code.
|
[Terminal] Type:
sudo apt-get install ant ant-optional -y |
Next, we will install an Apache Ant tool, which is used to install DSpace.
|
[Terminal] Type:
|
Next, let us install Tomcat 8.
|
[Terminal] Type:
|
Next we have to create a DSpace security policy.
|
[Terminal] Type:
permission java.security.AllPermission; }; grant codeBase "file:/tmp/-" { permission java.security.AllPermission; }; |
A new file opens in the text editor.
|
Press Ctrl+S >> close the file | Now save and close the file. |
[Terminal] | We’re back on the terminal. |
[Terminal] Type:
|
To provide ownership of DSpace security policy to Tomcat, type the command as shown. |
[Terminal] Type:
|
To permit access of DSpace to Tomcat 8 , we have to add the Tomcat8 user to DSpace user group.
|
[Terminal] Type:
|
To permit access of Tomcat 8 to DSpace , we have to add the DSpace user to Tomcat8 group.
|
[Terminal] Type:
|
Now, restart tomcat server to update the changes.
|
[Terminal] Type:
sudo apt-get install postgresql-10 postgresql-contrib postgresql-contrib-10 libpg-java -y |
Next, we’ll install Postgresql, which is used as a database for DSpace.
|
Change database permissions to trust | Next, we have to restrict the database to be accessed by trust method only.
|
[Terminal] Type:
|
To change database permissions from peer to trust, type the command as shown. |
[Terminal] Type:
|
To change database permissions from md5 to trust, type the command as shown here. |
[Terminal] Type:
|
To change database permissions from ident to trust, type the command as shown. |
[Terminal] Type:
|
We have to restart postgresql to update the changes we just made.
|
Narration only | Now, we will create a dspace user in postgresql database. |
[Terminal] Type:
|
Type this command as shown in the terminal. |
Type the password as dbuserpass |
Set a password for the user dspace for the database.
|
Type the password as dbuserpass | Retype the same password once again. |
Type n
|
If prompted, respond ‘n’ to the question ‘ Shall the new role be allowed to create more new roles? (y/n)’.
|
[Terminal] Type:
|
Let us login as user postgres.
|
[Terminal] Type:
|
Next, we have to create a database named ‘dspace’.
|
[Terminal] Type:
psql -U postgres -d dspace |
Type psql -U postgres -d dspace to connect to the database. |
[Terminal] Type:
|
Next, we have to provide dspace database ownership to user dspace.
|
[Terminal] Type:
|
To grant privileges to user dspace , type the command as shown. |
[Terminal] Type:
|
pgcrypto extension allows DSpace to create universally unique identifiers for all objects in DSpace.
|
[Terminal] Type: \q | Type backslash q in the terminal to quit the database shell. |
[Terminal] Type: exit | Type exit in the terminal and press Enter, to switch back to DSpace user . |
Narration only | Now, we have to allow the database user dspace to connect to the database.
|
[Terminal] Type: sudo -i | Type sudo -i in the terminal.
|
[Terminal] Type:
sudo echo "host dspace dspace 127.0.0.1/32 md5" >> /etc/postgresql/10/main/pg_hba.conf |
Next, type the following command in the terminal. |
[Terminal] Type: exit | Type exit in the terminal to switch to the dspace account. |
[Terminal] Type:
sudo service postgresql restart |
Lastly, we have to restart the postgresql server once again.
|
[Terminal] Type:
|
Now, we will set up file creation permissions for DSpace.
|
[Gedit] Type
|
Scroll to the end of the file.
|
Save and close the file | Now save and close the file. |
[Terminal] Type:
sudo reboot |
Finally restart the system, to flush umask 002 type permissions.
|
Only narration | With this we have successfully configured the database and tomcat server to install DSpace.
|
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
|
|
Slide : Forum for specific questions |
|
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.
|