Sunday, February 8, 2015

How to Install DSpace 5.0 on Ubuntu 14.10

Installing DSpace 5.0 on UBUNTU 14.10

Open Terminal and execute following commands. Text in italics are commands to be executed.

sudo apt-get apdate

sudo apt-get install openjdk-7-jdk
sudo apt-get install tomcat8

sudo apt-get install ant maven

Database [PostgreSQL 9.3] Installation


cd /home/user
execite
Go to program list and find [pgpadminIII]. the dilog box will appear on screen.
Create login role as a {dspace} password a {dspace}, create database {dspace}

Restart postgres service

/etc/init.d/postgresql-9.3 restart

Dspace Installation

sudo mkdir /dspace
sudo chown dspace /dspace

Downlaod DSpace 5.0 release


sudo mkdir /build
sudo chmod -R 777 /build
cd /build


Extract Dspace 5.0 package

tar -zxf dspace-4.1-src-release.tar.gz
cd /build/dspace-4.1-src-release
mvn -U package


cd /build/dspace-5.0-src-release/dspace/target/dspace-installer

sudo ant fresh_install   

Fix Tomcat permissions, and restart the Tomcat server

sudo chown tomcat8:tomcat8 /dspace -R

Configure Tomcat

sudo gedit /etc/tomcat8/server.xml

(past this below text befor </host> section)

<!-- Define a new context path for all DSpace web apps -->
<Context path="/xmlui" docBase="/dspace/webapps/xmlui" allowLinking="true"/>
<Context path="/sword" docBase="/dspace/webapps/sword" allowLinking="true"/>
<Context path="/oai" docBase="/dspace/webapps/oai" allowLinking="true"/>
<Context path="/jspui" docBase="/dspace/webapps/jspui" allowLinking="true"/>
<Context path="/lni" docBase="/dspace/webapps/lni" allowLinking="true"/>
<Context path="/solr" docBase="/dspace/webapps/solr" allowLinking="true"/>

(Save the file and close)

Restart Tomcat

sudo service tomcat8 restart

Install Dspace

cd /build/dspace-5.0-src-release/dspace/target/dspace-installer

sudo ant fresh_install

Make an initial administrator account (an e-person) in DSpace:

sudo /dspace/bin/dspace create-administrator

It will ask to enter email address for user login. Enter an email address (e.g. dspace@domain).
Enter First name and surename (e.g. dspace)
Enter a password.***

Now open Dspace in your browser

You can load either one Dspace interface in a browser.

http://localhost:8080/xmlui
http://localhost:8080/jspui

Wednesday, December 10, 2014

DSpace 4.1.2 Setup Installer ON Windows XP/7/8/Vista


