1. Masuk Sebagai Root :
nurjaman@nurjaman:~$ su -
Password:2. Install Aplikasi pendukung :
root@nurjaman:/home/nurjaman# apt-get install perl libncurses5 libselinux1 apache2 libapache2-mod-perl2 libxml-libxml-perl libunicode-string-perl libterm-readkey-perl libmime-lite-perl libmime-types-perl libdigestsha-perl libdbd-mysql-perl libxml-parser-perl libxml2-dev libxml-twig-perl libarchive-any-perl libjson-perl liblwp-protocol-https-perl libtext-unidecode-perl lynx wget ghostscript poppler-utils antiword elinks texlive-base texlive-base-bin psutils imagemagick adduser tar gzip unzip libsearch-xapianperl
libtex-encode-perl libio-string-perl libdbd-mysql-perl python3-html2text -y make3. Install aplikasi MariaDB :
root@nurjaman:/home/nurjaman# apt-get install mariadb-server mariadb-client -y4. Masuk ke aplikasi MariaDB :
root@nurjaman:/home/nurjaman# mariadb5. Tambahkan perintah di bawah ini untuk membuat user dan password database eprints :
MariaDB [(none)]> CREATE USER 'eprints'@'localhost' IDENTIFIED by 'inputpassword';
Query OK, 0 rows affected (0.018 sec)
6. Tambahkan perintah di bawah ii untuk pengaturan hak ases database :
MariaDB [(none)]> GRANT ALL PRIVILEGES ON *.* TO 'eprints'@'localhost' WITH GRANT OPTION;
Query OK, 0 rows affected (0.013 sec)7. Keluar dari aplikasi database :
MariaDB [(none)]> exit8. Buat user eprints :
root@nurjaman:/home/nurjaman# adduser eprints
Adding user `eprints' ...
Adding new group `eprints' (1001) ...
Adding new user `eprints' (1001) with group `eprints' ...
Creating home directory `/home/eprints' ...
Copying files from `/etc/skel' ...
New password: “password user eprint”[enter]
Retype new password: “password user eprints”[enter]
passwd: password updated successfully
Changing the user information for eprints
Enter the new value, or press ENTER for the default
Full Name []: [enter]
Room Number []: [enter]
Work Phone []: [enter]
Home Phone []: [enter]
Other []: [enter]
Is the information correct? [Y/n] y9. Konfigurasi apache untuk dapat menjalankan pengguna Eprints denga mengedit file envars buka file envars dengan perintah sebagai berikut:
root@nurjaman:/home/nurjaman# nano /etc/apache2/envvarsKemudian Copy skrip berikut:
export APACHE_RUN_USER=eprints
export APACHE_RUN_GROUP=eprints
GNU nano 6.2 /etc/apache2/envvars *
# settings are defined via environment variables and then used in apache2ctl,
# /etc/init.d/apache2, /etc/logrotate.d/apache2, etc.
export APACHE_RUN_USER=www-data
export APACHE_RUN_GROUP=www-data
export APACHE_RUN_USER=eprints
export APACHE_RUN_GROUP=eprints
# temporary state file location. This might be changed to /run in Wheezy+1
export APACHE_PID_FILE=/var/run/apache2$SUFFIX/apache2.pid
export APACHE_RUN_DIR=/var/run/apache2$SUFFIX
export APACHE_LOCK_DIR=/var/lock/apache2$SUFFIX
# Only /var/log/apache2 is handled by /etc/logrotate.d/apache2.
export APACHE_LOG_DIR=/var/log/apache2$SUFFIX
Simpan perubahan file konfigurasi apache dengan cara tekan [Ctrl + X]
dan kemudian ketikkan y [enter]
10. Download file Source aplikasi Eprints :
root@nurjaman:/home/nurjaman# wget https://files.eprints.org/2789/1/eprints-3.4.5.tar.gz https://files.eprints.org/2789/2/eprints-3.4.5-flavours.tar.gz11. Ekstrak file source Eprints
root@nurjaman:/home/nurjaman# tar xvzf eprints-3.4.5.tar.gz && tar xvzf eprints-3.4.5-flavours.tar.gz12. Masuk ke dalam folder Eprints
root@nurjaman:/home/nurjaman# cd eprints-3.4.513. Jalankan Skrip untuk Konfigurasi Eprints :
root@nurjaman:/home/nurjaman/eprints-3.4.5# ./configure14. Install Eprints
Jika terkendala tidak bisa menjalankan perintah”make install ” maka install terlebih dahulu apikais make nya dengan perintah erikut jika sudah Kembali install eprints’nya
root@nurjaman:/home/nurjaman/eprints-3.4.5# apt install makeroot@nurjaman:/home/nurjaman/eprints-3.4.5# make installmake[1]: Entering directory ‘/home/nurjaman/eprints-3.4.5’
make[1]: Nothing to be done for ‘install-exec-am’.
make install-data-hook
make[2]: Entering directory ‘/home/nurjaman/eprints-3.4.5’
mkdir -p /opt/eprints3
DESTDIR= /usr/bin/perl install.pl
Installed EPrints to: /opt/eprints3
make[2]: Leaving directory ‘/home/nurjaman/eprints-3.4.5’
make[1]: Leaving directory ‘/home/nurjaman/eprints-3.4.5’
15. Pindah ke folder eprints :
root@nurjaman:/home/nurjaman/eprints-3.4.5# su - eprints16. Masuk ke folder eprint3
eprints@nurjaman:~$ cd /opt/eprints317. Jalankan aplikasi epadmin untuk membuar repositori beserta seting Erprints :
eprints@nurjaman:/opt/eprints3$ bin/epadmin create pubCreate a pub Repository
Please select an ID for the repository, which will be used to create a directory
and identify the repository. Lower case letters, numbers and underscores, may not start with a number or underscore. examples: “repositori”, “digilib” or “perpustakaan”
Archive ID? repositori [enter]
Ok. I’ve created the initial config files and directory structure.
‘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] ? [enter]
Please enter the fully qualified hostname of the repository.
For a production system we recommend against using the real hostname of the
machine.
Example: repositori.footle.ac.uk
Hostname?repositori.tes.ac.id [enter] *masukkan alamat lokal untuk memanggil aplikasi Eprints di browser
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] ? [enter]
Enter a single hash (#) when you’re done.
Alias (enter # when done) [#] ? [enter]
Please enter the path part of the repository’s base URL. This should probably
be ‘/’.
Path [/] ? [enter]
If you will use https for your user pages (including login) enter the https hostname
here, or leave blank when using http only. HTTPS Hostname [] ? [enter]
Administrator Email? muntashir.id@gmail.com [enter]
*input alamat email sesuai kebutuhan 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] ? UIN Imam Bonjol Repository
Enter the name of the organisation in the default language. Again, 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.
Organisation Name [Organisation of Test] ? UIN Imam Bonjol [enter]
Write these core settings? [yes] ? [enter]
Configure database? [yes] ? [enter]
database Name [repositori] ? [enter]
MySQL Host [localhost] ? [enter]
You probably don’t need to set socket and port (unless you do!?).
MySQL Port (# for no setting) [#] ? [enter]
MySQL Socket (# for no setting) [#] ? [enter]
Database User [repositori] ? [enter]
Database Password [X4lFjc6Dp2h9zmli] ? [enter]
Database Engine [InnoDB] ? [enter]
Write these database settings? [yes] ? [enter]
Create database “repositori” [yes] ? [enter]
Database Superuser Username [root] ? eprints
Database Superuser Password? rahasia [enter]
Create database tables? [yes] ? [enter]
Create an initial user? [yes] ? [enter]
Enter a username [admin] ? [enter]
Select a user type (user|editor|admin) [admin] ? [enter]
Enter Password? rahasia [enter]
Email? muntashir.id@gmail.com
Do you want to build the static web pages? [yes] ? [enter]
Do you want to import the LOC subjects and sample divisions? [yes] ? [enter]
Do you want to update the apache config files? (you still need to add the
‘Include’ line) [yes] ? [enter]
Add the following line to your apache configuration:
Include /opt/eprints3/cfg/apache.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_eprints 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 /opt/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 graceful)
And then try connecting to your repository. ————————————————————————–
Don’t forget to register your repository at http://roar.eprints.org/
18. Keluar dari pengguna Eprints :
exit19. Buat file configurasi eprints.conf di apache :
root@nurjaman:/home/nurjaman/eprints-3.4.5# nano /etc/apache2/sites-available/eprints.confcopy baris di bawah ke dalam file epnrits.conf
Include /opt/eprints3/cfg/apache.conf
20. Aktifkan konfigurasi virtual host dari aplikasi Eprints :
root@nurjaman:/home/nurjaman/eprints-3.4.5# a2ensite eprints21. Reload apache
root@nurjaman:/home/nurjaman/eprints-3.4.5# systemctl reload apache222. Nonaktfikan situs default apache
root@nurjaman:/home/nurjaman/eprints-3.4.5# a2dissite 000-default23. Reload apache server
root@nurjaman:/home/nurjaman/eprints-3.4.5# systemctl reload apache224. Restart service apache
root@nurjaman:/home/nurjaman/eprints-3.4.5# service apache2 restart25. Buka Browser (Chrome, Firefox, Edge, Opera dll.) dan coba akses ke domain yang sudah di sinkroninasi atau menggunakan alamat ip server Eprint