Advertisement
asanchez75

dspace

Aug 5th, 2013
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.86 KB | None | 0 0
  1. http://linuxhalwa.blogspot.com/2013/06/installing-dspace-3x-on-ubuntu-1204.html
  2. https://wiki.duraspace.org/display/DSDOC3x/Installation#Installation-OracleJavaJDK6or7%28standardSDKisfine,youdon%27tneedJ2EE%29orOpenJDK6or7
  3. http://dspace.2283337.n4.nabble.com/Error-with-Dspace-OAI-PHM-listing-records-and-Identifiers-td4662827.html
  4.  
  5. Installation of prerequisite applications
  6.  
  7. Open Applications > Accessories > Terminal and execute following commands. Text in italics are commands to be executed.
  8.  
  9. sudo apt-get install openjdk-7-jdk
  10. sudo apt-get install tasksel
  11. sudo tasksel
  12.  
  13. Select the following packages.
  14. Use space bar for select applications from list.
  15.  
  16. [*] LAMP server
  17. [*] PostgreSQL database
  18. [*] Tomcat Java server
  19.  
  20. use tab to select OK button and enter. Packages will start to install.
  21. On the way you have to give MySQL root password. MySQL not necessary for Dspace installation.
  22.  
  23. sudo apt-get install ant maven
  24.  
  25. Create the database user (dspace)
  26.  
  27. sudo su postgres createuser -U postgres -d -A -P dspace
  28.  
  29. enter password for new role (select a password like dspace) Shall the new role be allowed to create more new roles? (y/n) n
  30.  
  31. Exit from the promp, type exit
  32.  
  33. Allow the database user (dspace) to connect to the database [If the following command not open, check the postgresql version number and apply in the command]
  34.  
  35. sudo gedit /etc/postgresql/9.1/main/pg_hba.conf
  36.  
  37. Add this line to the configuration file at the end:
  38.  
  39. local all dspace md5
  40.  
  41. save and close the file
  42.  
  43. Restart PostgreSQL : sudo su enter,
  44.  
  45. then paste the following line and enter
  46.  
  47. /etc/init.d/postgresql restart
  48.  
  49. Create the Unix 'dspace' user, update the passwd, create the directory in which you will install dspace, and ensure that the Unix 'dspace' user has write privileges on that directory:
  50.  
  51. sudo useradd -m dspace
  52.  
  53. sudo passwd dspace (enter any password like dspace for the new user dspace)
  54.  
  55. sudo mkdir /dspace
  56.  
  57. sudo chown dspace /dspace
  58.  
  59. Create the PostgreSQL 'dspace' database.
  60.  
  61. sudo -u dspace createdb -U dspace -E UNICODE dspace
  62.  
  63. Configure Tomcat to know about the DSpace webapps.
  64. [If the following command not open, check the tomcat version number and apply in the command]
  65.  
  66. sudo gedit /etc/tomcat7/server.xml
  67.  
  68. Insert the following chunk of text just above the closing </Host>
  69.  
  70. <!-- Define a new context path for all DSpace web apps -->
  71. <Context path="/xmlui" docBase="/dspace/webapps/xmlui" allowLinking="true"/>
  72. <Context path="/sword" docBase="/dspace/webapps/sword" allowLinking="true"/>
  73. <Context path="/oai" docBase="/dspace/webapps/oai" allowLinking="true"/>
  74. <Context path="/jspui" docBase="/dspace/webapps/jspui" allowLinking="true"/>
  75. <Context path="/lni" docBase="/dspace/webapps/lni" allowLinking="true"/>
  76. <Context path="/solr" docBase="/dspace/webapps/solr" allowLinking="true"/>
  77.  
  78. save and close the file a
  79.  
  80. This following step downloads the compressed archive from SourceForge, and unpacks it in your current directory. The dspace-1.x.x-src-release directory is typically referred to as [dspace-src]. You can also download direct from Sourceforge website.
  81.  
  82. sudo mkdir /build
  83. sudo chmod -R 777 /build
  84. cd /build
  85. wget http://downloads.sourceforge.net/project/dspace/DSpace%20Stable/3.1/dspace-3.1-release.tar.bz2
  86.  
  87. tar -xvjf dspace-3.1-src-release.tar.bz2
  88.  
  89. cd /build/dspace-3.1-src-release
  90. mvn -U package
  91. cd dspace/target/dspace-3.1-build
  92. sudo ant fresh_install
  93.  
  94. Fix Tomcat permissions, and restart the Tomcat server
  95.  
  96. sudo chown tomcat6:tomcat6 /dspace -R
  97.  
  98. Restart Tomcat
  99.  
  100. /etc/init.d/tomcat6 restart
  101.  
  102. Make an initial administrator account (an e-person) in DSpace:
  103.  
  104. /dspace/bin/dspace create-administrator
  105.  
  106. Test it out in your browser
  107. That is all that is required to install DSpace on Ubuntu. There are two main webapps that provide a similar turn-key repository interface
  108.  
  109. http://localhost:8080/xmlui
  110. http://localhost:8080/jspui
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement