Home > Blogosphere > Small Note How To Install Eprints – Digital Repository Software

Small Note How To Install Eprints – Digital Repository Software


EPrints  is generic repository building software developed by the University of Southampton. It is intended to create a highly configurable web-based repository. EPrints is often used as an open archive for research papers, and the default configuration reflects this, but it is also used for other things such as images, research data, audio archives – anything that can be stored digitally As the first professional software platform for building high quality OAI-compliant repositories, EPrints is already established as the easiest and fastest way to set up repositories of open access research literature, scientific data, theses, reports and multimedia. EPrints 3 is a major leap forward in functionality, giving even more control and flexibility to repository managers, depositors, researchers and technical administrators……  http://www.eprints.org

This Threat will discuss about How To Install Eprints 3  Repository Software on Ubuntu Server.

root@cisco3:~# cat /etc/*release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=11.10
DISTRIB_CODENAME=oneiric
DISTRIB_DESCRIPTION="Ubuntu 11.10"
root@cisco3:~#

To install the testing build add  the following to /etc/apt/sources.list:

deb http://deb.eprints.org/3.1/ stable/
deb-src http://deb.eprints.org/3.1/ source/

Installing Eprints via apt-get

To install Eprints and all its dependencies execute the following (as root):

root@cisco3:~# apt-get update
Ign http://dl2.foss-id.web.id oneiric InRelease
Ign http://dl2.foss-id.web.id oneiric-updates InRelease
Ign http://dl2.foss-id.web.id oneiric-security InRelease
Ign http://dl2.foss-id.web.id oneiric-backports InRelease

root@cisco3:~# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@cisco3:~#

root@cisco3:~# apt-get install eprints
Reading package lists... Done
Building dependency tree
Reading state information... Done
eprints is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@cisco3:~#

Setting up a Repository

You should now have a working installation of eprints in /usr/share/eprints3/. Please follow the on-screen instructions to set up an eprints repository. You probably want to start with (as root) ,

root@cisco3:~# ls /usr/share/eprints3/
archives  bin  cgi        COPYING  NEWS      README      testdata  var
AUTHORS   cfg  CHANGELOG  lib      perl_lib  SIGNATURES  tests     VERSION
root@cisco3:~#

For more information about setting up an EPrints repository take a look at Getting Started with EPrints 3.

root@cisco3:~# su eprints
eprints@cisco3:/root$ /usr/share/eprints3/bin/epadmin create

Create an EPrint Repository

Please select an ID for the repository, which will be used to create a directory
and identify the repository. Lower case letters and numbers, may not start with
a number. examples: "lemurprints" or "test3"

Existing repositories:
repository, eprintsunila

Archive ID?

Archive ID? eprints
We need to create /usr/share/eprints3/archives/eprints, doing it now...
Getting uid and gid information for eprints
UID: 116
GID: 126

Creating initial files:
Installing: /usr/share/eprints3/archives/eprints/cfg
Installing: /usr/share/eprints3/archives/eprints/cfg/cfg.d
Installing: /usr/share/eprints3/archives/eprints/cfg/static
Installing: /usr/share/eprints3/archives/eprints/cfg/static/style
Installing: /usr/share/eprints3/archives/eprints/cfg/static/style/images
Installing: /usr/share/eprints3/archives/eprints/cfg/static/style/auto
Installing: /usr/share/eprints3/archives/eprints/cfg/static/images
Installing: /usr/share/eprints3/archives/eprints/cfg/static/javascript
Installing: /usr/share/eprints3/archives/eprints/cfg/static/javascript/auto
Installing: /usr/share/eprints3/archives/eprints/cfg/autocomplete
Installing: /usr/share/eprints3/archives/eprints/cfg/namedsets
Installing: /usr/share/eprints3/archives/eprints/cfg/lang
Installing: /usr/share/eprints3/archives/eprints/cfg/lang/en
Installing: /usr/share/eprints3/archives/eprints/cfg/lang/en/static
Installing: /usr/share/eprints3/archives/eprints/cfg/lang/en/static/help
Installing: /usr/share/eprints3/archives/eprints/cfg/lang/en/phrases
Installing: /usr/share/eprints3/archives/eprints/cfg/lang/en/templates
Installing: /usr/share/eprints3/archives/eprints/cfg/workflows
Installing: /usr/share/eprints3/archives/eprints/cfg/workflows/eprint
Installing: /usr/share/eprints3/archives/eprints/cfg/workflows/user
Installing: /usr/share/eprints3/archives/eprints/cfg/citations
Installing: /usr/share/eprints3/archives/eprints/cfg/citations/eprint
Installing: /usr/share/eprints3/archives/eprints/cfg/citations/document
Installing: /usr/share/eprints3/archives/eprints/cfg/citations/user

Ok. I've created the initial config files and directory structure.
I've also created a "disk0" directory under documents/ if you want
your full texts to be stored on a different partition then remove
the disk0, and create a symbolic link to the directory you wish to
store the full texts in. Additional links may be placed here to be
used when the first is full.

Configure vital settings? [yes] ?

Please enter the fully qualified hostname of the repository.

For a production system we recommend against using the real hostname of the
machine.

Example: eprints.footle.ac.uk

Hostname? print.unila.ac.id

Please enter the port of the webserver. This is probably 80, but you may wish
to run apache on a different port if you are experimenting.

Webserver Port [80] ?

Please enter all the aliases which could reach the repository, and indicate if
you would like EPrints to write a Redirect Rule to redirect requests to this
alias to the correct URL.
Some suggestions:
cisco3.mydomain.com
cisco3.mydomain
cisco3
print.unila
print

