tag:blogger.com,1999:blog-6408362051531878792024-03-13T15:25:36.331-07:00EPrints GeekVimalhttp://www.blogger.com/profile/16315338813797680405noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-640836205153187879.post-374862914655074952018-11-04T00:30:00.000-07:002018-11-04T01:02:02.948-08:00Install EPrints on Ubuntu<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: justify;">
Here is the procedures to install EPrints 3.3.x on Ubuntu 16.04 LTS. EPrints wrote on PERL. Installation requirements are Linux (Debian/Ubuntu/Red Hat), MySQL and Apache. Here is the step by step instructions;</div>
<br>
<b>1. Become a root user</b><br>
<br>
<span style="font-family: "courier new" , "courier" , monospace;"><b>sudo su</b></span><br>
<br>
<b>2. Update the Ubuntu</b><br>
<br>
<b><span style="font-family: "courier new" , "courier" , monospace;">apt update</span></b><br>
<b><span style="font-family: "courier new" , "courier" , monospace;">apt upgrade</span></b><br>
<br>
<b>3. Install a simple and lightweight text editor </b><br>
<br>
<b><span style="font-family: "courier new" , "courier" , monospace;">apt install leafpad</span></b><br>
<br>
<b>4. Add the EPrints repository to Ubuntu.</b><br>
<br>
Open the sources list file,<br>
<br>
<b style="font-family: "courier new", courier, monospace;">leafpad /etc/apt/sources.list</b><br>
<br>
Copy and paste the following lines into the bottom of the file,<br>
<br>
<span style="font-family: "courier new" , "courier" , monospace;"><b>#EPrints repository</b></span><br>
<span style="font-family: "courier new" , "courier" , monospace;"><b>deb http://deb.eprints.org/stable ./</b></span><br>
<br>
Save and close the file.<br>
<br>
Add EPrints repository key,<br>
<br>
<span style="font-family: "courier new" , "courier" , monospace;"><b>wget -O - http://deb.eprints.org/keyFile | apt-key add -</b></span><br>
<br>
Update the repository index,<br>
<br>
<span style="font-family: "courier new" , "courier" , monospace;"><b>apt update</b></span><br>
<br>
<b>5. Install EPrints</b><br>
<br>
<span style="font-family: "courier new" , "courier" , monospace;"><b>apt install eprints</b></span><br>
<br>
The installation process will ask to create Root password for MySQL Database. Enter the new root password and note down it.<br>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjp5ET9W_AxM6s4ZvSjP94rcP3vRvCTU3dnXrStl-NQr1ZQMVyzs_HNAKGJRsLi55pqGWbKMjmFdlkNZ4nxlsl4F2EBKim2W37nIFA7yzVJ2FpnLitKyB6MnDzh_d7wXOjGBh6gC1Qjstbf/s1600/MySQL-Server.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="194" data-original-width="602" height="203" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjp5ET9W_AxM6s4ZvSjP94rcP3vRvCTU3dnXrStl-NQr1ZQMVyzs_HNAKGJRsLi55pqGWbKMjmFdlkNZ4nxlsl4F2EBKim2W37nIFA7yzVJ2FpnLitKyB6MnDzh_d7wXOjGBh6gC1Qjstbf/s640/MySQL-Server.png" width="640"></a></div>
<br>
<b>6. Apache configuration</b><br>
<br>
Add EPrints site to Apache web server,<br>
<br>
<span style="font-family: "courier new" , "courier" , monospace;"><b>a2ensite eprints</b></span><br>
<br>
Reload Apache server<br>
<span style="font-family: "courier new" , "courier" , monospace;"><b><br></b></span> <span style="font-family: "courier new" , "courier" , monospace;"><b>service apache2 reload</b></span><br>
<br>
<b>7. Post installation configuration</b><br>
Login as eprints user,<br>
<br>
<span style="font-family: "courier new" , "courier" , monospace;"><b>su eprints</b></span><br>
<br>
Enter inside EPrints installation folder,<br>
<br>
<span style="font-family: "courier new" , "courier" , monospace;"><b>cd /usr/share/eprints3/</b></span><br>
<br>
Apply the following command to start the configuration,<br>
<br>
<span style="font-family: "courier new" , "courier" , monospace;"><b>./bin/epadmin create</b></span><br>
<br>
Ready to answer the following questions. See the questions and sample answers.<br>
<br>
1. Archive ID? <b class="">eprints</b><br>
<br>
2. Configure vital settings? [yes] ? <b>Press the Enter button</b><br>
<br>
3. Hostname? <b>eprints.library.org</b><br>
<br>
4. Webserver Port [80] ? <b>Press the Enter button</b><br>
<br>
5. Alias (enter # when done) [#] ? <b>Press the Enter button</b><br>
<br>
6. Path [/] ? <b>Press the Enter button</b><br>
<br>
7. HTTPS Hostname [] ? <b>Press the Enter button</b><br>
<br>
8. Administrator Email? <b>Enter the administrator email here.</b><br>
<br>
9. Archive Name [Test Repository] ? <b>eprints</b><br>
<br>
10. Write these core settings? [yes] ? <b>Press the Enter button</b><br>
<br>
11. Configure database? [yes] ? <b>Press the Enter button</b><br>
<br>
13. Database Name [eprints] ? <b>Press the Enter button</b><br>
<br>
14. Database Password [WUnE0TiC]? You can enter a different password. Note down the password.<br>
<br>
15. Database Engine [MyISAM] ? <b>Press the Enter button</b><br>
<br>
16. Write these database settings? [yes]? <b>Press the Enter button</b><br>
<br>
17. Create database "eprints" [yes] ? <b>Press the Enter button</b><br>
<br>
18. Database Superuser Username [root]? <b>Press the Enter button</b><br>
<br>
19. Database Superuser Password? Enter the MySQL Root password. Password will not display here.<br>
<br>
20. Create database tables? [yes] ? <b>Press the Enter button</b><br>
<br>
21. Create an initial user? [yes] ? <b>Press the Enter button</b><br>
<br>
22. Enter a username [admin] ? <b>Press the Enter button</b><br>
<br>
23. Select a user type (user|editor|admin) [admin] ? <b>Press the Enter button</b><br>
<b><br></b> 24. Enter Password? <b>Enter a password and note down it. We need it while login as admin.</b><br>
<br>
<b></b> 25. Email? <b>Enter an email for the admin user.</b> <b>Press the Enter button</b><br>
<br>
<b></b> 26. Do you want to build the static web pages? [yes]? <b>Press the Enter button</b><br>
<br>
<b></b> 27. Do you want to import the LOC subjects? [yes]? <b>Press the Enter button</b><br>
<br>
<b></b> 28. Do you want to update the apache config files? (you still need to add the 'Include' line) [yes]? <b>Press the Enter button</b><br>
<br>
<b>8. Finishing of post-installation configuration</b><br>
<br>
Exit from EPrints user<br>
<br>
<span style="font-family: "courier new" , "courier" , monospace;"><b>exit</b></span><br>
<br>
Restart Apache server<br>
<br>
<span style="font-family: "courier new" , "courier" , monospace;"><b>/etc/init.d/apache2 restart</b></span><br>
<br>
<b>9. Change the Hostname</b><br>
Open the following file and give the Hostname,<br>
<br>
<span style="font-family: "courier new" , "courier" , monospace;"><b>leafpad /etc/hosts</b></span><br>
<br>
Add the following line,<br>
<br>
<b><span style="font-family: "courier new" , "courier" , monospace;">127.0.1.1<span style="white-space: pre;"> </span>eprints.library.org</span></b><br>
<br>
If your computer inside a network, find the IP and add to the hosts' file.<br>
<br>
e.g. <b><span style="font-family: "courier new" , "courier" , monospace;">192.168.1.200<span style="white-space: pre;"> </span>eprints.library.org</span></b><br>
<br>
<b>10. Open EPrints</b><br>
Open a Web browser and put the following address in the bar,<br>
<br>
<b>http://eprints.library.org</b><br>
<br>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPXuoN6I5lpZ67QVR9ApajwnGTvfdCQE2WCOXp4RJisVp1AtxdNEMckPYAACgd7RQLyoNMQithqDVaghDlpKQVyCh-ngYUff5uWYt4t7Z1G5_ezS2L9D4SyA_4GKFdmmokfyMk3F-bgZuZ/s1600/EPrints-home.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="318" data-original-width="785" height="257" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPXuoN6I5lpZ67QVR9ApajwnGTvfdCQE2WCOXp4RJisVp1AtxdNEMckPYAACgd7RQLyoNMQithqDVaghDlpKQVyCh-ngYUff5uWYt4t7Z1G5_ezS2L9D4SyA_4GKFdmmokfyMk3F-bgZuZ/s640/EPrints-home.png" width="640"></a></div>
<br>
Log into Eprints by clicking <b>Login</b> link on the home page. Log in using the username <b>admin</b> and apply the password you have enter while the post-installation configuration.<br>
<br>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhof1zdMa6UAAeFRx0itQXqp8KoV9mJmqVWz2V4drcxSxsyCBM50p_DoOD3qMRJXYYdtb5XwAaHRcrJkf4G-O-od148pMdHPI40wI_hNBnm4BIJBDDyqBDI6bSd64Ri17tYdW8vxu1kR9bu/s1600/EPrints-Login.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="314" data-original-width="789" height="252" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhof1zdMa6UAAeFRx0itQXqp8KoV9mJmqVWz2V4drcxSxsyCBM50p_DoOD3qMRJXYYdtb5XwAaHRcrJkf4G-O-od148pMdHPI40wI_hNBnm4BIJBDDyqBDI6bSd64Ri17tYdW8vxu1kR9bu/s640/EPrints-Login.png" width="640"></a></div>
<br>
<b>References</b><br>
1. <a href="https://wiki.eprints.org/w/Installing_EPrints_on_Debian/Ubuntu" target="_blank">Installing EPrints on Debian/Ubuntu</a></div>
Vimalhttp://www.blogger.com/profile/16315338813797680405noreply@blogger.com0