Difference between revisions of "SUNScholar/Install DSpace/S03"

From Libopedia
Jump to navigation Jump to search
(Created page with "==Step 4. *** Edit the DSpace configuration ***== Type the following to edit the Dspace (dspace.cfg) config file: nano /home/dspace/dspace-1.7.2-src-release/dspace/config/dspac...")
 
 
(57 intermediate revisions by one other user not shown)
Line 1: Line 1:
==Step 4. *** Edit the DSpace configuration ***==
+
<center>
Type the following to edit the Dspace (dspace.cfg) config file:
+
'''[[SUNScholar/Install DSpace/S04|NEXT - STEP 4]]'''
 +
</center>
  
nano /home/dspace/dspace-1.7.2-src-release/dspace/config/dspace.cfg
+
==Step 3. Unpack DSpace==
 +
===Step 3.1===
 +
Type the following to extract the source code.
  
Replace all the places with a pair of percent signs (%something%) with the settings for your system.
+
{{VERSION-DSPACE}}
  
 +
tar -xzvf $HOME/dspace-XXX-src-release.tar.gz
 +
 +
===Step 3.2===
 +
To be able to simplify the wiki documentation when doing upgrades and to simply path references to the source code we create a shortcut or in the Unix world a "symbolic link" to point to the source folder of interest.
 +
 +
This creates the '''$HOME/<u>[[SUNScholar/Install_DSpace/S03#Step_3.2|source]]</u>''' path which will then be used for all of the following documentation to refer to the source code.
 +
 +
This is also the '''[dspace-source]''' folder referred to in the official DSpace documentation.
 +
 +
To create the '''symbolic link''' type the following:
 +
 +
{{VERSION-DSPACE}}
 +
 +
cd $HOME
 +
 +
ln -s dspace-XXX-src-release source
 +
 +
See example below:
 
<pre>
 
<pre>
dspace.dir = /home/dspace
+
dspace@repository:~$ ls -l source
dspace.url = http://%hostname%
+
lrwxrwxrwx 1 dspace dspace 35 Dec 18 11:47 source -> /home/dspace/dspace-6.3-src-release
dspace.baseUrl = http://%hostname%
 
dspace.hostname = %hostname%
 
dspace.name = %DSpace for My University%
 
db.name = postgres
 
db.url = jdbc:postgresql://localhost:5432/dspace
 
db.driver = org.postgresql.Driver
 
db.username = dspace
 
db.password = %db_user_password%
 
mail.server = %my_university_mail_server_address%
 
mail.from.address = %my_email_address%
 
feedback.recipient = %my_email_address%
 
mail.admin = %my_email_address%
 
alert.recipient = %my_email_address%
 
registration.notify = %my_email_address%
 
default.language = en_ZA
 
 
</pre>
 
</pre>
==Example config setup==
 
*%hostname% = scholar.sun.ac.za
 
*%DSpace for My University% = Stellenbosch University Research Repository
 
* %db_user_password% = my very secret PostgreSQL DB password
 
*%my_university_mail_server_address% = mail.sun.ac.za
 
*%my_email_address% = scholar@sun.ac.za
 
  
  '''[[SUNScholar/Install Dspace/S05|Proceed to the next step]]'''
+
===References===
 +
*http://en.wikipedia.org/wiki/Symbolic_link
 +
 
 +
<center>
 +
  '''[[SUNScholar/Install DSpace/S02|PREVIOUS - STEP 2]]'''
 +
</center>
 +
 
 +
[[Category:Installation]]
 +
__NOTOC__

Latest revision as of 14:20, 30 October 2019

NEXT - STEP 4

Step 3. Unpack DSpace

Step 3.1

Type the following to extract the source code.

Replace all instances of XXX with the DSpace version number selected for installation.
tar -xzvf $HOME/dspace-XXX-src-release.tar.gz

Step 3.2

To be able to simplify the wiki documentation when doing upgrades and to simply path references to the source code we create a shortcut or in the Unix world a "symbolic link" to point to the source folder of interest.

This creates the $HOME/source path which will then be used for all of the following documentation to refer to the source code.

This is also the [dspace-source] folder referred to in the official DSpace documentation.

To create the symbolic link type the following:

Replace all instances of XXX with the DSpace version number selected for installation.
cd $HOME
ln -s dspace-XXX-src-release source

See example below:

dspace@repository:~$ ls -l source
lrwxrwxrwx 1 dspace dspace 35 Dec 18 11:47 source -> /home/dspace/dspace-6.3-src-release

References

PREVIOUS - STEP 2