Install Eprints (via apt-get) on Ubuntu Server by Cin Wong


sumber : disini

This is the steps I have taken to install Eprints on Ubuntu. If you prefer official guide, see eprints wiki.

When I first tried to install Eprints, I could not install this “via apt-get” installer. There is a dependency package called ‘textex-bin’. This package has been replaced with texLive so it no longer exists. After some researching I have come to this older installation instruction for ubuntu 6.10. This is how I found the dependencies packages for Eprints.

As they say third time is a charm, this works on my third time and unfortunately, this time I am documenting how to install. If I had to install another one again and come across with the previous problem, I will make sure I noted down. Anyway, the followings are the installation steps.

Open the sources.list file for modification

$sudo vi /etc/apt/sources.list

Insert the following in the sources.list file and save the file.

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

In command line, run the update so that changes can be registered.

$sudo apt-get update

Install Eprints

$sudo apt-get install eprints

Now we have installed Eprints so now we have to setup the repository so that we can start using it.
First, let’s set the password for eprints user. Otherwise you won’t be able to switch to eprints.

$passwd eprints

Now, we can switch to eprints user

$sudo su eprints

Now, we will go to the eprints folder where installer has just installed.

$cd /usr/share/eprints

Now to create a new repository, run this following command and later follow the on-screen instructions. For detail instructions for this, see getting started with eprints 3.

$./bin/epadmin create

When done, exit the shell for eprints user so that you can now get back your admin role.

$exit

Make sure eprints3 file is in /etc/apache2/sites-available/ folder and eprints3 file contain the following:

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

Then, enable the eprints3 site.

$sudo a2ensite eprints3

If you are using port 80 for eprints, make sure you disable default site.

$sudo a2dissite default

Now restart the apache

$sudo /etc/init.d/apache2 restart

All done. Now open to your browser and try to go to the Eprints site.


One response to “Install Eprints (via apt-get) on Ubuntu Server by Cin Wong”

  1. This installation process works fine for me till i want to install eprints.
    When i run “sudo apt-get install eprints” i get the error message below:

    pc@ubuntu:~$ sudo apt-get install eprints
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:

    The following packages have unmet dependencies:
    eprints : PreDepends: apache2-mpm-prefork but it is not installable
    E: Unable to correct problems, you have held broken packages.

Leave a Reply