Difference between revisions of "DSpace/C2/DSpace-Installation-on-Ubuntu-Linux-OS/English"
(Created page with "'''Script: Dspace installation on Ubuntu Linux OS''' '''Author : Pankaj Patil''' '''Keywords: DSpace installation, DSpace build, DSpace deployment, DSpace administrator ac...") |
Nancyvarkey (Talk | contribs) |
||
Line 9: | Line 9: | ||
− | {| | + | {| border =1 |
− | + | |'''Visual Cue''' | |
− | + | |'''Narration''' | |
− | + | |- | |
− | |- | + | |
|| Slide : Title | || Slide : Title | ||
|| Welcome to this spoken tutorial on installation of '''DSpace''' on''' Ubuntu Linux OS.''' | || Welcome to this spoken tutorial on installation of '''DSpace''' on''' Ubuntu Linux OS.''' | ||
− | |- | + | |- |
|| Slide: Learning Objectives Slide | || Slide: Learning Objectives Slide | ||
− | || In this tutorial, we will learn to * | + | || In this tutorial, we will learn to |
− | * | + | * Install '''DSpace''' on '''Ubuntu Linux OS''' |
− | * | + | * Crossverify '''DSpace''' installation and |
+ | * Create a '''DSpace administrator account''' | ||
− | + | |- | |
− | |- | + | |
|| Slide: System requirements | || Slide: System requirements | ||
− | || This tutorial is recorded using* | + | || This tutorial is recorded using |
− | * | + | * '''Ubuntu Linux''' OS 18.04 |
− | * | + | * '''gedit text editor''' and |
− | + | * '''Firefox web browser''' | |
− | + | ||
− | + | ||
− | + | ||
However you may use any other '''editor''' or '''browser''' of your choice. | However you may use any other '''editor''' or '''browser''' of your choice. | ||
− | |- | + | |- |
|| Slide: Pre-requisites | || Slide: Pre-requisites | ||
− | || To practice this tutorial, you should have * | + | || To practice this tutorial, you should have |
− | * | + | * installed '''Java, Tomcat 8, Postgresql 10, Ant, Maven, '''and''' git.''' |
− | * | + | * configured '''Tomcat 8 server '''and |
+ | * created a '''dspace database '''in''' Postgresql 10.''' | ||
− | + | |- | |
− | |- | + | |
|| Slide: Pre-requisites | || Slide: Pre-requisites | ||
|| You will also need minimum 5 unique '''email ids''' for practising various '''roles''' in '''DSpace'''. | || You will also need minimum 5 unique '''email ids''' for practising various '''roles''' in '''DSpace'''. | ||
Line 47: | Line 43: | ||
If you don’t have, then please create them before proceeding ahead. | If you don’t have, then please create them before proceeding ahead. | ||
− | |- | + | |- |
|| Slide: Pre-requisites | || Slide: Pre-requisites | ||
− | || Pre-requisites:* | + | || Pre-requisites: |
− | * | + | * You should have familiarity with basic '''Linux commands'''. |
+ | * If not then please go through the prerequisite '''Linux '''tutorials on this website. | ||
− | + | |- | |
− | |- | + | |
|| Slide : Code files | || Slide : Code files | ||
− | || * | + | || |
− | + | * The '''commands''' used in this tutorial are available in the '''Code Files '''link on this tutorial page. | |
− | + | * Please download and extract the file before practicing. | |
− | + | ||
− | * | + | |
− | + | ||
− | |- | + | |- |
|| Switch to '''gedit''' text editor and open the file | || Switch to '''gedit''' text editor and open the file | ||
|| I have opened the '''code file''' in '''gedit text editor''' on my machine. | || I have opened the '''code file''' in '''gedit text editor''' on my machine. | ||
Line 70: | Line 63: | ||
− | Shortcut to paste on the '''terminal''' is '''Shift, Ctrl '''and '''V '''keys | + | Shortcut to paste on the '''terminal''' is '''Shift, Ctrl '''and '''V '''keys. |
− | |- | + | |- |
|| Narration only | || Narration only | ||
|| Let us begin. | || Let us begin. | ||
− | |- | + | |- |
|| Press '''Ctrl+Alt+T keys''' | || Press '''Ctrl+Alt+T keys''' | ||
|| Open the '''terminal''' by pressing '''Ctrl ,Alt '''and '''T''' keys simultaneously on the keyboard. | || Open the '''terminal''' by pressing '''Ctrl ,Alt '''and '''T''' keys simultaneously on the keyboard. | ||
Line 80: | Line 73: | ||
Ensure that you have '''root permissions''' to run the '''commands'''. | Ensure that you have '''root permissions''' to run the '''commands'''. | ||
− | |- | + | |- |
|| Only Narration | || Only Narration | ||
|| Here onwards please remember to press the '''Enter''' key after typing each '''command'''. | || Here onwards please remember to press the '''Enter''' key after typing each '''command'''. | ||
− | |- | + | |- |
|| [Terminal] Type: | || [Terminal] Type: | ||
Line 95: | Line 88: | ||
If prompted, then type the '''admin''' '''password '''to '''login'''. | If prompted, then type the '''admin''' '''password '''to '''login'''. | ||
− | |- | + | |- |
|| [Terminal] Type: | || [Terminal] Type: | ||
Line 103: | Line 96: | ||
If not, type '''cd $HOME''' to switch to the '''Home directory'''. | If not, type '''cd $HOME''' to switch to the '''Home directory'''. | ||
− | |- | + | |- |
|| [Terminal] Type: | || [Terminal] Type: | ||
− | |||
'''wget https://github.com/DSpace/DSpace/releases/download/dspace-6.3/dspace-6.3-src-release.tar.gz''' | '''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. | || To download''' DSpace 6.3''' '''source code''', type the '''command''' as shown here. | ||
− | |- | + | |- |
|| [Terminal] Type: | || [Terminal] Type: | ||
− | |||
'''tar -xzvf $HOME/dspace-6.3-src-release.tar.gz''' | '''tar -xzvf $HOME/dspace-6.3-src-release.tar.gz''' | ||
Line 118: | Line 109: | ||
To do so, type the '''command''' as shown here. | To do so, type the '''command''' as shown here. | ||
− | |- | + | |- |
|| [Terminal] Type: | || [Terminal] Type: | ||
− | |||
'''ls dspace-6.3-src-release/dspace/config/''' | '''ls dspace-6.3-src-release/dspace/config/''' | ||
− | || To see the contents of the DSpace configure folder | + | || To see the contents of the '''DSpace configure''' folder, type this '''command'''. |
− | + | |- | |
− | + | ||
− | + | ||
− | |- | + | |
|| Point to '''local.cfg.EXAMPLE''' in folder view | || Point to '''local.cfg.EXAMPLE''' in folder view | ||
− | |||
'''HOME Directory >> dspace-6.3-src-release >> dspace >> config>>local.cfg.EXAMPLE''' | '''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''' source code has '''local.cfg.EXAMPLE, '''which is a sample '''DSpace configuration'''. | ||
− | |||
− | |||
− | |||
'''DSpace''' checks for the '''configuration''' in the '''local.cfg''' file. | '''DSpace''' checks for the '''configuration''' in the '''local.cfg''' file. | ||
− | |- | + | |- |
|| Slide : '''local.cfg''' file | || Slide : '''local.cfg''' file | ||
− | || '''local.cfg''' file can be created in two ways.# | + | || '''local.cfg''' file can be created in two ways. |
− | # | + | # Renaming '''local.cfg.EXAMPLE''' as '''local.cfg''' |
− | + | # Copy '''local.cfg.EXAMPLE''' as '''local.cfg''' | |
− | + | ||
− | + | ||
− | + | ||
Switch to the '''terminal.''' | Switch to the '''terminal.''' | ||
− | |- | + | |- |
|| [Terminal] Type: | || [Terminal] Type: | ||
Line 156: | Line 136: | ||
To do so, type the '''command''' as shown. | To do so, type the '''command''' as shown. | ||
− | + | |- | |
− | + | ||
− | + | ||
− | |- | + | |
|| [Terminal] Type: | || [Terminal] Type: | ||
Line 173: | Line 150: | ||
'''Configuration file''' opens in the '''text editor'''. | '''Configuration file''' opens in the '''text editor'''. | ||
− | |- | + | |- |
|| '''SERVER CONFIGURATION''' | || '''SERVER CONFIGURATION''' | ||
|| Locate the '''SERVER CONFIGURATION '''section. | || Locate the '''SERVER CONFIGURATION '''section. | ||
− | |- | + | |- |
|| | || | ||
Line 193: | Line 170: | ||
Value for '''dspace.dir''' is''' /home/dspace/dspace-install''' | Value for '''dspace.dir''' is''' /home/dspace/dspace-install''' | ||
− | |- | + | |- |
|| '''dspace.ui = xmlui''' | || '''dspace.ui = xmlui''' | ||
Line 209: | Line 186: | ||
− | '''dspace.ui '''is left blank, to enable '''email'''-based user verification. | + | '''dspace.ui '''is left blank, to enable '''email'''-based '''user''' verification. |
− | |- | + | |- |
|| '''Highlight''' | || '''Highlight''' | ||
Line 224: | Line 201: | ||
− | Then set the machine ip as a value for '''dspace.hostname | + | Then set the '''machine ip''' as a value for '''dspace.hostname, dspace.baseUrl '''and '''solr.server.''' |
− | |- | + | |- |
|| Point to '''DATABASE CONFIGURATION''' | || Point to '''DATABASE CONFIGURATION''' | ||
Line 238: | Line 215: | ||
Enter the value for '''db.username''' as '''dspace''' and '''db.password''' as '''dbuserpass'''. | Enter the value for '''db.username''' as '''dspace''' and '''db.password''' as '''dbuserpass'''. | ||
− | |- | + | |- |
|| Press '''Ctrl + S '''>> Close File | || Press '''Ctrl + S '''>> Close File | ||
|| Save and close the file. | || Save and close the file. | ||
− | |- | + | |- |
|| [Terminal] Type: | || [Terminal] Type: | ||
Line 255: | Line 232: | ||
Type the '''root user password''' if prompted. | Type the '''root user password''' if prompted. | ||
− | |- | + | |- |
|| [Terminal] Type: | || [Terminal] Type: | ||
Line 263: | Line 240: | ||
To do so, type the '''command''' as shown here. | To do so, type the '''command''' as shown here. | ||
− | |- | + | |- |
|| [Terminal] Type: | || [Terminal] Type: | ||
'''cd dspace-6.3-src-release''' | '''cd dspace-6.3-src-release''' | ||
|| Using '''cd command''' go to the '''directory dspace-6.3-src-release '''in the '''Home folder'''. | || Using '''cd command''' go to the '''directory dspace-6.3-src-release '''in the '''Home folder'''. | ||
− | |- | + | |- |
|| [Terminal] Type: | || [Terminal] Type: | ||
Line 283: | Line 260: | ||
The download may''' '''take some time depending on your '''internet speed'''. | The download may''' '''take some time depending on your '''internet speed'''. | ||
− | |- | + | |- |
|| [Terminal] Highlight: | || [Terminal] Highlight: | ||
BUILD SUCCESSFUL message | BUILD SUCCESSFUL message | ||
|| Once the download is complete, '''BUILD SUCCESSFUL''' message will be displayed on the '''terminal'''. | || Once the download is complete, '''BUILD SUCCESSFUL''' message will be displayed on the '''terminal'''. | ||
− | |- | + | |- |
|| Slide: Troubleshoot for build failure | || Slide: Troubleshoot for build failure | ||
− | |||
|| In case you get '''BUILD FAILED '''message, do the following- | || In case you get '''BUILD FAILED '''message, do the following- | ||
+ | * Verify all steps executed earlier by referring to the prerequisite tutorial. | ||
+ | * Also check the version of all the '''packages '''installed. | ||
− | + | |- | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | |- | + | |
|| [Terminal] Type: | || [Terminal] Type: | ||
'''cd dspace/target/dspace-installer''' | '''cd dspace/target/dspace-installer''' | ||
|| Now, using the '''cd command,''' go to the '''directory dspace-installer.''' | || Now, using the '''cd command,''' go to the '''directory dspace-installer.''' | ||
− | |- | + | |- |
|| [Terminal] Type: | || [Terminal] Type: | ||
Line 314: | Line 287: | ||
To install '''DSpace''' using '''ant''', type the '''command''' as shown. | To install '''DSpace''' using '''ant''', type the '''command''' as shown. | ||
− | |- | + | |- |
|| [Terminal] Highlight: | || [Terminal] Highlight: | ||
BUILD SUCCESSFUL message | BUILD SUCCESSFUL message | ||
|| Once the installation is complete, '''BUILD SUCCESSFUL''' message will be displayed on the '''terminal'''. | || Once the installation is complete, '''BUILD SUCCESSFUL''' message will be displayed on the '''terminal'''. | ||
− | |- | + | |- |
|| [Terminal] Type: | || [Terminal] Type: | ||
− | |||
'''sudo $HOME/dspace-install/bin/dspace create-administrator''' | '''sudo $HOME/dspace-install/bin/dspace create-administrator''' | ||
Line 331: | Line 303: | ||
If prompted, type the '''admin user password.''' | If prompted, type the '''admin user password.''' | ||
− | |- | + | |- |
|| Email: [mailto:dspace.u1@gmail.com dspace.u1@gmail.com] | || Email: [mailto:dspace.u1@gmail.com dspace.u1@gmail.com] | ||
− | |||
First name : User1 | First name : User1 | ||
Line 340: | Line 311: | ||
These are mandatory '''fields'''. | These are mandatory '''fields'''. | ||
− | |- | + | |- |
|| Last name : | || Last name : | ||
|| I’m skipping the '''Last name '''field. | || I’m skipping the '''Last name '''field. | ||
− | |- | + | |- |
|| Password : u1pass | || Password : u1pass | ||
|| Now set the '''password''' for the '''dspace admin account.''' | || Now set the '''password''' for the '''dspace admin account.''' | ||
Line 349: | Line 320: | ||
I will type '''u1pass''' and press '''Enter'''. | I will type '''u1pass''' and press '''Enter'''. | ||
− | |- | + | |- |
|| Retype the admin password | || Retype the admin password | ||
Password: u1pass | Password: u1pass | ||
|| Type the '''password '''once again and press '''Enter.''' | || Type the '''password '''once again and press '''Enter.''' | ||
− | |- | + | |- |
|| Type '''Y''' to confirm entered details. | || Type '''Y''' to confirm entered details. | ||
|| The '''prompt''' will ask you to type '''Y''' to confirm the newly added details. | || The '''prompt''' will ask you to type '''Y''' to confirm the newly added details. | ||
Line 360: | Line 331: | ||
Type '''Y''' and press '''Enter'''. | Type '''Y''' and press '''Enter'''. | ||
− | |- | + | |- |
|| Only narration | || Only narration | ||
− | || '''Administrator’s credentials''' are used to '''login''' to '''DSpace''' portal with '''Administrator '''authority | + | || '''Administrator’s credentials''' are used to '''login''' to '''DSpace''' portal with '''Administrator '''authority. |
− | |- | + | |- |
|| Narration only | || Narration only | ||
− | || Now, let us proceed to deploy ''' | + | || Now, let us proceed to deploy '''DSpace Webapps '''on''' Tomcat.''' |
− | |- | + | |- |
|| [Terminal] Type: | || [Terminal] Type: | ||
'''cd /var/lib/tomcat8/webapps/''' | '''cd /var/lib/tomcat8/webapps/''' | ||
|| Type the '''command''' as shown to navigate to '''tomcat webapps.''' | || Type the '''command''' as shown to navigate to '''tomcat webapps.''' | ||
− | |- | + | |- |
|| [Terminal] Type: '''ls''' | || [Terminal] Type: '''ls''' | ||
|| Type''' ls '''to see the folder contents. | || Type''' ls '''to see the folder contents. | ||
− | |- | + | |- |
|| Point to '''ROOT '''directory''' ''' | || Point to '''ROOT '''directory''' ''' | ||
|| '''ROOT '''is the default''' webapp '''created during '''tomcat '''installation.''' ''' | || '''ROOT '''is the default''' webapp '''created during '''tomcat '''installation.''' ''' | ||
'''Tomcat server''' redirects client requests to default '''ROOT''' '''webapp'''. | '''Tomcat server''' redirects client requests to default '''ROOT''' '''webapp'''. | ||
− | |- | + | |- |
|| [Terminal] Type: | || [Terminal] Type: | ||
Line 387: | Line 358: | ||
− | Therefore, we will '''delete''' the default '''ROOT webapp''' on ''' | + | Therefore, we will '''delete''' the default '''ROOT webapp''' on '''Tomcat server.''' |
Line 394: | Line 365: | ||
If prompted, enter the '''root user password'''. | If prompted, enter the '''root user password'''. | ||
− | |- | + | |- |
|| Narration only | || Narration only | ||
− | || Now, we will deploy '''DSpace webapps''' on ''' | + | || Now, we will deploy '''DSpace webapps''' on '''Tomcat.''' |
'''DSpace''' offers '''JSP''' and '''XML''' based '''user interfaces'''. | '''DSpace''' offers '''JSP''' and '''XML''' based '''user interfaces'''. | ||
− | |- | + | |- |
|| [Terminal] Type: | || [Terminal] Type: | ||
Line 409: | Line 380: | ||
To do so, type the '''command''' as shown. | To do so, type the '''command''' as shown. | ||
− | |- | + | |- |
|| '''sudo ln -s /home/dspace/dspace-install/webapps/rest''' | || '''sudo ln -s /home/dspace/dspace-install/webapps/rest''' | ||
|| Next we’ll deploy '''rest webapp,''' by typing the '''command''' as shown. | || Next we’ll deploy '''rest webapp,''' by typing the '''command''' as shown. | ||
− | |- | + | |- |
|| '''sudo ln -s /home/dspace/dspace-install/webapps/solr''' | || '''sudo ln -s /home/dspace/dspace-install/webapps/solr''' | ||
|| Now, we will deploy '''solr webapp,''' by typing this command. | || Now, we will deploy '''solr webapp,''' by typing this command. | ||
− | + | |- | |
− | + | ||
− | |- | + | |
|| '''sudo ln -s /home/dspace/dspace-install/webapps/oai''' | || '''sudo ln -s /home/dspace/dspace-install/webapps/oai''' | ||
|| And then to deploy '''oai webapp,''' type the command as shown. | || And then to deploy '''oai webapp,''' type the command as shown. | ||
− | + | |- | |
− | + | ||
− | |- | + | |
|| '''sudo ln -s /home/dspace/dspace-install/webapps/sword''' | || '''sudo ln -s /home/dspace/dspace-install/webapps/sword''' | ||
|| Lastly, we’ll deploy '''sword webapp,''' by typing this command. | || Lastly, we’ll deploy '''sword webapp,''' by typing this command. | ||
− | + | |- | |
− | + | ||
− | |- | + | |
|| [Terminal] Type: | || [Terminal] Type: | ||
'''sudo service tomcat8 restart''' | '''sudo service tomcat8 restart''' | ||
− | || Restart ''' | + | || Restart '''Tomcat server '''by typing the following '''command'''. |
− | If ''' | + | If '''Tomcat''' is not restarted, then deployed '''applications''' will not be effective to handle '''client requests.''' |
− | |- | + | |- |
|| [Terminal] Type: | || [Terminal] Type: | ||
Line 451: | Line 416: | ||
Our system will get restarted. | Our system will get restarted. | ||
− | |- | + | |- |
|| Narration only | || Narration only | ||
|| We have now successfully installed '''DSpace.''' | || We have now successfully installed '''DSpace.''' | ||
Line 457: | Line 422: | ||
Next, proceed to access '''DSpace''' through the '''browser.''' | Next, proceed to access '''DSpace''' through the '''browser.''' | ||
− | |- | + | |- |
|| '''Browser >>''' | || '''Browser >>''' | ||
Line 473: | Line 438: | ||
− | '''DSpace''' | + | '''DSpace Home page''' appears on the '''browser'''. |
− | |- | + | |- |
|| Narration only | || Narration only | ||
|| Now, we will '''login''' to '''DSpace''' with our '''administrator account'''. | || Now, we will '''login''' to '''DSpace''' with our '''administrator account'''. | ||
− | |- | + | |- |
|| Click''' Sign on to tab > My DSpace''' | || Click''' Sign on to tab > My DSpace''' | ||
|| Click on '''Sign on to '''tab at the top right corner. | || Click on '''Sign on to '''tab at the top right corner. | ||
Line 485: | Line 450: | ||
− | '''Log In to | + | '''Log In to DSpace''' form opens. |
− | |- | + | |- |
|| Enter Email Address and Password | || Enter Email Address and Password | ||
Line 494: | Line 459: | ||
Password: u1pass | Password: u1pass | ||
|| Type in the '''email address''' and '''password''' of the '''administrator'''. | || Type in the '''email address''' and '''password''' of the '''administrator'''. | ||
− | |- | + | |- |
|| Click on''' Log In '''button | || Click on''' Log In '''button | ||
|| Then click on the '''Log In''' button below the '''password''' field. | || Then click on the '''Log In''' button below the '''password''' field. | ||
− | |- | + | |- |
|| Point to '''My DSpace '''section | || Point to '''My DSpace '''section | ||
|| The '''administrator login''' is successful and '''My DSpace''' page appears. | || The '''administrator login''' is successful and '''My DSpace''' page appears. | ||
− | |- | + | |- |
|| Narration only | || Narration only | ||
|| This brings us to the end of this tutorial. | || This brings us to the end of this tutorial. | ||
Line 506: | Line 471: | ||
Let us summarize. | Let us summarize. | ||
− | |- | + | |- |
|| Slide : Summary | || Slide : Summary | ||
− | || In this tutorial we learnt to-* | + | || In this tutorial we learnt to- |
− | * | + | * Install '''DSpace''' on''' Ubuntu Linux OS ''' |
− | * | + | * Crossverify the '''DSpace''' installation and |
− | + | * Create a '''DSpace administrator account''' | |
− | + | |- | |
− | |- | + | |
|| Slide : About Spoken Tutorial project | || Slide : About Spoken Tutorial project | ||
|| The video at the following link summarises the '''Spoken Tutorial project.''' | || The video at the following link summarises the '''Spoken Tutorial project.''' | ||
Line 522: | Line 486: | ||
Please download and watch it. | Please download and watch it. | ||
− | |- | + | |- |
|| Slide : Spoken Tutorial workshops | || Slide : Spoken Tutorial workshops | ||
Line 534: | Line 498: | ||
|| Slide: Answers for THIS Spoken Tutorial | || Slide: Answers for THIS Spoken Tutorial | ||
|| Please post your timed queries in this Forum. | || Please post your timed queries in this Forum. | ||
− | |- | + | |- |
|| Slide: Acknowledgement -I | || Slide: Acknowledgement -I | ||
|| '''Spoken Tutorial project''' is funded by MHRD, Government of India. | || '''Spoken Tutorial project''' is funded by MHRD, Government of India. | ||
− | |- | + | |- |
|| Slide: Acknowledgement -II | || Slide: Acknowledgement -II | ||
Line 543: | Line 507: | ||
|| '''DSpace spoken tutorial''' series is funded by the National Virtual Library of India, Ministry of Culture, Government of India. | || '''DSpace spoken tutorial''' series is funded by the National Virtual Library of India, Ministry of Culture, Government of India. | ||
− | |- | + | |- |
|| Narration only | || Narration only | ||
Latest revision as of 19:33, 29 May 2020
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.
|