Installation of VuFind on Ubuntu

 Installation of VuFind on Ubuntu


Software need to be installed through the command prompt:

i) A Linux server
ii) Apache
iii) MariaDB or MySQL
iv) PHP
v) Java JDK
vi) VuFind
vii) Mousepad (Text-Editor)

(Note the red mark lines are the command need to be executed on the terminal)

Short Installation: (Details Installation 👈🏻 Click Here)

Step1: Open the terminal by pressing (Ctrl+Alt+T) or go to Applications > Accessories > Terminal and select it for executing the below command.

Update Ubuntu
This process will update the Linux operating system latest by downloading new packages.

sudo apt update

Install Mousepad text editor

gedit is an open-source text editor, which requires opening configuration files while the installation process of VuFind.

sudo apt-get install gedit

Download VuFind

wget https://github.com/vufind-org/vufind/releases/download/v8.1.1/vufind_8.1.1.deb

Install the package

sudo dpkg -i vufind_8.1.1.deb

If you do not have all of VuFind’s dependencies installed already, dpkg will fail with an error message. You can correct this problem by installing the missing requirements using apt-get:

sudo apt-get install -f

make sure appropriate environment variable settings are loaded by running:

source /etc/profile

echo $VUFIND_HOME

cd  $VUFIND_HOME

Start Solr

./solr.sh start

Set Mysql database root password:

sudo mysql -uroot

UPDATE mysql.user SET plugin='mysql_native_password' WHERE User='root';

flush privileges;

quit;

sudo /usr/bin/mysql_secure_installation

You will get the following message. Follow the instructions and go ahead:

Press Y|Y for Yes, any other key for No: N [Type N]

New Password: [Set a password]

Re-enter new password: [Re-enter the password]

Remove anonymous users? (Press y|Y for Yes, any other key for No) : Y [Type Y]

Disallow root login remotely? (Press y|Y for Yes, any other key for No) : Y [Type Y]

Remove test database and access to it? (Press y|Y for Yes, any other key for No) : Y [Type Y]

Reload privilege tables now? (Press y|Y for Yes, any other key for No) : Y [Type Y]

All Done

VuFind post-installation configuration

Copy the below URL and paste it in your web browser for “Auto-Configuration”.

http://127.0.1.1/vufind/Install/Home

The screen will show various items. Some items may show “Failed” with “Fix”. Click on fix button. You will get directions about how to fix the problems.

For ILS setup follow the below instructions:

sudo gedit /usr/local/vufind/config/vufind/NoILS.ini

You can find the line “mode = ils-offline”

Change it to “mode = ils-none” & save it

Then click on Fix option under ILS & choose “NoILS” from the drop down menu and click on Submit Query

After fixing all problems, you can open VuFind at http://127.0.1.1/vufind

Import Marc file into VuFind

Keep your Marc file into “usr/local/vufind/tests/data” directory

You can check the Marc file into the location with the following command

cd /usr/local/vufind

ls tests/data/*.mrc

Exit from root for solr run

Start Solr

./solr.sh start

Import Marc file with the following command

Check the path of your mrc file in the “tests/data” directory and run the command below:

For Ex: ./import-marc.sh tests/data/journals.mrc (Here “journals.mrc” is the file name, change the name as per your file)

Go to your browser type localhost/vufind and click on find option and you can see the imported marc record.


OR

Detailed Installation (Mostly Recommended)

Update & upgrade Ubuntu:

sudo apt-get update

sudo apt-get dist-upgrade

sudo apt-get install gedit


Install Apache HTTP Server:

sudo apt-get -y install apache2

sudo a2enmod rewrite

sudo /etc/init.d/apache2 force-reload


Install MariaDB server:

sudo apt install mariadb-server

Assign Root password for MariaDB:

sudo mysqladmin -u root password newpass    [Replace 'newpass']


Install PHP:

sudo apt-get -y install libapache2-mod-php php-mbstring php-pear php php-dev php-gd php-intl php-json php-ldap php-mysql php-xml php-soap php-curl

Also install php-sybase:

sudo apt-get -y install php-sybase


Install the Java JDK:

sudo apt-get -y install default-jdk


Download VuFind:

cd /tmp

wget https://github.com/vufind-org/vufind/releases/download/v8.1.1/vufind-8.1.1.tar.gz

tar -xzvf vufind-8.1.1.tar.gz

sudo mv vufind-8.1.1 /usr/local/vufind


Install VuFind:

cd /usr/local/vufind

php install.php


Set some permissions to allow Apache to write configuration and cache files to disk:

sudo chown -R www-data:www-data /usr/local/vufind/local/cache

sudo chown -R www-data:www-data /usr/local/vufind/local/config


Create a separate cache directory to use VuFind's command line tools:

sudo mkdir /usr/local/vufind/local/cache/cli

sudo chmod 777 /usr/local/vufind/local/cache/cli


Link VuFind to Apache:

sudo ln -s /usr/local/vufind/local/httpd-vufind.conf /etc/apache2/conf-enabled/vufind.conf


Restart Apache Server:

sudo /etc/init.d/apache2 reload


Set Up Environment Variables:


sudo sh -c 'echo export JAVA_HOME=\"/usr/lib/jvm/default-java\" > /etc/profile.d/vufind.sh'

sudo sh -c 'echo export VUFIND_HOME=\"/usr/local/vufind\"  >> /etc/profile.d/vufind.sh'

sudo sh -c 'echo export VUFIND_LOCAL_DIR=\"/usr/local/vufind/local\"  >> /etc/profile.d/vufind.sh'

source /etc/profile.d/vufind.sh


Start Solr:

cd /usr/local/vufind/

./solr.sh start


#VuFind post installation configuration:

Copy the below URL and paste it in your web browser for “Auto-Configuration”.

http://127.0.1.1/vufind/Install/Home/

The screen will show various items. Some items may show “Failed” with “Fix”. Click on fix button. You will get directions about how to fix the problems.

For ILS setup follow the below instructions:

sudo gedit /usr/local/vufind/config/vufind/NoILS.ini


You can find the line “mode = ils-offline”

Change it to “mode = ils-none” & save it

Then click on Fix option under ILS & choose “NoILS” from the drop down menu and click on Submit Query

After fixing all problems, you can open VuFind at       http://127.0.1.1/vufind


#Import Marc file into VuFind:

Keep your Marc file into “usr/local/vufind/tests/data” directory.

You can check the Marc file into the location with the following command

cd /usr/local/vufind

ls tests/data/*.mrc


#Start Solr:

./solr.sh start


#Import Marc file with the following command:

Check the path of your mrc file in the "tests/data" directory and run the command below:

For Ex:

./import-marc.sh tests/data/journals.mrc  (Here “journals.mrc” is the file name, change the name as per your file)

Go to your browser type localhost/vufind and click on find option and you can see the imported marc record.

Comments

Popular posts from this blog

Install Dspace 7.2 on Ubuntu 22.04 LTS

How to delete library data in koha using the command line

Koha INSTALLATION

Total views