Tested on 32bit_86 Windows 7 
1Java 1.6Download
2Apache Ant 1.8.3Download (* Restart your system after Ant is installed)
3Postgresql-9.3.5-1Download (password is postgres)
4
DSpace 4.1.2
Downlaod
5Compile DSpaceDownload and RUN
6Create Admin AccountDownload and RUN
7Apache Tomcat - DSpaceInstall (Don't Close command Window and Java symbol)
8Start ApacheInstall and RUN
0
Run DSpace (XMLUI)
http://localhost:8080/xmlui

Tuesday, November 25, 2014

Document viewer in DSpace with JSPUI


Open the [utils.js] file in any editor

sudo gedit /dspace/webapps/jspui/utils.js

copy the following code in utils.js file


-------------------copy bellow lines in utils.js at the end of all codes--------

var flag=0
$( document ).ready(function() {
jQuery(".standard").find("a[target='_blank']").each(function(){
  jQuery(this).attr('value',jQuery(this).attr('href'));
  jQuery(this).removeAttr('href');
  jQuery(this).css("text-decoration", "underline");
  jQuery(this).css("cursor", "pointer");

 
});
  jQuery(".metadataFieldLabel").each( function(index){     
if(jQuery(this).text().trim().replace(/:/g, '').replace(" ",'') == 'EnteredBy'){
$(this).next().remove();
$(this).remove();
} });
    jQuery(".standard").find("a[target='_blank']").on( "click", function() {   
if(flag==1){
jQuery( this ).parents('table').parents('table').eq(0).find('tr:last').remove();
jQuery( this ).parents('table').parents('table').eq(0).find('tr:last').remove();
jQuery( this ).parents('table').parents('table').eq(0).append("<tr><td><object style='overflow: auto;' data='"+jQuery( this ).attr('value')+"' type='application/pdf' width='100%' height='548px'></object><td><tr>");   
}else{
flag=1;
jQuery( this ).parents('table').parents('table').eq(0).append("<tr><td><object style='overflow: auto;' data='"+jQuery( this ).attr('value')+"' type='application/pdf' width='100%' height='548px'></object><td><tr>");   
}
 

});
}); 



---------------------end up the code-------------------------------------

Document viewer can look like bellow




Monday, November 17, 2014

How To Change Tomcat Default Port on Ubuntu debian

If two web server conflict the ports

(like Koha and DSpace)
Question: My koha is already occupied 8080 port by apache2 in my Ubuntu machine how do I install my tomcat6 for DSpace like?

ANS: the issue is the conflict that you may have with apache2. If you are not running an apache server on 8080 port for Koha. then it should not be an issue at all. Just keep in mind you cannot bind two daemons to the same port at the same time.
But if you are using your koha apache2 on 8080 port you will have to change your new installation dspace tomcat port from 8080 to any one. Like 8081

Make sure that apache2 is turned off; if it is installed to avoid conflict on port 8080.

sudo service apache2 stop

Check that there are not services listening onport 80

netstat -aunt | grep 80

Here is the basic configuration changes that need to be made in

sudo gedit /etc/tomcat6/server.xml

<!--Connectorport="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" /-->

<Connector
port="8081" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />


Be sure to stop tomcat and then start tomcat and then test.


sudo /etc/init.d/tomcat6 stop

Your's truly,

Bharat

Installing DSpace 4.2 on Ubuntu 12.01 or 14.04 LTS

Installation of Prerequisites

Open terminal prompt (command prompt window)  


type


sudo apt-get install openjdk-7-jdk

sudo apt-get install tasksel
sudo tasksel

Select the following packagespe

[*] LAMP server


[*] Tomcat Java server
(do not * postgresql database)














use press (space-bar key) for select the options
Press [OK] button for install selected the application 

Install the Compile / Build tools
sudo apt-get install ant maven

PostgreSql 9.3- Graphical Installer on Ubuntu 12.04/14.x (64bit system)

- for 64bit system type in command 

- for 32bit system type in command 
wget http://get.enterprisedb.com/postgresql/postgresql-9.3.5-3-linux.run

  • enter cd /home/user/
Creating Database [dspace]
  • go to program list {dash home} search pgadmin and click.
    the following dialog window will appeared on screen


Create login role as a {dspace} password a {dspace}, create database {dspace} (see the screen above)

Restart postgres service
/etc/init.d/postgresql-9.3 restart

DSpace INSTALLATION:
sudo mkdir /dspace
sudo chown dspace /dspace



Downlaod DSpace 4.2 release

sudo mkdir /build
sudo chmod -R 777 /build
cd /build
Downlaod latest version of DSpace from the repository
http://sourceforge.net/projects/dspace/files/
sudo cp -r /home/usr/Downloads/dspace-4.2-src-release.tar.gz /build/

cd /build
tar -xvzf dspace-4.2-src-release.tar.gz

cd /build/dspace-4.2-src-release
mvn -U packag OR mvn install

Configure Tomcat to know about the DSpace webapps.
[If the following command not open, check the tomcat version number and apply in the command]

sudo gedit /etc/tomcat6/server.xml
(if gedit is not installed in your system type apt-get install gedit)

------Add bellow lines at the end of & before </host> section-----

<!-- Define a new context path for all DSpace web apps -->
<Context path="/xmlui" docBase="/dspace/webapps/xmlui" allowLinking="true"/>
<Context path="/sword" docBase="/dspace/webapps/sword" allowLinking="true"/>
<Context path="/oai" docBase="/dspace/webapps/oai" allowLinking="true"/>
<Context path="/jspui" docBase="/dspace/webapps/jspui" allowLinking="true"/>
<Context path="/lni" docBase="/dspace/webapps/lni" allowLinking="true"/>
<Context path="/solr" docBase="/dspace/webapps/solr" allowLinking="true"/>

(save and close the file )

sudo chown tomcat6:tomcat6 /dspace -R


Restart Tomcat6 (my system has tomcat 6)

/etc/init.d/tomcat6 restart

Make an initial administrator account (an e-person) in DSpace:

/dspace/bin/dspace create-administrator

browse 
http://localhost:8080/xmlui


Your's Truly,

Bharat

Saturday, November 8, 2014

The DSpace 5.0 Testathon Begins Nov 10, 2014

–Users/Feedback Wanted!

From Hardy Pottinger, DSpace 5.0 Release Team Member
The first Release Candidate for DSpace 5.0 will be made available for testing on November 6, 2014. New features of interest include:
For all UIs:
• Batch import from Zip files uploaded via the admin interface of either UI
• Easier Database upgrades, thanks to the inclusion of Flyway, an open-source database migration tool
• A feature-complete REST API, supporting both read and write operations
• Linked (Open) Data support
• Metadata for all DSpace Objects
• Improved thumbnail generation (via ImageMagick/Ghostscript)
• Google Analytics integration now tracks "downloads" of bitstreams
• A place to add third-party plugins
For JSPUI only:
• HTML5-based drag and drop upload interface for uploading bitstreams during submission
• Per-item configurable visual indicators for browse and search results
For XMLUI only:
• Mirage2 theme, utilizing many modern web design tools and technologies, facilitating a "responsive" web design, adapting to any screen size
• ORCID integration via an authority plugin, and a new authority cache
• Serpa/Romeo lookup
• Rendering MathML code in abstracts
• Error pages (including page not found) are all styled with your own site styles
• Collection drop down box performance improvements for repositories with a large number of collections
• (Optional) ability to generate citation cover pages on PDFs
• An aspect for adding Google Analytics web usage information to item pages
There's much more. Please see full list on the Release Status page at: https://wiki.duraspace.org/display/DSPACE/DSpace+Release+5.0+Status

Schedule Restart ​PM2 Service for DSpace 9.2 on Ubuntu

Start Manually pm2 start /home/dspace/dspace-angular-dspace-9.2/dspace- ui.json   Find PM2 binary path which pm2 Add DAILY resta...