Enter a single hash (#) when you're done.

Alias (enter # when done) [#] ? #

Please enter the path part of the repository's base URL. This should probably
be '/'.

Path [/] ?

If you will use https for your user pages (including login) enter the https hostname
here, or leave blank when using http only.

Hostname?

Administrator Email? gigih@unila.ac.id

Enter the name of the repository in the default language. If you wish to enter
other titles for other languages or enter non ascii characters then you may
enter something as a placeholder and edit the XML config file which this
script generates.

Archive Name [Test Repository] ? Tes Eprint

Write these core settings? [yes] ? Y

Write these core settings? [yes] ? yes
Wrote /usr/share/eprints3/archives/eprints/cfg/cfg.d/adminemail.pl
Wrote /usr/share/eprints3/archives/eprints/cfg/cfg.d/10_core.pl
Wrote /usr/share/eprints3/archives/eprints/cfg/lang/en/phrases/archive_name.xml

Configure database? [yes] ? yes

Configuring Database for: eprints

Configuring Database for: eprints
Database Name [eprints] ? print
MySQL Host [localhost] ?

You probably don't need to set socket and port (unless you do!?).
MySQL Port (# for no setting) [#] ?
MySQL Socket (# for no setting) [#] ?
Database User [eprints] ? print
Database Password [3nAyl2ex] ?

Write these database settings? [yes] ?
Wrote /usr/share/eprints3/archives/eprints/cfg/cfg.d/database.pl

EPrints can create the database, and grant the correct permissions.

Create database "print" [yes] ?

Create database "print" [yes] ? yes
Database Superuser Username [root] ?
Database Superuser Password?
Create database tables? [yes] ?
Creating database tables...
Set DB compatibility flag to '3.2.4'.
Done creating database tables.

Create an initial user? [yes] ? yes
Creating a new user in eprints

Enter a username [admin] ?
Select a user type (user|editor|admin) [admin] ? admin
Enter Password?
Bad Input, try again.
Enter Password?
Email? gigih@unila.ac.id

Successfully created new user:
       ID: 1
Do you want to build the static web pages? [yes] ? yes

/usr/share/eprints3/lib/static/javascript/auto/50_toggle.js -> /usr/share/eprints3/archives/eprints/html/en/javascript/auto/50_toggle.js
/usr/share/eprints3/lib/static/style/images/blackline.png -> /usr/share/eprints3/archives/eprints/html/en/style/images/blackline.png
/usr/share/eprints3/lib/static/style/images/blister_arrow.png -> /usr/share/eprints3/archives/eprints/html/en/style/images/blister_arrow.png
/usr/share/eprints3/lib/static/javascript/codemirror/stringstream.js -> /usr/share/eprints3/archives/eprints/html/en/javascript/codemirror/stringstream.js
/usr/share/eprints3/lib/static/style/images/progress_bar_orange.png -> /usr/share/eprints3/archives/eprints/html/en/style/images/progress_bar_orange.png
/usr/share/eprints3/lib/static/style/images/action_remove.png -> /usr/share/eprints3/archives/eprints/html/en/style/images/action_remove.png
/usr/share/eprints3/lib/static/style/images/progress_border.png -> /usr/share/eprints3/archives/eprints/html/en/style/images/progress_border.png
/usr/share/eprints3/lib/static/style/images/checkbox_empty.png -> /usr/share/eprints3/archives/eprints/html/en/style/images/checkbox_empty.png
/usr/share/eprints3/lib/static/images/logo_large.png -> /usr/share/eprints3/archives/eprints/html/en/images/logo_large.png
/usr/share/eprints3/lib/static/style/auto/form.css -> /usr/share/eprints3/archives/eprints/html/en/style/auto/form.css
/usr/share/eprints3/lib/static/style/auto/messages.css -> /usr/share/eprints3/archives/eprints/html/en/style/auto/messages.css
/usr/share/eprints3/lib/static/javascript/auto/50_button_pushed.js -> /usr/share/eprints3/archives/eprints/html/en/javascript/auto/50_button_pushed.js
/usr/share/eprints3/lib/static/style/images/multi_down.png -> /usr/share/eprints3/archives/eprints/html/en/style/images/multi_down.png

Imported subject sch_psy
Imported subject sch_bio
Imported subject sch_med
Imported subject subjects
Imported subject A
Imported subject AC
Imported subject AI
Imported subject AM
Imported subject AS
Imported subject AZ
Imported subject B
Imported subject B1
Imported subject BC
Imported subject BD
Imported subject BF
Imported subject BH
Imported subject BJ
Imported subject BL
Imported subject BM

you want to update the apache config files? (you still need to add the 'Include' line) [yes] ? yes
Wrote /usr/share/eprints3/cfg/apache/eprints.conf

You must restart apache for any changes to take effect!

--------------------------------------------------------------------------
That seemed to more or less work...
--------------------------------------------------------------------------

Now make any required changes to the cfg files.

Note that changing the metadata configuration may require the database
tables to be regenerated. epadmin erase_data will regenerate the
eprints and documents tables only. erase_data will regenerate everything.
(nb. these also do erase the contents of the tables, and any uploaded
files).

Make sure that your main apache config file contains the line:

 Include /usr/share/eprints3/cfg/apache.conf

Then stop and start your webserver:
Often:
 /etc/rc.d/init.d/httpd stop
 /etc/rc.d/init.d/httpd start
(or maybe /usr/local/apache/bin/apachectl stop & start)

And then try connecting to your repository.
--------------------------------------------------------------------------

Don't forget to register your repository at http://roar.eprints.org/

eprints@cisco3:/root$

eprints@cisco3:/root$ exit
exit
root@cisco3:~# apache2ctl restart
apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.1.12 for ServerName
root@cisco3:~#

Done, browse your site at http://eprints.unila.ac.id

  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: