tag:blogger.com,1999:blog-14964660146295730902024-03-25T20:23:25.456+05:30Dspace GeekTips from my DSpace cookbook.Vimalhttp://www.blogger.com/profile/16315338813797680405noreply@blogger.comBlogger28125tag:blogger.com,1999:blog-1496466014629573090.post-35714400377676840482024-01-16T23:03:00.005+05:302024-01-16T23:03:42.437+05:30Change the text at DSpace 7 home page<p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghpdOE_-Zg9M971O3m2qzrVI9dtThYC_YxHI0ggrXnHcVH7pM_XRfEiuAY6q9_IPjbDveZQOjbRrxdyCev1i8V-Kbhb8ePCHoruWitE8JsHRzlvv-2byVPXJwVRa_uRORAz6yFyvqWPZZHUWcuGt9kopKUk6i40d6zlOPMyIRqJog-fABTj5EH_OkNMyUh/s1151/dspace-7-home-page.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="409" data-original-width="1151" height="229" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghpdOE_-Zg9M971O3m2qzrVI9dtThYC_YxHI0ggrXnHcVH7pM_XRfEiuAY6q9_IPjbDveZQOjbRrxdyCev1i8V-Kbhb8ePCHoruWitE8JsHRzlvv-2byVPXJwVRa_uRORAz6yFyvqWPZZHUWcuGt9kopKUk6i40d6zlOPMyIRqJog-fABTj5EH_OkNMyUh/w640-h229/dspace-7-home-page.png" width="640" /></a></div><br />Frontpage template available at <b><span style="font-family: inherit;">[dspace-angular-frontend]\src\themes\dspace\app\home-page\home-news\home-news.component.html</span></b>. The location of the dspace-angular-dspace may vary.<p></p><p>Open the template file using a text editor like Nano, e.g.</p><p><b><span style="font-family: courier;">sudo nano /home/dspace/dspace-angular-dspace-7.6.1/src/themes/dspace/app/home-page/home-news/home-news.component.html</span> </b></p><p>Rebuild the production environment to take effect the changes.</p><p>Enter the location of the dspace-angular-dspace. Find the exact location of the <b>[dspace-angular-frontend] </b>and apply the following command. Here is an example of the command,</p><p><span style="font-family: courier;"><b>cd /home/dspace/dspace-angular-dspace-7.6.1/config</b></span></p><p>Apply the following command</p><p><span style="font-family: courier;"><b>yarn run build:prod</b></span></p><p></p><p>Refresh the home page of DSpace to see the changes made.</p>Vimalhttp://www.blogger.com/profile/16315338813797680405noreply@blogger.com0tag:blogger.com,1999:blog-1496466014629573090.post-42470066501595852462023-02-23T23:44:00.003+05:302023-02-24T15:13:18.428+05:30Automate DSpace backups with Cron Task<h3 style="text-align: left;">Database backup</h3><div style="text-align: left;">Open a Terminal and log in as a Postgres user,</div><div style="text-align: left;"><br /></div><div style="text-align: left;"><b><span style="font-family: courier;">sudo su - postgres</span></b></div><div style="text-align: left;"><br /></div><div style="text-align: left;">Create a directory in the Postgres user’s home to store the backups. Apply the following command,</div><div style="text-align: left;"><br /></div><div style="text-align: left;"><span style="font-family: courier;"><b>mkdir -p ~/backups</b></span></div><p>Enter into the crontab:</p><div style="text-align: left;"><span style="font-family: courier;"><b>crontab -e</b></span></div><p>Add the following entry into the Cron,</p><div style="text-align: left;"><span style="font-family: courier;"><b>#DSpace Postgres backup</b></span></div><p><span style="font-family: courier;"><b>10 20 * * * pg_dump -U postgres dbname > ~/postgres/backups/dbname-$(date +%d-%m-%Y-%H.%M)</b></span><b style="font-family: courier;">.bak</b></p><div style="text-align: left;">Change the timing of the backup, here backup take at 8:10 PM</div><div style="text-align: left;"><br /></div><div style="text-align: left;">Apply <b>CTRL</b> + <b>O</b> button to save the cron entry.</div><div style="text-align: left;">Then apply <b>CTRL</b> + <b>X</b> to exit from the cron. </div><div style="text-align: left;"><br /></div><div style="text-align: left;">Type <b><span style="font-family: courier;">exit</span></b> to exit from Postgres prompt.</div><div style="text-align: left;"><br /></div><h3 style="text-align: left;">Backup of asset store and log folders</h3><div style="text-align: left;"><br /></div><div style="text-align: left;">Open a terminal and apply the following command to create a folder in Home to hold asset store and log folders.</div><div style="text-align: left;"><br /></div><div style="text-align: left;"><b><span style="font-family: courier;">sudo mkdir dspacebkup</span></b></div><div style="text-align: left;"><br /></div><div style="text-align: left;">Open crontab to add the entry to automate the folder backup,</div><div style="text-align: left;"><span style="font-family: courier;"><b>sudo su</b></span></div><div style="text-align: left;"><span style="font-family: courier;"><b>crontab -e</b></span></div><div style="text-align: left;"><br /></div><div style="text-align: left;">Add the following lines,</div><div style="text-align: left;"><br /></div><div style="text-align: left;"><div><span style="font-family: courier;"><b>10 20 * * * zip -r /home/vimal/</b></span><b><span style="font-family: courier;">dspacebkup/</span></b><b style="font-family: courier;">assetstore</b><b style="font-family: courier;">-$(date +%d-%m-%Y-%H.%M)</b><b style="font-family: courier;">.zip /dspace/assetstore</b></div><div><span style="font-family: courier;"><b>10 20 * * * zip -r /home/vimal/</b></span><b><span style="font-family: courier;">dspacebkup/</span></b><b style="font-family: courier;">log</b><b style="font-family: courier;">-$(date +%d-%m-%Y-%H.%M)</b><b style="font-family: courier;">.zip /dspace/log</b></div><div><br /></div><div>Change the path based on your local setup.</div></div>Vimal Kumarhttp://www.blogger.com/profile/02276624134096288391noreply@blogger.com0tag:blogger.com,1999:blog-1496466014629573090.post-81356441857088139942023-02-04T23:17:00.004+05:302023-02-06T17:53:28.939+05:30Error 500-Service unavailable: how to solve<div>Many DSpace users got <b>Error 500</b>. To solve the error, check the following things one by one.</div><div><br /></div><h3 style="text-align: left;">Solr</h3><div>Apply the following commands to restart Solr.</div><div><br /></div><span style="font-family: courier;"><b>su dspace<br />
/opt/solr/bin/solr start</b></span><div><span style="font-family: courier;"><b>exit</b></span><br /><div><br /></div><h3 style="text-align: left;">Tomcat</h3><div>Apply the following command restart Tomcat</div><div><br /><span style="font-family: courier;"><b>
sudo systemctl restart tomcat9.service</b></span><br /><br /></div><h3 style="text-align: left;">Start the user interface</h3><div>Apply the following commands,</div><div><br /></div><div><span style="font-family: courier;"><b>
sudo su<br />
pm2 start /home/dspace/dspace-angular-dspace-7.4/dspace-ui.json</b></span><br /></div></div>Vimalhttp://www.blogger.com/profile/16315338813797680405noreply@blogger.com0tag:blogger.com,1999:blog-1496466014629573090.post-4695944153120551792023-02-04T22:36:00.019+05:302024-03-19T08:33:52.989+05:30Make available DSpace 7 in a local network / web<div style="text-align: justify;">DSpace 7 default port for the front end is 4000. The port needs to open to make DSpace available in a local network. I applied this method on <b>Ubuntu 22.04</b> and <b>Debian 11</b>. Here are the processes to make available DSpace 7 in the network. </div><div style="text-align: justify;"><br /></div><h3 style="text-align: justify;">Open the Port 4000</h3><div style="text-align: justify;">ufw is the default firewall configuration tool. Install ufw by applying the following command,</div><div style="text-align: justify;"> </div><div style="text-align: justify;"><b><span style="font-family: courier;">sudo apt install ufw </span></b><br /></div><div style="text-align: justify;"> </div><div style="text-align: justify;">Apply the following command to open port 4000.</div><a name="more"></a><div style="text-align: justify;"><br /></div><div style="text-align: justify;"><span style="font-family: courier;"><b>sudo ufw allow 4000</b></span></div><div style="text-align: justify;"><span style="font-family: courier;"><b>sudo ufw enable</b></span> </div><div style="text-align: justify;"><br /></div><h3 style="text-align: justify;">Network configuration for DSpace</h3><div style="text-align: justify;">Find the IP address of the computer where DSpace is installed. Apply the following commands to install net-tools software in Ubuntu and know the network details.</div><div style="text-align: justify;"> </div><div style="text-align: justify;"><span style="font-family: courier;"><b>sudo apt install net-tools </b></span></div><div style="text-align: justify;"><span style="font-family: courier;"><b>ifconfig</b></span> </div><div style="text-align: justify;"><br /></div><div style="text-align: justify;">Debian users can apply the following command to know the network details,</div><div style="text-align: justify;"><br /></div><div style="text-align: justify;"><b><span style="font-family: courier;">nmcli -p device show</span></b><br /></div><div style="text-align: justify;"><br /></div><div style="text-align: justify;">Note down the details and add the IP address. </div><div style="text-align: justify;">Open the DSpace configuration file, </div><div style="text-align: justify;"><br /></div><div style="text-align: justify;"><span style="font-family: courier;"><b>sudo mousepad /dspace/config/local.cfg</b></span> </div><div style="text-align: justify;"><br /></div><div style="text-align: justify;">Find the following lines and add the IP address/domain name instead of localhost.</div><div style="text-align: justify;"><br /></div><div style="text-align: justify;"><span style="font-family: courier;"><b>dspace.ui.url = http://<span style="color: red;">localhost</span>:4000 </b></span></div><div style="text-align: justify;"><span style="font-family: courier;"><b>dspace.server.url = http://localhost:8080/server</b> </span></div><div style="text-align: justify;"><br /></div><div style="text-align: justify;">Save and close the file. </div><div style="text-align: justify;">Open the following configuration file (<i>make sure the location of the file in your server</i>) of the DSpace front end, </div><div style="text-align: justify;"><br /></div><div style="text-align: left;"><span style="font-family: courier;"><b>sudo mousepad /home/dspace/dspace-angular-dspace-7.6.1/config/config.prod.yml</b></span></div><div style="text-align: justify;"><br /></div><div style="text-align: justify;">Find the following piece of lines, </div><div style="text-align: justify;"><br /></div><div style="text-align: justify;"><span style="font-family: courier;"><b>ssl: false </b></span></div><div style="text-align: justify;"><span style="font-family: courier;"><b>host: <span style="color: red;">localhost</span> </b></span></div><div style="text-align: justify;"><span style="font-family: courier;"><b>port: 4000 </b></span></div><div style="text-align: justify;"><br /></div><div style="text-align: justify;">Change the hostname. Change <b><span style="font-family: courier;">localhost</span></b> to the IP address / domain name.</div><div style="text-align: justify;"><br /></div><div style="text-align: justify;"><span style="font-family: courier;"><b>ssl: false </b></span></div><div style="text-align: justify;"><span style="font-family: courier;"><b>host: your-ip-address</b></span></div><div style="text-align: justify;"><span style="font-family: courier;"><b>port: 4000</b></span> </div><div style="text-align: justify;"><br /></div><div style="text-align: justify;">Find the following portion and add the IP address instead of localhost,</div><div style="text-align: justify;"> </div><div style="text-align: justify;"><b><span style="font-family: courier;"># The REST API server settings<br /># NOTE: these settings define which (publicly available) REST API to use. They are usually<br /># 'synced' with the 'dspace.server.url' setting in your backend's local.cfg.<br />rest:<br /> ssl: false<br /> host: <span style="color: red;">localhost</span><br /> port: 8080<br /> # NOTE: Space is capitalized because 'namespace' is a reserved string in TypeScript<br /> nameSpace: /server</span></b><br /></div><div style="text-align: justify;"><br /></div><div style="text-align: justify;">Save and close the file.<br /></div><div style="text-align: justify;"><br /></div><div style="text-align: justify;">Open the following file (<i>make sure the location of the file in your server</i>) and add the IP address there,</div><div style="text-align: justify;"><br /></div><div style="text-align: justify;"><b><span style="font-family: courier;">sudo mousepad /home/dspace/dspace-angular-dspace-7.6.1/dspace-ui.json</span></b></div><div style="text-align: justify;"><br /></div><div style="text-align: justify;">Find the line,</div><div style="text-align: justify;"><br /></div><div style="text-align: justify;"><span style="font-family: courier;"><b>"DSPACE_REST_HOST": "<span style="color: red;">localhost</span>",</b></span></div><div style="text-align: justify;"><br /></div><div style="text-align: justify;">Change localhost to the IP address. Save and close the file.</div><div style="text-align: justify;"> </div><div style="text-align: justify;">Restart PC.
Try to load DSpace 7 from other PC in the network. Example, <b><span style="font-family: courier;">http://192.168.1.20:4000</span></b> <br /></div><div style="text-align: justify;"><h3><br /></h3><h3>References</h3></div><div style="text-align: justify;"><a href="https://www.digitalocean.com/community/tutorials/how-to-set-up-a-firewall-with-ufw-on-debian-11-243261243130246d443771547031794d72784e6b36656d4a326e49732e" target="_blank">How To Set Up a Firewall with UFW on Debian 11</a> <br /></div>Vimalhttp://www.blogger.com/profile/16315338813797680405noreply@blogger.com0tag:blogger.com,1999:blog-1496466014629573090.post-50293702685049592072022-12-12T21:55:00.020+05:302024-03-03T22:51:28.091+05:30Upgrading DSpace 6 to 7<h3 style="text-align: left;"><b>Take a backup of the DSpace 6 database and folders</b></h3><div style="text-align: justify;">Open a Terminal and apply the following commands,</div><br /><b><span style="font-family: "courier new" , "courier" , monospace;">sudo su - postgres<br />pg_dump dspace > dspace.backup</span></b><br /><br />The above command takes a backup of the DSpace database and stores in <b><span style="font-family: courier;">/var/lib/postgresql.</span></b> Copy the <b>database.backup</b> file to a safe place.<br /><br /><a name='more'></a><h3 style="text-align: left;"><b>Copy <span style="font-family: courier;">assetstore</span> and <span style="font-family: courier;">log</span> folders</b></h3>Here we are going to back up essential things. All uploaded files are stored in<b> assetstore</b> folder.<br /><br /><span style="font-family: "courier new" , "courier" , monospace;"><b>sudo zip -r assetstore.zip /dspace/assetstore</b></span><br /><span style="font-family: "courier new" , "courier" , monospace;"><b>sudo zip -r log.zip /dspace/log</b></span><br /><br /><h3 style="text-align: left;"><b>Restoration of backup to the latest version of Dspace</b></h3>Install Dspace 7 version. Copy the <b>assetstore</b>, <b>log</b> folders, and database backup to the home folder of the system. Extract the <b>assetstore</b> and <b>log</b> folders. Follow the below steps to restore the old Dspace backup.<br /><h3><b>Stop Tomcat server</b></h3><span style="font-family: courier new, courier, monospace;"><b>sudo systemctl stop tomcat9.service</b></span><br /><h3><b>Remove asset store and log folders</b></h3><span style="font-family: "courier new" , "courier" , monospace;"><b>sudo rm <span style="font-family: "courier new" , "courier" , monospace;">-</span>rf /dspace/assetstore</b></span><br /><span style="font-family: "courier new" , "courier" , monospace;"><b>sudo rm <span style="font-family: "courier new" , "courier" , monospace;">-</span>rf /dspace/log/</b></span><br /><br /><h3><b>Move your old <span style="font-family: courier;">assetstore</span> and log folders to /dspace folder.</b></h3><b><span style="font-family: "courier new" , "courier" , monospace;">sudo mv assetstore /dspace</span></b><br /><b><span style="font-family: "courier new" , "courier" , monospace;">sudo mv log /dspace</span></b><br /><br /><h3><b>Restoration of database</b></h3>Restart PostgreSQL<br /><br /><b><span style="font-family: "courier new" , "courier" , monospace;">sudo systemctl stop postgresql<br />sudo systemctl start postgresql</span></b><br /><br />Drop the database and create a new one. Apply the following commands one by one,<br /><br /><span style="font-family: "courier new" , "courier" , monospace;"><b>sudo -u postgres psql</b></span><br /><span style="font-family: "courier new" , "courier" , monospace;"><b>DROP DATABASE dspace;</b></span><br /><span style="font-family: "courier new" , "courier" , monospace;"><b>CREATE DATABASE dspace;</b></span><br /><span style="font-family: courier;"><b>quit</b></span><br /><br />Make sure that the dspace.backup file in the folder, <i><b>/var/lib/postgresql</b></i>. Here is the command to move the database backup to <i style="font-weight: bold;">/var/lib/postgresql; </i>change the backup file name.<div><br /></div><div><b>sudo mv dspace-29-02-2024.backup /var/lib/postgresql/</b></div><div><br /></div><div>Apply the following command to restore the database backup.<div><br /><div style="text-align: left;"><div><b><span style="font-family: courier;">su - postgres</span></b></div><div><b><span style="font-family: courier;">psql -f dspace.backup dspace </span></b></div><div><b><span style="font-family: courier;">\quit</span></b></div><div><br /></div></div><div style="text-align: left;">Apply the following commands one by one to upgrade the database.</div><span style="font-family: "courier new" , "courier" , monospace;"><b>sudo /dspace/bin/dspace database info </b></span><div><span style="font-family: courier new, courier, monospace;"><b>sudo /dspace/bin/dspace update-sequences</b><br /></span><span style="font-family: "courier new" , "courier" , monospace;"><b>sudo /dspace/bin/dspace database migrate ignored</b></span></div><div><span style="font-family: courier new, courier, monospace;"><b><br /></b></span></div><div><div><b>Restart Solr</b></div><div>Login to the dspace user account to start Solr.</div><div><br /></div><div><span style="font-family: courier;"><b>su dspace</b></span></div><div><br /></div><div>Start Solr by applying the command,</div><div><br /></div><div><span style="font-family: courier;"><b>/opt/solr/bin/solr restart</b></span></div><div><br /></div><div>Wait until Solr Starts.</div><div><br /></div><div>Apply the following command to exit from the dspace user account.</div><div><span style="font-family: courier;"><b>exit</b></span></div></div><div><span style="font-family: courier;"><b><br /></b></span></div><div><span style="font-family: georgia;">Reindex items in the DSpace site.</span></div><div><span style="font-family: "courier new" , "courier" , monospace;"><b>sudo /dspace/bin/dspace index-discovery -b</b></span><br /><span style="font-family: "courier new" , "courier" , monospace;"><b>sudo /dspace/bin/dspace filter-media</b></span><br /><span style="font-family: "courier new" , "courier" , monospace;"><b>sudo /dspace/bin/dspace index-discovery</b></span><br /><span style="font-family: "courier new" , "courier" , monospace;"><b>sudo /dspace/bin/dspace index-discovery -o</b></span><br /><div style="text-align: left;"><br /></div><h3>Restart Tomcat</h3><span style="font-family: courier new, courier, monospace;"><b>sudo systemctl restart tomcat9.service</b></span></div><div><span style="font-family: courier new, courier, monospace;"><b><br /></b></span><h3><span style="font-family: "georgia" , "times new roman" , serif;">Open DSpace in a browser</span></h3><a href="http://localhost:4000" target="_blank">http://localhost:4000</a><br /><h3 style="text-align: left;"><b style="font-family: "courier new", courier, monospace;"><span style="font-family: "georgia" , "times new roman" , serif;"><br /></span></b></h3><h3 style="text-align: left;"><b style="font-family: "courier new", courier, monospace;"><span style="font-family: "georgia" , "times new roman" , serif;">Reference</span></b></h3><div><span style="font-family: georgia, times new roman, serif;"><a href="https://wiki.lyrasis.org/display/DSDOC7x/Upgrading+DSpace" target="_blank">https://wiki.lyrasis.org/display/DSDOC7x/Upgrading+DSpace</a></span></div></div></div></div>Vimalhttp://www.blogger.com/profile/16315338813797680405noreply@blogger.com0tag:blogger.com,1999:blog-1496466014629573090.post-92170163389623066212022-12-03T11:00:00.111+05:302024-03-19T08:32:01.709+05:30Install DSpace 7 on Debian 11 / Ubuntu 22.04 LTS<p style="text-align: justify;"><span style="font-family: inherit; text-align: justify;">We use Debian 11 (Bull Eye) Xubuntu 22.04 LTS to install DSpace 7. ISO file of Debian 11 can be downloaded from the <a href="https://cdimage.debian.org/images/unofficial/non-free/images-including-firmware/11.5.0-live+nonfree/amd64/iso-hybrid/debian-live-11.5.0-amd64-xfce+nonfree.iso" target="_blank">link</a> (I prefer Debian with MATE desktop)</span><span style="font-family: inherit; text-align: justify;">. Xubuntu 22.04 can be downloaded from <a href="https://cdimage.ubuntu.com/xubuntu/releases/22.04/release/" target="_blank">here</a>. Users who feel challenged to use barebone Debian can also try Dbebian-based Linux operating systems like <a href="https://peppermintos.com/guide/downloading/" target="_blank">Pepper Mint OS</a>. </span><span style="font-family: inherit; text-align: justify;">Either burn the ISO file to a pen drive or DVD. Install Debian 11 on the machine. Create a user account during the installation (e.g. mgu). Create the user with the name dspace after installing the Linux-based operating system. If you have already run on Ubuntu/Debian (e.g. for Koha), create a dspace user.</span></p><a name="more"></a><h2 style="text-align: justify;">Prepare the system for Dspace installation.</h2><p style="text-align: justify;">DSpace consists of both a Java-based backend and an Angular-based front end. Both the backend and front end need to be installed separately. Install the prerequisites for the Dspace software. Dspace builds on the Java platform and requires software packages like Tomcat, Solr, Maven, Ant, etc.</p><a name="more"></a><h3 style="text-align: justify;">Update the operating system.</h3><p style="text-align: justify;">Apply the following commands one by one to receive new updates. It makes the system new.</p><p style="text-align: justify;"><span style="font-family: courier;"><b>sudo apt update && sudo apt upgrade -y</b></span></p><p style="text-align: justify;">Create a DSpace user from the terminal after the installation. Here are the commands to create the DSpace user;</p><p style="text-align: justify;"><span style="font-family: courier;"><b>sudo useradd -m dspace<br />sudo passwd dspace</b></span></p><p style="text-align: justify;"><span style="font-family: courier;"><b></b></span></p><p style="text-align: justify;">[<i>enter a password for the new user dspace</i>]</p><div style="text-align: justify;">Add dspace user to sudoers group</div><div style="text-align: justify;"><br /><b><span style="font-family: courier;">sudo usermod -aG sudo dspace </span></b></div><div style="text-align: justify;"><br /></div><div style="text-align: justify;">Create the directory for the DSpace installation.</div><div style="text-align: justify;"><br /></div><div style="text-align: justify;"><span style="font-family: courier;"><b>sudo mkdir /dspace<br /><br /></b></span></div><div style="text-align: justify;"><div><span style="font-family: georgia;">Change the dspace folder permission to the dspace user.</span></div><div style="font-family: courier; font-weight: bold;"><br /></div><div style="font-family: courier; font-weight: bold;"><span style="font-family: courier;"><b>sudo chown dspace /dspace</b></span></div></div><p style="text-align: justify;">Build the Installation Package</p><h3 style="text-align: justify;"><p style="font-size: medium; font-weight: 400;">Install packages to support the Dspace installation.</p><p style="font-size: medium; font-weight: 400;"><span style="font-family: courier;"><b>sudo apt install </b></span><b style="font-family: courier;">wget </b><b style="font-family: courier;">curl git </b><b style="font-family: courier;">build-essential mousepad zip unzip -y</b></p></h3><h3 style="text-align: justify;">Install Open JDK</h3><p style="text-align: justify;">The JDK is a development environment for building applications, applets, and components using the Java programming language. JDK prepares an environment to run Java-based applications on the machine.</p><p style="text-align: justify;"><span style="font-family: courier;"><b>sudo apt install openjdk-11-jdk -y</b></span></p><p style="text-align: justify;">Set the JAVA_HOME Environment Variable</p><p style="text-align: justify;">DSpace requires the Java installation location. Open the following file to add the java environment variable,</p><p style="text-align: justify;"><span style="font-family: courier;"><b>sudo mousepad /etc/environment</b></span></p><p style="text-align: justify;">Add the following two lines to the file,</p><p style="text-align: justify;"><span style="font-family: courier;"><b>JAVA_HOME="/usr/lib/jvm/java-11-openjdk-amd64"<br />JAVA_OPTS="-Xmx512M -Xms64M -Dfile.encoding=UTF-8"</b></span></p><p style="text-align: justify;"><span style="font-family: courier;"><b></b></span></p><p style="text-align: justify;">Save and close the file.</p><p style="text-align: justify;">Apply the following commands one by one to check Java Home is successfully saved,</p><p style="text-align: justify;"><span style="font-family: courier;"><b>source /etc/environment<br />echo $JAVA_HOME<br />echo $JAVA_OPTS</b></span></p><h3 style="text-align: justify;"></h3><h3 style="font-size: medium;">Install Maven and Ant</h3><p style="text-align: justify;">Apache Maven requires for the build process during the Dspace installation. Maven helps to download the dependencies. Maven is used to build the installer. Ant used to install/deploy DSpace to the installation directory</p><p style="text-align: justify;"><span style="font-family: courier;"><b>sudo apt install maven ant -y</b></span></p><h3 style="text-align: justify;">Install PostgreSQL</h3><p style="text-align: justify;">PostgreSQL, also known as Postgres, is a free and open-source relational database management system. Dspace makes use of PostgreSQL as a Relational Database System. Apply the following command to install PostreSQL and related packages;</p><p style="text-align: justify;"><span style="font-family: courier;"><b>sudo apt-get install postgresql postgresql-client postgresql-contrib libpostgresql-jdbc-java -y</b></span></p><p style="text-align: justify;">Apply the following command to check the PostgreSQL version number. </p><p style="text-align: justify;"><span style="font-family: courier;"><b>psql -V psql</b></span></p><p style="text-align: justify;">The version number of PostgreSQL varies in Ubuntu 22.04 and Debian 11. PostgreSQL 14 is available with Ubuntu 22.04, and PostgreSQL 13 is available with Debian 11. Check whether the installation of PostgreSQL is successful or not,</p><div style="text-align: justify;"><span style="font-family: georgia;">For Ubuntu 22.04 LTS users</span></div><p style="text-align: justify;"><span style="font-family: georgia;"><b style="font-family: courier;">sudo pg_ctlcluster 14 main start<br />sudo systemctl status postgresql</b></span></p><p style="text-align: justify;"><span style="font-family: georgia;">For Debian 11 users</span></p><p style="text-align: justify;"><span style="font-family: courier;"><b>sudo pg_ctlcluster 13 main start<br />sudo systemctl status postgresql</b></span></p><p style="text-align: justify;">Apply the key, <span style="font-family: courier;"><b>CTRL </b></span>+ <span style="font-family: courier;"><b>C,</b></span> to exit from the screen.</p><p style="text-align: justify;">Create a password for PostgreSQL.</p><p style="text-align: justify;"><span style="font-family: courier;"><b>sudo passwd postgres</b></span></p><p style="text-align: justify;">Try to login into PostgreSQL using the password created.</p><p style="text-align: justify;"><span style="font-family: courier;"><b>su postgres</b></span></p><p style="text-align: justify;">The command prompt looks like this postgres@user: if you could log in successfully. apply the following command to exit from there,</p><p style="text-align: justify;"><span style="font-family: courier;"><b>exit</b></span></p><p style="text-align: justify;">Open the following file,</p><div style="text-align: justify;"><span style="font-family: georgia;">For Ubuntu 22.04 LTS users</span></div><p style="text-align: justify;"><b style="font-family: courier;">sudo mousepad /etc/postgresql/14/main/postgresql.conf</b></p><div style="text-align: justify;"><span style="font-family: georgia;">For Debian 11 users</span></div><p style="text-align: justify;"><span style="font-family: courier;"><b>sudo mousepad /etc/postgresql/13/main/postgresql.conf</b></span></p><p style="text-align: justify;">Uncomment the line (remove #) <span style="font-family: courier;"><b>listen_addresses = 'localhost'</b></span> under the connection settings option.</p><p style="text-align: justify;">Save and exit</p><p style="text-align: justify;">We need to tighten the security of PostgreSQL. Open the following file,</p><p style="text-align: justify;"><span style="font-family: courier;"><span style="font-family: georgia;">For Ubuntu 22.04 LTS users</span></span></p><p style="text-align: justify;"><span style="font-family: courier;"><b>sudo mousepad /etc/postgresql/14/main/pg_hba.conf</b></span></p><p style="text-align: justify;"><span style="font-family: courier;"><span style="font-family: georgia;">For Debian 11 users</span></span></p><p style="text-align: justify;"><span style="font-family: courier;"><b>sudo mousepad /etc/postgresql/13/main/pg_hba.conf</b></span></p><p style="text-align: justify;">Find the line, <b><span style="font-family: courier;"># Database administrative login by Unix domain socket.</span></b></p><p style="text-align: justify;"><span style="font-family: courier;"><span style="font-family: georgia;">Add the below lines above the line,</span><b><br /></b></span></p><p style="text-align: justify;"><span style="font-family: courier;"><b>#DSpace configuration<br />host dspace dspace 127.0.0.1 255.255.255.255 md5</b></span></p><p style="text-align: justify;">Restart Postresql</p><p style="text-align: justify;"><span style="font-family: courier;"><b>sudo systemctl restart postgresql</b></span></p><h3 style="text-align: justify;">Solr Installation</h3><p style="text-align: justify;">Solr is an open-source search platform, written in Java. Its major features include full-text search, hit highlighting, faceted search, real-time indexing, dynamic clustering, database integration, NoSQL features, and rich document handling.</p><p style="text-align: justify;">Download the Solr software package from the website and save it to the opt folder in the operating system. </p><p style="text-align: justify;">Enter into the home folder. Apply the following command,<br /></p><p style="text-align: justify;"><span style="font-family: courier;"><b>cd </b></span></p><p style="text-align: justify;">Download the Solr (version 8) package using the following command line,</p><p><span style="font-family: courier;"><b>sudo wget </b></span><a href="https://dlcdn.apache.org/lucene/solr/8.11.3/solr-8.11.3.zip" rel="nofollow" style="background-color: white; color: #1155cc; font-family: Roboto, Arial, sans-serif; font-size: 16px; font-variant-ligatures: none; letter-spacing: 0.1px; pointer-events: none; text-decoration-line: none; white-space-collapse: preserve;" target="_blank">https://dlcdn.apache.org/lucene/solr/8.11.3/solr-8.11.3.zip</a></p><p style="text-align: justify;">Unzip the package,</p><p style="text-align: justify;"><span style="font-family: courier;"><b>sudo unzip solr-8.11.3.zip</b></span></p><p><span style="font-family: georgia;">Apply the following command to install Solr,</span></p><p><span style="font-family: georgia;"><b><span style="font-family: courier;">sudo bash solr-8.11.3/bin/install_solr_service.sh solr-8.11.3.zip</span></b> </span><br /></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh58d09Tgxicf4AananX-TS-AIft8ZjAs-Kfqav5pVI72vlSvZEvn_WvZ6_6Av6cNtrvp45lIsmG_qbfSvJr0BuOzNaFvOnhiCwHF76VW7vJtqor1kp2FV4A95dgod2TZQ1JW7DKs3mmSLy1IXLOtJdQwDeAQvl-P80oqrE0jrVdn0QTcdIx__tjisc/s568/solr-installation.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="230" data-original-width="568" height="163" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh58d09Tgxicf4AananX-TS-AIft8ZjAs-Kfqav5pVI72vlSvZEvn_WvZ6_6Av6cNtrvp45lIsmG_qbfSvJr0BuOzNaFvOnhiCwHF76VW7vJtqor1kp2FV4A95dgod2TZQ1JW7DKs3mmSLy1IXLOtJdQwDeAQvl-P80oqrE0jrVdn0QTcdIx__tjisc/w400-h163/solr-installation.png" width="400" /></a></div><p style="text-align: justify;">After successful installation, exit from the process. Apply the key combination,</p><p style="text-align: justify;"><b>Ctl</b> + <b>C</b></p><p style="text-align: justify;">Apply the following commands one by one to start automatically upon system boot.<br /><br /><b><span style="font-family: courier;">sudo systemctl enable solr<br />sudo systemctl start solr<br />sudo systemctl status solr</span></b> <br /></p><p style="text-align: justify;">Apply <b>CTRL</b> + <b>C</b> key combination to exit from Solr status in Terminal.</p><p style="text-align: justify;">Add the URL on a browser to open the Solr interface,</p><p style="text-align: justify;"><a href="http://localhost:8983/solr" target="_blank">http://localhost:8983/solr</a></p><p style="text-align: justify;"><b>Download the DSpace package</b></p><div style="text-align: justify;">Create a temporary folder with the name <b>build</b> in the root folder (/)to store the DSpace package,</div><div style="text-align: justify;"><b><span style="font-family: courier;"><br /></span></b></div><div style="text-align: justify;"><b><span style="font-family: courier;">sudo mkdir /build</span></b></div><div style="text-align: justify;"><br /></div><div style="text-align: justify;">Download the DSpace package. Enter into the /build directory.</div><p><span style="font-family: courier;"><b>cd /build</b></span></p><p>Download the dspace package into /build folder.</p><p><b>sudo wget https://github.com/DSpace/DSpace/archive/refs/tags/dspace-7.6.1.zip</b></p><p style="text-align: justify;">Extract the package,</p><p style="text-align: justify;"><span style="font-family: courier;"><b>sudo unzip dspace-7.6.1.zip</b></span></p><div style="text-align: justify;">Change the permission of the /build folder.</div><div style="text-align: justify;"><br /></div><div style="text-align: justify;"><b><span style="font-family: courier;">sudo chmod 777 -R /build</span></b></div><div style="text-align: justify;"><b><span style="font-family: courier;"><br /></span></b></div><h3 style="text-align: justify;">Install Tomcat</h3><p style="text-align: justify;">Tomcat provides a "pure Java" HTTP web server environment where Java code can run. </p><p style="text-align: justify;"></p><div><span style="font-family: courier;"><b>sudo apt install tomcat9 -y</b></span></div><div><span style="font-family: georgia;"><br /></span></div><div><span style="font-family: georgia;">Specify the DSpace installation path to Tomcat. Open the following file,</span></div><p></p><p style="text-align: justify;"><span style="font-family: courier;"><b>sudo mousepad /lib/systemd/system/tomcat9.service</b></span></p><p style="text-align: justify;">Find the category, <b>#Security</b>,</p><p style="text-align: justify;"><span style="font-family: courier;">Add the following line at the last portion,<b> <br /></b></span></p><p style="text-align: justify;"><span style="font-family: courier;"><b>ReadWritePaths=/dspace</b></span></p><p style="text-align: justify;">Save and close the file.</p><p style="text-align: justify;">Alter Tomcat's default configuration to support searching and browsing of multi-byte UTF-8.</p><p style="text-align: justify;">Open the following file,</p><p style="text-align: justify;"><span style="font-family: courier;"><b>sudo mousepad /etc/tomcat9/server.xml</b></span></p><p style="text-align: justify;">Find the below-mentioned lines in the file, and comment out. Add <b><span style="font-family: courier;"><!-- in the first line and --></span></b> in the last line,</p><div style="text-align: justify;"><span style="font-family: courier;"><b><Connector port="8080" protocol="HTTP/1.1"<br /></b></span><span style="font-family: courier;"><b> <span style="white-space: pre;"> </span>connectionTimeout="20000"<br /></b></span><span style="font-family: courier;"><b> <span style="white-space: pre;"> </span>redirectPort="8443" /></b></span></div><p style="text-align: justify;">It will look like this after commented out,</p><div style="text-align: justify;"><span style="font-family: courier;"><b><!-- <Connector port="8080" protocol="HTTP/1.1"<br /></b></span><span style="font-family: courier;"><b> <span style="white-space: pre;"> </span>connectionTimeout="20000"<br /></b></span><span style="font-family: courier;"><b> <span style="white-space: pre;"> </span>redirectPort="8443" /> --></b></span></div><p style="text-align: justify;">Add the following lines below the commented-out lines,</p><div style="text-align: justify;"><span style="font-family: courier;"><b><Connector port="8080" protocol="HTTP/1.1"<br /></b></span><span style="font-family: courier;"><b><span style="white-space: pre;"> </span>minSpareThreads="25"<br /></b></span><span style="font-family: courier;"><b><span style="white-space: pre;"> </span>enableLookups="false"<br /></b></span><span style="font-family: courier;"><b><span style="white-space: pre;"> </span>redirectPort="8443"<br /></b></span><span style="font-family: courier;"><b><span style="white-space: pre;"> </span>connectionTimeout="20000"<br /></b></span><span style="font-family: courier;"><b><span style="white-space: pre;"> </span>disableUploadTimeout="true"<br /></b></span><span style="font-family: courier;"><b><span style="white-space: pre;"> </span>URIEncoding="UTF-8"/></b></span></div><div style="text-align: justify;">Save and close the file.<br />Restart Tomcat,</div><p style="text-align: justify;"><span style="font-family: courier;"><b>sudo systemctl restart tomcat9.service</b></span></p><p style="text-align: justify;">If it shows the following message,</p><p style="text-align: justify;"><span style="color: red; font-family: courier;"><i>Warning: The unit file, source configuration file or drop-ins of tomcat9.service changed on disk. Run 'systemctl daemon-reload to reload units.</i></span></p><p style="text-align: justify;">Apply the following command,</p><p style="text-align: justify;"><span style="font-family: courier;"><b>sudo systemctl daemon-reload</b></span></p><p style="text-align: justify;">Again try to restart the Tomcat,</p><div style="text-align: justify;"><span style="font-family: courier;"><b>sudo systemctl restart tomcat9.service</b></span></div><div style="text-align: justify;"><span style="font-family: courier;"><b><br /></b></span></div><h3 style="text-align: justify;">Database setup</h3><div style="text-align: justify;">Create a DSpace user. Apply the following commands one by one,<br />Login into the Postgres terminal,</div><p style="text-align: justify;"><span style="font-family: courier;"><b>sudo su postgres</b></span></p><p style="text-align: justify;">Enter the following directory. If there are any changes in the version number, add them.</p><p style="text-align: justify;">Ubuntu users apply the following command,</p><p style="text-align: justify;"><b style="font-family: courier;">cd /etc/postgresql/14/main</b></p><p style="text-align: justify;">Debian users apply the following command,</p><p style="text-align: justify;"><span style="font-family: courier;"><b>cd /etc/postgresql/13/main</b></span></p><p style="text-align: justify;">Create the user named dspace. Enter the password when it asks. This is the connection password for the DSpace database; note it down. </p><p style="text-align: justify;"><span style="font-family: courier;"><b>createuser --username=postgres --no-superuser --pwprompt dspace</b></span></p><p style="text-align: justify;">This command will create the database with the name dspace. The database owner is <b>dspace</b>, the user created in the previous command.</p><p style="text-align: justify;"><span style="font-family: courier;"><b>createdb --username=postgres --owner=dspace --encoding=UNICODE dspace</b></span></p><p style="text-align: justify;">Enable pgcrypto extension. </p><p style="text-align: justify;">The pgcrypto module provides cryptographic functions for PostgreSQL. It secures data from the security breach.</p><p style="text-align: justify;"><span style="font-family: courier;"><b>psql --username=postgres dspace -c "CREATE EXTENSION pgcrypto;"</b></span></p><p style="text-align: justify;">Exit from the Postgres terminal,</p><p style="text-align: justify;"><span style="font-family: courier;"><b>exit</b></span></p><p style="text-align: justify;">Create a new DSpace configuration fil. </p><div style="text-align: justify;"><span style="font-family: courier;"><span style="font-family: georgia;">Enter into the folder,</span><b> <br /></b></span></div><div style="text-align: justify;"><span style="font-family: courier;"><b>cd /build/DSpace-dspace-7.6.1/dspace/config</b></span></div><div style="text-align: justify;"><span style="font-family: courier;"><b> </b></span></div><div style="text-align: justify;"><span style="font-family: courier;"><span style="font-family: georgia;">Make a copy of the local.cfg file,</span><b> </b><br /></span><span style="font-family: courier; font-weight: bold;">sudo cp local.cfg.EXAMPLE local.cfg</span></div><div style="text-align: justify;"><span style="font-family: courier; font-weight: bold;"> </span></div><div style="text-align: justify;"><span style="font-family: georgia;">Open the local.cfg file,</span><span style="font-family: courier; font-weight: bold;"><br /></span><span style="font-family: courier; font-weight: bold;">sudo mousepad local.cfg</span></div><p style="text-align: justify;">See the essential lines in the file and their purpose. Give IP address or domain name instead of <b>localhost</b>.</p><div style="text-align: justify;"><span style="font-family: courier;">DSpace server URL<br /><b>dspace.server.url = http://localhost:8080/server</b></span></div><div style="text-align: justify;"><br /></div><div style="text-align: justify;"><span style="font-family: courier;">DSpace frontend URL<br /><b>dspace.ui.url = http://localhost:4000</b></span></div><div style="text-align: justify;"><br /></div><div style="text-align: justify;"><span style="font-family: courier;"><b># Name of the site<br />dspace.name = DSpace at My University</b></span></div><p style="text-align: justify;">If any changes in the DSpace database username/password, mention them here.</p><div style="text-align: justify;"><span style="font-family: courier;"><b># Database username and password<br /></b></span><span style="font-family: courier;"><b>db.username = dspace<br /></b></span><span style="font-family: courier;"><b>db.password = dspace</b></span></div><p style="text-align: justify;">Uncomment the following line in the local.cfg file,</p><div style="text-align: justify;"><span style="font-family: courier;"><b>solr.server = http://localhost:8983/solr</b></span></div><p style="text-align: justify;">Save and close the file.</p><h2 style="text-align: justify;">Installation of DSpace backend</h2><div style="text-align: justify;"><span style="font-family: courier;"><span style="font-family: georgia;">Login as the Root user,</span></span><b style="font-family: courier;"> <br /></b></div><div style="text-align: justify;"><b style="font-family: courier;"><br /></b></div><div style="text-align: justify;"><b style="font-family: courier;">sudo su</b></div><div style="text-align: justify;"><b style="font-family: courier;"> </b></div><div style="text-align: justify;"><span style="font-family: courier;"><span style="font-family: georgia;">Enter into the DSpace package downloaded in /build folder.</span></span><b style="font-family: courier;"> <br /></b></div><div style="text-align: justify;"><span style="font-family: courier;"><span style="font-family: georgia;"><br /></span></span></div><div style="text-align: justify;"><span style="font-family: courier;"><span><b>cd /build/DSpace-dspace-7.6.1</b></span></span></div><div style="text-align: justify;"><span style="font-family: courier;"><b> </b></span></div><div style="text-align: justify;"><span><span style="font-family: georgia;">Download the dependencies and the required packages to build DSpace,</span><b style="font-family: courier;"> </b><b style="font-family: courier;"><br />mvn package</b></span></div><p style="text-align: justify;">The package-building process depends on the Internet speed and server responses and it may take 10 to 20 minutes to finish. </p><h3 style="text-align: justify;">Install DSpace Backend</h3><div>Enter into the folder where DSpace installer located and install,<br /></div><div style="text-align: justify;"><span style="font-family: courier;"><b>cd dspace/target/dspace-installer</b></span></div><div style="text-align: justify;"><span style="font-family: courier;"><b> </b></span></div><div style="text-align: justify;"><span style="font-family: courier;"><span style="font-family: georgia;">Install the DSpace package,</span><b><br /></b></span><span style="font-family: courier;"><b>ant fresh_install</b></span></div><p style="text-align: justify;">After successful install, exit from sudo user, apply the following command,</p><div style="text-align: justify;"><span style="font-family: courier;"><b>exit</b></span></div><p style="text-align: justify;">Copy the DSpace web apps folder to the Tomcat server,</p><div style="text-align: justify;"><span style="font-family: courier;"><span><b>sudo cp -R /dspace/webapps/* /var/lib/tomcat9/webapps</b></span></span></div><div style="text-align: justify;"><span style="font-family: courier;"><span><b> </b></span></span></div><div style="text-align: justify;">Copy DSpace Solr folders into the default home of Solr (<b><span style="font-family: courier;">/var/solr/data</span></b>), <br /></div><div style="text-align: justify;"><span style="font-family: courier;"><b>sudo cp -R /dspace/solr/* /var/solr/data</b></span></div><div style="text-align: justify;"><br /><span style="font-family: georgia;"><span>Change the permission of the folder.</span></span><span style="font-family: courier;"><b> </b></span></div><div style="text-align: justify;"><span style="font-family: courier;"><b>sudo chown -R solr:solr /var/solr/data</b></span></div><p style="text-align: justify;">Restart Solr</p><p style="text-align: justify;"><b><span style="font-family: courier;">sudo systemctl restart solr</span></b> <br /></p><p style="text-align: justify;">Open the Solr on the browser using the URL, <a href="http://localhost:8983" target="_blank">http://localhost:8983</a> and check the <span style="font-family: courier;"><b>Core Selector</b></span> is available on the Left side of the screen.</p><div style="text-align: justify;"><b>Initialize the Database.</b> </div><div style="text-align: justify;">Enter into the below mentioned folder and apply the migration command.</div><div style="text-align: justify;"><br /></div><div style="text-align: justify;"><span style="font-family: courier;"><b>cd /dspace/bin/<br /></b></span><span style="font-family: courier;"><b>sudo ./dspace database migrate</b></span><br /></div><p style="text-align: justify;">Create a DSpace Administrator Account</p><p style="text-align: justify;"><span style="font-family: courier;"><b>sudo /dspace/bin/dspace create-administrator</b></span></p><p style="text-align: justify;">This process will ask questions,</p><div style="text-align: justify;"><i><span style="font-family: courier;">Creating an initial administrator account<br /><b>E-mail address</b>: e.g. dspace@localhost<br /><b>First name</b>: e.g. DSpace<br /><b>Last name</b>: e.g. MGU<br /><b>Is the above data correct?</b> (y or n): y<br />Password will not display on screen.<br /><b>Password</b>: Enter the password to login DSpace.<br /><b>Again to confirm</b>: Confirm the password again.<br />Administrator account created</span></i></div><p style="text-align: justify;">Change permission of DSpace to Tomcat user</p><div style="text-align: justify;"><b><span style="font-family: courier;">sudo chown -R tomcat:tomcat /dspace/<br /></span><span style="font-family: courier;">sudo systemctl restart tomcat9.service</span></b></div><div style="text-align: justify;"><br /></div><div style="text-align: justify;">Now Open a Browser and test whether the below pages are displaying correctly or not.<br />Open the REST API Interface at,</div><div style="text-align: justify;"><b><br /></b></div><div style="text-align: justify;"><span style="font-family: courier;"><a href="http://localhost:8080/server">http://localhost:8080/server</a></span></div><p style="text-align: justify;">Try to open OAI-PMH Interface,</p><p style="text-align: justify;"><a href="http://localhost:8080/server/oai/request?verb=Identify">http://localhost:8080/server/oai/request?verb=Identify</a> </p><h3 style="text-align: justify;">Install the Front End</h3><p style="text-align: justify;">To install the front required to install Node.js, Yarn, and DSpace-Angular packages.</p><p style="text-align: justify;">Install Node.js</p><p style="text-align: justify;">Node.js is an open-source, cross-platform, back-end JavaScript runtime environment.</p><div style="text-align: justify;"><b style="font-family: courier;">sudo apt install nodejs npm -y</b></div><p style="text-align: justify;">Install NVM</p><p style="text-align: justify;">Node Version Manager (NVM) is a tool used to manage multiple active Node. js versions. Apply the commands one by one.</p><p><span style="font-family: courier;"><b>sudo su</b></span></p><p><span style="font-family: courier;"><b>curl -o- https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash</b></span></p><div style="text-align: justify;"><span style="font-family: courier;"><b>export NVM_DIR="$HOME/.nvm"<br />[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"<br />[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"</b></span></div><p style="text-align: justify;"><span style="color: red;">Close the current terminal and open a new one and the following commands to install the Node.js.</span></p><div style="text-align: justify;"><span style="font-family: courier;"><b>sudo su<br /></b><b><br /></b></span></div><div style="text-align: justify;"><span style="font-family: courier;"><b>nvm install 16.18.1</b></span></div><p style="text-align: justify;">Install Yarn</p><p style="text-align: justify;">Yarn is a software packaging system.</p><div style="text-align: justify;"><span style="font-family: courier;"><b><span>npm install --global yarn<br /></span><span>npm install --global pm2</span></b></span></div><div style="text-align: justify;"> </div><h3 style="text-align: justify;">Front end installation</h3><p style="text-align: justify;">DSpace user interfaces build on Angular. Angular is a TypeScript-based free and open-source web application framework. Follow the steps to install Dspace-Angular.</p><p style="text-align: justify;">We are going to place the dspace-angular package into <b>dspace</b> home folder. Enter it into the folder;</p><p style="text-align: justify;"><span style="font-family: courier;"><b>cd /home/dspace</b></span></p><p style="text-align: justify;">Download the dspace-angular package,</p><p><span style="font-family: courier;"><b>sudo wget </b></span><span style="font-family: courier;"><b>https://github.com/DSpace/dspace-angular/archive/refs/tags/dspace-7.6.1.zip</b></span></p><p style="text-align: justify;">Extract the package,</p><div style="text-align: justify;"><span style="font-family: courier;"><b>unzip dspace-7.6.1.zip</b></span></div><div style="text-align: justify;"><span style="font-family: courier;"><b> </b></span></div><div style="text-align: justify;"><span style="font-family: courier;"><b></b></span></div><div style="text-align: justify;"><span style="font-family: courier;"><b></b></span></div><div style="text-align: justify;"><span style="font-family: courier;"><b></b></span></div><div style="text-align: justify;"><span style="font-family: courier;">Remove the dspace zip package,</span></div><div style="text-align: justify;"><span style="font-family: courier;"><b><br /></b></span><span style="font-family: courier;"><b>rm dspace-7.6.1.zip</b></span></div><p style="text-align: justify;">Enter into the dspace-angular folder, <span style="white-space: pre;"> </span></p><p style="text-align: justify;"><span style="font-family: courier;"><b>cd /home/dspace/dspace-angular-dspace-7.6.1</b></span></p><p style="text-align: justify;">Install all dependencies,</p><p style="text-align: justify;"><span style="font-family: courier;"><b>yarn install</b></span></p><p style="text-align: justify;">Enter into the <b><span style="font-family: courier;">/dspace-angular/config</span></b> folder,</p><p style="text-align: justify;"><span style="font-family: courier;"><b>cd config</b></span></p><p style="text-align: justify;">Copy and rename the following file,</p><p style="text-align: justify;"><span style="font-family: courier;"><b>cp config.example.yml config.prod.yml</b></span></p><p style="text-align: justify;">Open the config file</p><p style="text-align: justify;"><span style="font-family: courier;"><b>mousepad config.prod.yml</b></span></p><p style="text-align: justify;">Find the block of information and find the lines. Make changes like this,<br /></p><div style="text-align: justify;"><b><span style="font-family: courier;">ssl: true </span></b><span style="font-family: courier;">-></span><b><span style="font-family: courier;"> false</span></b></div><div style="text-align: justify;"><b><span style="font-family: courier;">host: api7.dspace.org </span></b><span style="font-family: courier;">-></span><b><span style="font-family: courier;"> localhost</span></b></div><div style="text-align: justify;"><span style="font-family: courier;"><b>Port: Change to 8080</b></span></div><div style="text-align: justify;"><br /></div><div style="text-align: justify;"><span style="font-family: courier;"><b># The REST API server settings<br /></b></span><span style="font-family: courier;"><b># NOTE: these must be 'synced' with the 'dspace.server.url' setting in your backend's local.cfg.<br /></b></span><span style="font-family: courier;"><b>rest:<br /></b></span><span style="font-family: courier;"><b>ssl: <span style="color: red;">false</span><br /></b></span><span style="font-family: courier;"><b>host: <span style="color: red;">localhost</span><br /></b></span><span style="font-family: courier;"><b>port: <span style="color: red;">8080</span></b></span></div><p style="text-align: justify;">Save and close the file.</p><p style="text-align: justify;">Run the command,</p><div style="text-align: justify;"><span style="font-family: courier;"><b>yarn run build:prod<br /></b></span><span style="font-family: courier;"><b>exit</b></span></div><div style="text-align: justify;"> </div><h3 style="text-align: justify;">Startup the User Interface</h3><div style="text-align: justify;">Create a PM2 JSON configuration file. <br />Create the file,</div><p style="text-align: justify;"><span style="font-family: courier;"><b>sudo mousepad /home/dspace/dspace-angular-dspace-7.6.1/dspace-ui.json</b></span></p><p style="text-align: justify;">Copy the following content into the dspace-ui.jason file,</p><div style="text-align: justify;"><span style="font-size: x-small;"><b><span style="font-family: courier;">{<br /></span><span style="font-family: courier;"> "apps": [<br /></span><span style="font-family: courier;"> {<br /></span><span style="font-family: courier;"> "name": "dspace-ui",<br /></span><span style="font-family: courier;"> "cwd": "/home/dspace/dspace-angular-dspace-7.6.1/",<br /></span><span style="font-family: courier;"> "script": "dist/server/main.js",</span></b></span></div><div style="text-align: justify;"><span style="font-size: x-small;"><b><span style="font-family: courier;"><span> </span><span> </span><span> "instances": 4</span></span></b></span></div><div style="text-align: justify;"><span style="font-size: x-small;"><b><span style="font-family: courier;"><span><span> </span><span> </span><span> "exec_mode": "cluster" </span> </span><br /></span><span style="font-family: courier;"> "env": {<br /></span><span style="font-family: courier;"> "NODE_ENV": "production",<br /></span><span style="font-family: courier;"><br /></span><span style="font-family: courier;"> }<br /></span><span style="font-family: courier;"> }<br /></span><span style="font-family: courier;"> ]<br /></span><span style="font-family: courier;">}</span></b></span></div><div style="text-align: justify;"></div><p style="text-align: justify;">Start the application using PM2. Apply the following command to start the service,</p><div style="text-align: justify;"><span style="font-family: courier;"><b>sudo su</b></span></div><div style="text-align: justify;"><span style="font-family: courier;"><b>pm2 start /home/dspace/dspace-angular-dspace-7.6.1/dspace-ui.json</b></span></div><p style="text-align: justify;">Create a cronjob entry at the ROOT user to autostart <span style="font-family: courier;"><b>dspace-ui.json</b></span>. Login as a ROOT user. Apply the following commands,</p><div style="text-align: justify;"><span style="font-family: courier;"><b>crontab -e</b></span></div><p style="text-align: justify;">Add the following line</p><div style="text-align: justify;"><div style="text-align: left;"><span style="font-family: courier;"><b>#Auto start dspace-angular</b></span></div><span><div style="font-family: courier; text-align: left;"><b>@reboot bash -ci 'pm2 start /home/dspace/dspace-angular-dspace-7.6.1/dspace-ui.json'</b></div><div style="text-align: left;"><div style="font-family: courier;"><span style="text-align: justify;"><br /></span></div><div><span style="font-family: georgia;"><span style="text-align: justify;">To save the file, apply </span><b style="text-align: justify;">CTRL + O</b><span style="text-align: justify;"> key combination. Exit from the editor and apply <b>CTRL</b> + <b>X</b>.</span></span></div></div></span></div><p style="text-align: justify;">Enter the below URL on the browser to start the DSpace front end,</p><p style="text-align: justify;"><span style="font-family: courier;"><a href="http://localhost:4000"><b>http://localhost:4000</b></a></span></p><p style="text-align: justify;">You may also want to install/configure <i><b>pm2-logrotate</b></i> to ensure that PM2's log folder doesn't fill up over time.</p><div style="text-align: justify;"><span style="font-family: courier;"><b>pm2 install pm2-logrotate<br />pm2 set pm2-logrotate:max_size 1000K<br />pm2 set pm2-logrotate:compress true<br />pm2 set pm2-logrotate:rotateInterval 0 0 19 1 1 7</b></span></div><p style="text-align: justify;"><span style="font-family: georgia;">Build directory no longer required after the installation of DSpace; remove it. Apply the following command;</span></p><div style="text-align: justify;"><span style="font-family: courier;"><b>sudo rm -rf /build</b></span></div><p style="text-align: justify;"><span style="font-family: georgia;">Restart the computer and check the Solr, Tomcat, and DSpace works.</span></p><p style="text-align: justify;"><i>Express my sincere thanks to the contributors; <b><a href="https://www.facebook.com/jeremiah.kellogg.5" target="_blank">Jeremiah Kellogg</a></b> (Library Faculty, Systems, Eastern Oregon University), <b><a href="https://www.linkedin.com/in/anoop-p-a-30790372/" target="_blank">Anoop P.A.</a></b> (Technical Assistant, Kerala Institute Of Local Administration), and <b><a href="https://maheshpalamuttath.info/" target="_blank">Mahesh Palamuttath</a></b> (Librarian, East Campus, Sacred Heart College, Thevara, Ernakulam). </i></p><h3 style="text-align: justify;"><b>References</b></h3><div style="text-align: justify;"><a href="https://wiki.lyrasis.org/display/DSDOC7x/Installing+DSpace#InstallingDSpace-Yarn(v1.x)">https://wiki.lyrasis.org/display/DSDOC7x/Installing+DSpace#InstallingDSpace-Yarn(v1.x)</a></div><div style="text-align: justify;"><a href="https://gist.github.com/otuoma/4b2b23a6358cae99bd437e7a1492ade1">https://gist.github.com/otuoma/4b2b23a6358cae99bd437e7a1492ade1</a> <br /></div><div style="text-align: justify;"><a href="https://www.youtube.com/watch?v=Ta-BpqBFJsg">https://www.youtube.com/watch?v=Ta-BpqBFJsg</a><br /><a href="https://hyperlink.co.ke/2020/08/09/install-dspace-7-on-ubuntu-18-04/">https://hyperlink.co.ke/2020/08/09/install-dspace-7-on-ubuntu-18-04/</a><br /><a href="https://www.youtube.com/watch?v=IRB_oE1JU9Q">https://www.youtube.com/watch?v=IRB_oE1JU9Q</a></div>Vimalhttp://www.blogger.com/profile/16315338813797680405noreply@blogger.com0tag:blogger.com,1999:blog-1496466014629573090.post-59738352015793453762022-07-28T15:50:00.013+05:302022-07-29T11:56:45.348+05:30 Install DSpace 6.3 on Ubuntu 20.04<div style="text-align: justify;">We use Xubuntu 20.04 LTS for the installation of DSpace 6. ISO file of the operating system can be downloaded from the Xubuntu website, <a href="https://xubuntu.org/release/20-04" target="_blank">https://xubuntu.org/release/20-04</a>. No problem using other Ubuntu flavors (e.g. Ubuntu with GNOME, KDE, Lubuntu) for the installation. Either burn the ISO file to a pen drive or DVD. Install the Xubuntu on the machine. Create a user account during the installation (e.g. mgu). Create the user with the name <b>dspace</b> after the installation of Linux based operating system. If you have already run on Ubuntu/Debian (e.g. for Koha), create a dspace user.</div><div style="text-align: justify;"><br /></div><div style="text-align: justify;">Keep in mind that <span style="color: red;"><a href="https://wiki.lyrasis.org/display/DSPACE/Support+for+DSpace+5+and+6+is+ending+in+2023" target="_blank">Support for DSpace 5 and 6 is ending in 2023</a>.</span></div><h2 style="text-align: justify;">Prepare the system for Dspace installation.</h2><div style="text-align: justify;"><div>DSpace builds on the Java platform and it requires a set of software packages like Tomcat, Solr, Maven, Ant, etc. Install the prerequisites for the Dspace software. </div>
<a name='more'></a>
<div><br /></div><div><h3>Update Xubuntu</h3><div>Apply the following commands one by one to receive new Xubuntu updates. It makes the Xubuntu new.</div><div><br /></div><div><span style="font-family: courier;"><b>sudo apt update && sudo apt upgrade -y</b></span></div><div><br /></div><div>Create a DSpace user from the terminal after the installation. Here are the commands to create the DSpace user;</div><div><br /></div><div><span style="font-family: courier;"><b>sudo useradd -m dspace</b></span></div><div><span style="font-family: courier;"><b>sudo passwd dspace</b></span></div><div><br /></div><div>[enter a password for the new user dspace]</div><div><br /></div><h3>Install Open JDK</h3><div>The JDK is a development environment for building applications, applets, and components using the Java programming language. JDK prepares an environment to run Java-based applications on the machine.</div><div><br /></div><div><span style="font-family: courier;"><b>sudo apt install openjdk-8-jdk git -y</b></span></div><div><br /></div><div>Set the JAVA_HOME Environment Variable</div><div><br /></div><div>DSpace requires the Java installation location. Open the following file to add the java environment variable,</div><div><br /></div><div><span style="font-family: courier;"><b>sudo mousepad /etc/environment</b></span></div><div><br /></div><div>Add the following two lines to the file,</div><div><br /></div><div><span style="font-family: courier;"><b>JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64/"</b></span></div><div><span style="font-family: courier;"><b>JAVA_OPTS="-Xmx512M -Xms64M -Dfile.encoding=UTF-8"</b></span></div><div><br /></div><div>Save and close the file.</div><div><br /></div><div>Apply the following commands one by one to check Java Home is successfully saved,</div><div><br /></div><div><span style="font-family: courier;"><b>source /etc/environment</b></span></div><div><span style="font-family: courier;"><b>echo $JAVA_HOME</b></span></div><div><span style="font-family: courier;"><b>echo $JAVA_OPTS</b></span></div></div><div><span style="font-family: courier;"><b><br /></b></span></div><div><h3 style="font-family: inherit;">Install Maven and Ant</h3><div style="font-family: inherit;">Apache Maven requires for the build process during the Dspace installation. Maven helps to download the dependencies. Maven is used to building the installer. Ant used to install/deploy DSpace to the installation directory.</div><div style="font-family: inherit;"><br /></div><div><span style="font-family: courier;"><b>sudo apt install maven ant -y</b></span></div></div><div><span style="font-family: courier;"><b><br /></b></span></div><div><h3><span style="font-family: inherit;">Install PostgreSQL</span></h3><div><span style="font-family: inherit;">PostgreSQL, also known as Postgres, is a free and open-source relational database management system. DSpace makes use of PostgreSQL as a Relational Database System. Apply the following command to install PostgreSQL and related packages;</span></div><div><span style="font-family: inherit;"><br /></span></div><div><span style="font-family: courier;"><b>sudo apt-get install postgresql postgresql-client postgresql-contrib libpostgresql-jdbc-java -y</b></span></div><div><span style="font-family: inherit;"><br /></span></div><div><span style="font-family: inherit;">Apply the following command to check the PostgreSQL version number. </span></div><div><span style="font-family: inherit;"><br /></span></div><div><span style="font-family: inherit;"><b>psql -V psql</b></span></div><div><span style="font-family: inherit;"><br /></span></div><div><span style="font-family: inherit;">Version numbers vary in Ubuntu 20.04, 22.04 and Debian 11. PostgreSQL 14 is available with Ubuntu 22.04. Check whether the installation of PostgreSQL is successful or not,</span></div><div><span style="font-family: inherit;"><br /></span></div><div><span style="font-family: courier;"><b>sudo pg_ctlcluster 12 main start</b></span></div><div><span style="font-family: courier;"><b>sudo systemctl status postgresql</b></span></div><div><span style="font-family: inherit;"><br /></span></div><div><span style="font-family: inherit;">Apply the key, <b>Ctrol+C,</b> to exit from the screen.</span></div><div><span style="font-family: inherit;"><br /></span></div><div><span style="font-family: inherit;">Create a password for PostgreSQL. </span>Note down the password, need it later.</div><div><span style="font-family: inherit;"><br /></span></div><div><span style="font-family: courier;"><b>sudo passwd postgres</b></span></div><div><span style="font-family: inherit;"><br /></span></div><div><span style="font-family: inherit;">Try to login into PostgreSQL using the password created.</span></div><div><span style="font-family: inherit;"><br /></span></div><div><span style="font-family: courier;"><b>su postgres</b></span></div><div><span style="font-family: inherit;"><br /></span></div><div><span style="font-family: inherit;">The command prompt looks like this <b>postgres@user</b>: if you could log in successfully. apply the following command to exit from there,</span></div><div><span style="font-family: inherit;"><br /></span></div><div><span style="font-family: courier;"><b>exit</b></span></div><div><span style="font-family: inherit;"><br /></span></div><div><span style="font-family: inherit;">Open the following file,</span></div><div><span style="font-family: courier;"><b><br /></b></span></div><div><span style="font-family: courier;"><b>sudo mousepad /etc/postgresql/12/main/postgresql.conf</b></span></div><div><span style="font-family: inherit;"><br /></span></div><div><span style="font-family: inherit;">Uncomment the line (remove #) </span><span style="font-family: courier;"><b>listen_addresses = 'localhost'</b></span><span style="font-family: inherit;"> under connection settings option.</span></div><div><span style="font-family: inherit;"><br /></span></div><div><span style="font-family: inherit;">Save the file and close.</span></div><div><span style="font-family: inherit;"><br /></span></div><div><span style="font-family: inherit;">We need to tighten the security of PostgreSQL. Here also, change the PostgreSQL number. Open the following file,</span></div><div><span style="font-family: inherit;"><br /></span></div><div><span style="font-family: courier;"><b>sudo mousepad /etc/postgresql/12/main/pg_hba.conf</b></span></div><div><span style="font-family: inherit;"><br /></span></div><div><span style="font-family: inherit;">Add the following above the line, </span><span style="font-family: courier;"><b># Database administrative login by Unix domain socket</b></span></div><div><span style="font-family: inherit;"><br /></span></div><div><span style="font-family: courier;"><b>#DSpace configuration</b></span></div><div><span style="font-family: courier;"><b>host dspace dspace 127.0.0.1 255.255.255.255 md5</b></span></div><div><span style="font-family: inherit;"><br /></span></div><div><span style="font-family: inherit;">Restart Postgresql</span></div><div><span style="font-family: inherit;"><br /></span></div><div><span style="font-family: courier;"><b>sudo systemctl restart postgresql</b></span></div><div><span style="font-family: courier;"><b><br /></b></span></div><div><h3><span style="font-family: inherit;">Create DSpace database</span></h3><div><span style="font-family: inherit;">Create a DSpace user. Apply the following commands one by one,</span></div><div><span style="font-family: inherit;">Login into the Postgres terminal,</span></div><div><span style="font-family: inherit;"><br /></span></div><div><span style="font-family: courier;"><b>sudo su postgres</b></span></div><div><span style="font-family: inherit;"><br /></span></div><div><span style="font-family: inherit;">Enter into the following directory. If there are any changes in the version number, add them.</span></div><div><span style="font-family: inherit;"><br /></span></div><div><span style="font-family: courier;"><b>cd /etc/postgresql/12/main</b></span></div><div><span style="font-family: inherit;"><br /></span></div><div><span style="font-family: inherit;">Create the user named dspace. Enter the password (e.g. dspace) when it asks. This is the connection password for the DSpace database, note down it. </span></div><div><span style="font-family: inherit;"><br /></span></div><div><span style="font-family: courier;"><b>createuser --username=postgres --no-superuser --pwprompt dspace</b></span></div><div><span style="font-family: inherit;"><br /></span></div><div><span style="font-family: inherit;">This command will create the database with the name dspace. The database owner is dspace, the same user created in the previous command.</span></div><div><span style="font-family: inherit;"><br /></span></div><div><span style="font-family: courier;"><b>createdb --username=postgres --owner=dspace --encoding=UNICODE dspace</b></span></div><div><span style="font-family: inherit;"><br /></span></div><h3><span style="font-family: inherit;">Enable pgcrypto extension. </span></h3><div><span style="font-family: inherit;"><br /></span></div><div><span style="font-family: inherit;">The pgcrypto module provides cryptographic functions for PostgreSQL. It secures data from the security breach.</span></div><div><span style="font-family: inherit;"><br /></span></div><div><span style="font-family: courier;"><b>psql --username=postgres dspace -c "CREATE EXTENSION pgcrypto;"</b></span></div><div><span style="font-family: inherit;"><br /></span></div><div><span style="font-family: inherit;">Exit from the Postgres terminal,</span></div><div><span style="font-family: inherit;"><br /></span></div><div><span style="font-family: courier;"><b>exit</b></span></div><div><span style="font-family: courier;"><b><br /></b></span></div><div><span style="font-family: inherit;">Restart Postgres</span></div><div><span style="font-family: courier;"><b>sudo systemctl restart postgresql</b></span></div><div><span style="font-family: courier;"><b><br /></b></span></div><h3 style="font-weight: bold;"><span style="font-family: inherit;">Build DSpace</span></h3><div><div>Create a folder to put Dspace files.</div><div><br /></div><div><span style="font-family: courier;"><b>sudo mkdir /dspace</b></span></div><div><span style="font-family: courier;"><b>sudo chown dspace /dspace</b></span><span style="white-space: pre;"> </span></div><div><br /></div><div>Create a build folder for building DSpace.</div><div><br /></div><div><span style="font-family: courier;"><b>sudo mkdir /build</b></span></div><div><span style="font-family: courier;"><b>sudo chmod -R 777 /build</b></span></div><div><span style="font-family: courier;"><b>cd /build</b></span></div></div></div><div style="font-weight: bold;"><br /></div><div><h3><b><span style="font-family: inherit;">Download DSpace into /build directory</span></b></h3><div>Copy-paste the following line in the terminal,</div><div><br /></div><div><span style="font-family: courier;"><b>wget https://github.com/DSpace/DSpace/releases/download/dspace-6.3/dspace-6.3-src-release.tar.gz</b></span></div><div><br /></div><div>Extracting Dspace package</div><div><br /></div><div><span style="font-family: courier;"><b>tar -zxf dspace-6.3-src-release.tar.gz<span style="white-space: pre;"> </span></b></span></div><div><span style="font-family: courier;"><br /></span></div><div><div><span style="font-family: inherit;">Enter into the dspace-6.3-src-release folder.</span></div><div><span style="font-family: inherit;"><br /></span></div><div><span style="font-family: courier;"><b>cd dspace-6.3-src-release</b></span></div><div><span style="font-family: inherit;"><br /></span></div><div><span style="font-family: inherit;">Copy and rename the <b>local.cfg</b> file.</span></div><div><span style="font-family: inherit;"><br /></span></div><div><span style="font-family: courier;"><b>sudo cp dspace/config/local.cfg.EXAMPLE dspace/config/local.cfg</b></span></div><div><span style="font-family: courier;"><b><br /></b></span></div><h3><b><span style="font-family: inherit;">Compile and install the DSpace</span></b></h3><div><span><div><span style="font-family: courier;"><b>sudo mvn -U package </b></span></div><div><span style="font-family: courier;"><b>cd dspace/target/dspace-installer</b></span></div><div><span style="font-family: courier;"><b>sudo ant fresh_install</b></span></div><div><span style="font-family: courier;"><b><br /></b></span></div><div><span><h3 style="font-family: inherit;">Install Tomcat</h3><div style="font-family: inherit;">Tomcat provides a "pure Java" HTTP web server environment in which Java code can run. </div><div style="font-family: inherit;"><br /></div><div><span style="font-family: courier;"><b>sudo apt install tomcat9 -y</b></span></div><div><span style="font-family: courier;"><b>sudo systemctl restart cron.service</b></span></div><div style="font-family: inherit;"><br /></div><div style="font-family: inherit;">Specify the DSpace installation path to Tomcat. Open the following file,</div><div style="font-family: inherit;"><br /></div><div><span style="font-family: courier;"><b>sudo mousepad /lib/systemd/system/tomcat9.service</b></span></div><div style="font-family: inherit;"><br /></div><div style="font-family: inherit;">Add the following line under #Security,</div><div style="font-family: inherit;"><br /></div><div><span style="font-family: courier;"><b>ReadWritePaths=/dspace</b></span></div><div style="font-family: inherit;"><br /></div><div style="font-family: inherit;">Save and close the file.</div><div style="font-family: inherit;"><br /></div><div style="font-family: inherit;">Alter Tomcat's default configuration to support searching and browsing of multi-byte UTF-8.</div><div style="font-family: inherit;"><br /></div><div style="font-family: inherit;">Open the following file,</div><div style="font-family: inherit;"><br /></div><div><span style="font-family: courier;"><b>sudo mousepad /etc/tomcat9/server.xml</b></span></div><div style="font-family: inherit;"><br /></div><div style="font-family: inherit;">Find the below-mentioned lines in the file, and comment out. Add <b><!--</b> in the first line and --> in the last line,</div><div style="font-family: inherit;"><br /></div><div><span style="font-family: courier;"><b><Connector port="8080" protocol="HTTP/1.1"</b></span></div><div><span style="font-family: courier;"><b> <span style="white-space: pre;"> </span>connectionTimeout="20000"</b></span></div><div><span style="font-family: courier;"><b> <span style="white-space: pre;"> </span>redirectPort="8443" /></b></span></div><div style="font-family: inherit;">It will look like after commenting out,</div><div style="font-family: inherit;"><br /></div><div><span style="font-family: courier;"><b><!-- <Connector port="8080" protocol="HTTP/1.1"</b></span></div><div><span style="font-family: courier;"><b> <span style="white-space: pre;"> </span>connectionTimeout="20000"</b></span></div><div><span style="font-family: courier;"><b> <span style="white-space: pre;"> </span>redirectPort="8443" /> --></b></span></div><div style="font-family: inherit;">Add the following lines below the commented-out lines,</div><div style="font-family: inherit;"><br /></div><div><span style="font-family: courier;"><b><Connector port="8080" protocol="HTTP/1.1"</b></span></div><div><span style="font-family: courier;"><b><span style="white-space: pre;"> </span>minSpareThreads="25"</b></span></div><div><span style="font-family: courier;"><b><span style="white-space: pre;"> </span>enableLookups="false"</b></span></div><div><span style="font-family: courier;"><b><span style="white-space: pre;"> </span>redirectPort="8443"</b></span></div><div><span style="font-family: courier;"><b><span style="white-space: pre;"> </span>connectionTimeout="20000"</b></span></div><div><span style="font-family: courier;"><b><span style="white-space: pre;"> </span>disableUploadTimeout="true"</b></span></div><div><span style="font-family: courier;"><b><span style="white-space: pre;"> </span>URIEncoding="UTF-8"/></b></span></div><div style="font-family: inherit;">Save and close the file.</div><div style="font-family: inherit;"><br /></div><div style="font-family: inherit;">Restart Tomcat,</div><div><span style="font-family: courier;"><b>sudo systemctl restart tomcat9.service</b></span></div><div style="font-family: inherit;"><br /></div><div style="font-family: inherit;">If it shows the following message,</div><div style="font-family: inherit;"><br /></div><div style="font-family: inherit;"><i><b><span style="color: red;">Warning: The unit file, source configuration file or drop-ins of tomcat9.service changed on disk. Run 'systemctl daemon-reload' to reload units.</span></b></i></div><div style="font-family: inherit;"><br /></div><div style="font-family: inherit;">Apply the following command,</div><div style="font-family: inherit;"><br /></div><div><span style="font-family: courier;"><b>sudo systemctl daemon-reload</b></span></div><div style="font-family: inherit;"><br /></div><div style="font-family: inherit;">Again try to restart the Tomcat,</div><div style="font-family: inherit;"><br /></div><div><span style="font-family: courier;"><b>sudo systemctl restart tomcat9.service</b></span></div><div><span style="font-family: courier;"><b><br /></b></span></div><div><div><span style="font-family: inherit;">Copy the DSpace web apps folder to the Tomcat server</span></div><div><span style="font-family: inherit;"><br /></span></div><div style="font-family: courier; font-weight: bold;">sudo cp -R /dspace/webapps/* /var/lib/tomcat9/webapps*</div><div style="font-family: courier; font-weight: bold;"><br /></div><div><h3><b><span style="font-family: inherit;">Create DSpace Administrator Account</span></b></h3><div><span style="font-family: courier;"><b><br /></b></span></div><div><span style="font-family: courier;"><b>sudo /dspace/bin/dspace create-administrator</b></span></div><div><span style="font-family: courier;"><b><br /></b></span></div><div><span style="font-family: inherit;">This process will ask questions,</span></div><div><span style="font-family: courier;"><b><br /></b></span></div><div><span style="font-family: inherit;"><i>Email Address: [Enter an email address to login Dspace, e.g., dspace@dspace]</i></span></div><div><span style="font-family: inherit;"><i>First Name: [Enter the name of the user, e.g. Dspace]</i></span></div><div><span style="font-family: inherit;"><i>Last Name: [e.g. Admin]</i></span></div><div><span style="font-family: inherit;"><i>Password: [Enter the password to log in to DSpace].</i></span></div><div><span style="font-family: inherit;"><i>Again to confirm: [Once again enter the same password]</i></span></div><div><span style="font-family: inherit;"><i>Is the above data correct? (y or n): [y]</i></span></div><div><span style="font-family: courier;"><b><br /></b></span></div><div><span style="font-family: inherit;">Change permission of DSpace to Tomcat user</span></div><div><span style="font-family: courier;"><b><br /></b></span></div><div><span style="font-family: courier;"><b>sudo chown -R tomcat:tomcat /dspace/</b></span></div><div><span style="font-family: courier;"><b><br /></b></span></div><div><span style="font-family: inherit;">Restart the Tomcat</span></div><div><span style="font-family: courier;"><b>sudo systemctl restart tomcat9.service</b></span></div><div><span style="font-family: courier;"><b><br /></b></span></div><div><div><span style="font-family: inherit;"><div>Delete the build folder, not required after the installation.</div><div><br /></div><div><span style="font-family: courier;"><b>sudo rm -rf /build</b></span></div><div><span style="font-family: courier;"><b><br /></b></span></div></span></div><div><span style="font-family: inherit;">Open DSpace in your browser</span></div><div><span style="font-family: inherit;">DSpace has two interfaces; xmlui and jspui. You can load either one Dspace interface in a browser.</span></div><div style="font-family: courier; font-weight: bold;"><br /></div><div style="font-family: courier; font-weight: bold;">http://localhost:8080/xmlui</div><div style="font-family: courier; font-weight: bold;">http://localhost:8080/jspui</div></div></div></div><div style="font-family: courier; font-weight: bold;"><br /></div><div><span style="font-family: inherit;">Login using the administrative username and password.</span></div><div><span style="font-family: inherit;"><br /></span></div><div><span style="font-family: inherit;">DSpace 6 configuration file located at </span><b><span style="font-family: courier;">/dspace/config/dspace.cfg</span></b></div><div><span style="font-family: inherit;">If you would like to make changes in the file apply the following command,</span></div><div><span style="font-family: inherit;"><br /></span></div><div><div><span style="font-family: courier;"><b>sudo mousepad /dspace/config/dspace.cfg</b></span></div></div></span></div></span></div></div></div></div></div>Vimalhttp://www.blogger.com/profile/16315338813797680405noreply@blogger.com0tag:blogger.com,1999:blog-1496466014629573090.post-71569106099242907352022-05-19T20:27:00.002+05:302022-05-19T20:29:49.703+05:30MediaFilters for full-text search and thumbnail creation<p style="text-align: justify;">Thumbnails of documents give more visibility for PDF documents of books, reports, articles and magazines. DSpace filter-media script extracts the PDF files for full-text search and thumbnail creation. and after submitting an item. Here is the view of an item without a thumbnail,</p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQaSu5DkbwmCYPwRTZ1iB8IQcdu2ovZqvJX61UKLE1lwN9jkM09CF7Un-NbJFu-T13GcJfZMf1qXqLgPctKdNNvU4UK4CCsfZ_6aE2ytcxYBBO0QjDJJKiRHmYkfAgXFkgKz9geCUERH-8M1jdhy2y4HgPJkXX4YMD-Exsx7UL9eUZo1F4ZrAB-QwRFw/s977/Selection_063.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="609" data-original-width="977" height="398" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQaSu5DkbwmCYPwRTZ1iB8IQcdu2ovZqvJX61UKLE1lwN9jkM09CF7Un-NbJFu-T13GcJfZMf1qXqLgPctKdNNvU4UK4CCsfZ_6aE2ytcxYBBO0QjDJJKiRHmYkfAgXFkgKz9geCUERH-8M1jdhy2y4HgPJkXX4YMD-Exsx7UL9eUZo1F4ZrAB-QwRFw/w640-h398/Selection_063.png" width="640" /></a></div><div class="separator" style="clear: both; text-align: center;"><br /></div><div class="separator" style="clear: both; text-align: justify;">Filter-Media script can run either individually after submission of an item for the instant result. Apply the following command to run filter-media,</div><div class="separator" style="clear: both; text-align: justify;"><br /></div><div class="separator" style="clear: both; text-align: justify;"><span style="font-family: courier;"><b><i>sudo /dspace/bin/dspace filter-media</i></b></span></div><div class="separator" style="clear: both; text-align: justify;"><br /></div><div class="separator" style="clear: both; text-align: justify;">The filter-Media command can be added to Crontab to schedule the filter-media command. Add these cron settings under the Linux user account which is running Tomcat (and owns the dspace installation directory).</div><div class="separator" style="clear: both; text-align: justify;"><br /></div><div class="separator" style="clear: both; text-align: justify;"><span style="font-family: courier;"><b><i>crontab -e</i></b></span></div><div class="separator" style="clear: both; text-align: justify;"><br /></div><div class="separator" style="clear: both; text-align: justify;">If the DSpace run on a 24x7 working server machine, add the following entries into the Crontab,</div><div class="separator" style="clear: both; text-align: justify;"><br /></div><div class="separator" style="clear: both; text-align: justify;"><div class="separator" style="clear: both;"><span style="font-family: courier;"><b><i># Run the media filter at 03:00 am every day.</i></b></span></div><div class="separator" style="clear: both;"><span style="font-family: courier;"><b><i>0 3 * * * /dspace/bin/dspace filter-media</i></b></span></div></div><p style="text-align: justify;">If you would like to change the timing, add a convenient time. See the different Cron time examples available <a href="https://help.ubuntu.com/community/CronHowto#Crontab_Example" target="_blank">here</a>. See the thumbnails along with the item after applying the filter-media script.</p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgf8TtFVJ2YeVx81NBgiBNcmIrL1ef_ef8sR8R9G5s1gQ1qeUqUkAWi7CwdiGTznkD32vfkHaS-B-A6QxapRK-7SV8o39zLacjSFz_DPzkmWs39IO3xCFcNxnt-DURGRA_hYBOhEQNTZPR_Z0rTwznAF8g54XwaBVqM9uxRmma6SUkhy0MkXUvTHLAwjQ/s971/Selection_064.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="624" data-original-width="971" height="413" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgf8TtFVJ2YeVx81NBgiBNcmIrL1ef_ef8sR8R9G5s1gQ1qeUqUkAWi7CwdiGTznkD32vfkHaS-B-A6QxapRK-7SV8o39zLacjSFz_DPzkmWs39IO3xCFcNxnt-DURGRA_hYBOhEQNTZPR_Z0rTwznAF8g54XwaBVqM9uxRmma6SUkhy0MkXUvTHLAwjQ/w640-h413/Selection_064.png" width="640" /></a></div><h3 style="text-align: justify;">References</h3><div style="text-align: justify;">Media filters for Transforming DSpace Content<br />https://wiki.lyrasis.org/display/DSDOC7x/Mediafilters+for+Transforming+DSpace+Content</div><p style="text-align: justify;"><br /></p>Vimalhttp://www.blogger.com/profile/16315338813797680405noreply@blogger.com0tag:blogger.com,1999:blog-1496466014629573090.post-8664195691961399622022-05-18T23:25:00.004+05:302023-02-24T06:41:54.723+05:30OAI-PMH / OAI-ORE Harvester<p style="text-align: justify;"></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZZVrdthByXhQyvZCLDQlejOvhBLmAKJRojA0nFhBlqWxTU0BNuk_-Yj7JzssHZLqg7B78XqVJCijydYa8qpz6_ovcxfZ8mQ_rL7gK0l5haXTMYpJyd0g2nb7kQPQr5Src_GN-penIzuQooyBZeI0_iyhMNYXlh0eK9hoyfJnm7KCajpPrklMcMjfm-g/s986/arXiv.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="521" data-original-width="986" height="338" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZZVrdthByXhQyvZCLDQlejOvhBLmAKJRojA0nFhBlqWxTU0BNuk_-Yj7JzssHZLqg7B78XqVJCijydYa8qpz6_ovcxfZ8mQ_rL7gK0l5haXTMYpJyd0g2nb7kQPQr5Src_GN-penIzuQooyBZeI0_iyhMNYXlh0eK9hoyfJnm7KCajpPrklMcMjfm-g/w640-h338/arXiv.png" width="640" /></a></div><br /><span style="font-family: inherit;">OAI-PMH and OAI-ORE are the standards for the description and exchange of metadata and digital objects for archives. DSpace is compatible with OAI-PMH and OAI-ORE. It means, it's possible to import metadata and digital objects (e.g. text, images, data, and video) into DSpace. A DSpace administrator can import metadata from an e-journal/e-book/institutional repository (e.g. arxiv.org, doabooks.org, doaj.org). Harvesting metadata and digital objects from an external source will enrich the institutional repository run on DSpace and it also enhance the user experience. Following are the steps to harvest content from an external source.</span><p></p>
<a name='more'></a>
<p style="text-align: justify;"><span style="font-family: inherit;">1. Verify that the external source allows OAI and ORE harvesting. </span></p><p style="text-align: justify;"><span style="font-family: inherit;">External sources allow harvesting OAI/ORE give guidelines. Check the website and find the instructions. For example, the Directory of Open Access books harvesting guidelines available at the following link, <a href="https://www.doabooks.org/en/doab/metadata-harvesting-and-content-dissemination" target="_blank">https://www.doabooks.org/en/doab/metadata-harvesting-and-content-dissemination</a></span></p><p style="text-align: justify;"><span style="font-family: inherit;">Checking the OAI-PMH interface of the external source is another method to verify the harvesting feature available or not. The format of the URL is, </span></p><p style="text-align: justify;"><i><b><span style="font-family: inherit;">http://[full-URL-to-OAI-PMH]/request?verb=ListRecords&metadataPrefix=ore </span></b></i></p><p style="text-align: justify;"><span style="font-family: inherit;">Add the OAI-PMH URL to the address and copy it into the browser address bar. For example, here is the OAI-PMH URL of the Directory of Open Access books,</span></p><p style="text-align: justify;"><i><b><span style="font-family: inherit;">https://directory.doabooks.org/oai/request?verb=ListRecords&metadataPrefix=ore</span></b></i></p><p style="text-align: justify;"><span style="font-family: inherit;">2. OAI-PMH / OAI-ORE Harvester Configuration</span></p><p style="text-align: justify;"><span style="font-family: inherit;">The configuration file located at <i><b>/dspace/config/modules/oai.cfg</b></i>. Open the <b><i>oai.cfg</i></b> file using any text editor. I am using Mousepad text editor. It's the default text editor available with Xubuntu. If you are working with other Linux based OS, you can install it by applying the following command,</span></p><p style="text-align: justify;"><b><i><span style="font-family: inherit;">sudo apt install mousepad</span></i></b></p><p style="text-align: justify;"><span style="font-family: inherit;">Open the oai.cfg file, </span></p><div style="text-align: justify;"><span style="font-family: courier;"><b>sudo mousepad /dspace/config/modules/oai.cfg</b></span></div><p style="text-align: justify;"><span>and uncomment the line [Remove the # symbol], </span></p><p style="text-align: justify;"><i><b><span style="font-family: inherit;">oai.ore.authoritative.source = oai</span></b></i></p><p style="text-align: justify;"><span style="font-family: inherit;">Save and close the file.</span></p><p style="text-align: justify;"><span style="font-family: inherit;">3. Harvest content from the user interface</span></p><p style="text-align: justify;"><span style="font-family: inherit;">Here I am going to show you how to harvest metadata from <a href="https://arxiv.org" target="_blank">https://arxiv.org</a>. arXiv is an Open Access archive for scholarly articles in the fields of physics, mathematics, computer science, quantitative biology, quantitative finance, statistics, electrical engineering and systems science, and economics.</span></p><p style="text-align: justify;"><span style="font-family: inherit;">Create a collection to harvest an external source. I have created a community with the name Open Access Resources and created a collection inside it, arXiv. </span></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigKYFqEORgYuLRYZIK8anC91XKlF8yUele8vRbbqRTKFm776qD0RhkxDybjqZDfPPz3-NuInwein14HATbO3Y-cDCTqCcdi1BlEiQBSEa_-F5Nl8UtJeyqmYfoRqU064KkJUN2G8u6UOJmZ5nXewwif2ceipnxF8GC04vPykM0pUhXc4dTmI4ZC3v-EQ/s1013/dspace-oai-harvester.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="618" data-original-width="1013" height="390" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigKYFqEORgYuLRYZIK8anC91XKlF8yUele8vRbbqRTKFm776qD0RhkxDybjqZDfPPz3-NuInwein14HATbO3Y-cDCTqCcdi1BlEiQBSEa_-F5Nl8UtJeyqmYfoRqU064KkJUN2G8u6UOJmZ5nXewwif2ceipnxF8GC04vPykM0pUhXc4dTmI4ZC3v-EQ/w640-h390/dspace-oai-harvester.png" width="640" /></a></div><div class="separator" style="clear: both; text-align: center;"><span style="text-align: justify;"><br /></span></div><div class="separator" style="clear: both; text-align: left;"><span style="text-align: justify;">1. Edit the collection and click on the tab </span><b style="text-align: justify;">Content Source</b><span style="text-align: justify;">. </span></div><p style="text-align: justify;">2. Check the option, <i><b>This collection harvests its content from an external source</b></i>.</p><p style="text-align: justify;">3. Find the URI of arXiv from the page, <a href="https://arxiv.org/help/oa" target="_blank">https://arxiv.org/help/oa</a>. URI is <i><b>http://export.arxiv.org/oai2</b></i>.</p><p style="text-align: justify;">4. Give a set ID for the selective harvest; e.g. Use the ID, <i><b>physics</b></i> to harvest only Physics. To see all the sets available at arXiv, visit <a href="http://export.arxiv.org/oai2?verb=ListSets" target="_blank">http://export.arxiv.org/oai2?verb=ListSets</a>.</p><p style="text-align: justify;">5. Select the default metadata format (<i><b>Simple Dublin Core</b></i>).</p><p style="text-align: justify;">6. arXiv supports only OAI, select <i><b>Harvest metadata only</b></i>. Download metadata and bitstreams (images, text, documents) possible from ORE supported repositories. </p><p style="text-align: justify;">7. Save the configuration.</p><p style="text-align: justify;">8. Click <b><i>Import now</i></b> button to start harvesting.</p><p style="text-align: justify;">Visit the collection after importing the metadata.</p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixaj-pV5C6nqjaNhQikjhd1Br0hPxrsj_35tNLO7qT3oFy6c1u8gNVrBAEpmuPiAC3fluBhJR7MXKLAq9yAuFyAwlnz2qOwqo51ePno2ZayxXahKGCZkmkmlGBC4uO3831U4yF4mhVdqfvvxIvRL7y5-O3NXv3FKPfr_B0n46jvRT7cxr7h03NASw8Ng/s978/Selection_061.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="600" data-original-width="978" height="392" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixaj-pV5C6nqjaNhQikjhd1Br0hPxrsj_35tNLO7qT3oFy6c1u8gNVrBAEpmuPiAC3fluBhJR7MXKLAq9yAuFyAwlnz2qOwqo51ePno2ZayxXahKGCZkmkmlGBC4uO3831U4yF4mhVdqfvvxIvRL7y5-O3NXv3FKPfr_B0n46jvRT7cxr7h03NASw8Ng/w640-h392/Selection_061.png" width="640" /></a></div><p style="text-align: justify;">Click on the article title to see the detailed view.</p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDgnfUaTDwH39sw7r3i51iDU4QzPWQivIwVgDzjIl6Dr2QxVB_LnnetBj3PJV1u4VOuB_v1DS-mZE7YNk1rvaDX4APWaFRTxY9blmKqrdwEUYAWobhuKZfybCsrq8J9qwyo1U475XKO2fBgZprG3HrSrXFf9cLp6zDuP_IHnLz7vZEWvw4958wSDy_Pg/s857/Selection_062.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="597" data-original-width="857" height="446" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDgnfUaTDwH39sw7r3i51iDU4QzPWQivIwVgDzjIl6Dr2QxVB_LnnetBj3PJV1u4VOuB_v1DS-mZE7YNk1rvaDX4APWaFRTxY9blmKqrdwEUYAWobhuKZfybCsrq8J9qwyo1U475XKO2fBgZprG3HrSrXFf9cLp6zDuP_IHnLz7vZEWvw4958wSDy_Pg/w640-h446/Selection_062.png" width="640" /></a></div><p style="text-align: justify;"><b>Reference</b></p><p style="text-align: justify;"><a href="https://wiki.lyrasis.org/display/DSDOC7x/OAI">https://wiki.lyrasis.org/display/DSDOC7x/OAI</a></p>Vimalhttp://www.blogger.com/profile/16315338813797680405noreply@blogger.com0tag:blogger.com,1999:blog-1496466014629573090.post-33904371918645076112019-10-11T19:12:00.001+05:302020-10-13T12:44:35.070+05:30Install DSpace 6.x on Debian 9 (Stretch)<div dir="ltr" style="text-align: left;" trbidi="on">
<b>Installation of prerequisite applications</b><br />
Open <b>Applications > Accessories > Terminal</b> and execute the following commands. Apply following commands,<br />
<br />
<b style="font-family: "courier new", courier, monospace;">sudo apt update</b><br />
<span style="font-family: "courier new" , "courier" , monospace;"><b>sudo apt upgrade</b></span><br />
<b><span style="font-family: "courier new" , "courier" , monospace;">sudo apt install leafpad </span></b><b><span style="font-family: "courier new" , "courier" , monospace;">openjdk-<span style="font-family: "courier new" , "courier" , monospace;">8</span>-jdk </span></b><b><span style="font-family: "courier new" , "courier" , monospace;">ant maven postgresql</span></b><br />
<br />
<a name='more'></a><b>Login to PostgreSQL and create the database</b><br />
<br />
<span style="font-family: "courier new" , "courier" , monospace;"><b>sudo su postgres</b></span><br />
<span style="font-family: "courier new" , "courier" , monospace;"><b><br />createuser --username=postgres --no-superuser --pwprompt dspace</b></span><br />
<br />
<b>Enter a password for new role:</b> [<i>Enter a password e.g. dspace</i>]<br />
<br />
<b>Shall the new role be allowed to create more new roles? (y/n)</b> n<br />
<br />
[<i>Enter </i><b>n</b><i> and press enter button</i>]<br />
<br />
<span style="font-family: "courier new" , "courier" , monospace;"><b>createdb --username=postgres --owner=dspace --encoding=UNICODE -T template0 dspace</b></span><br />
<br />
<span style="font-family: "courier new" , "courier" , monospace;"><b>psql --username=postgres dspace -c "CREATE EXTENSION pgcrypto;"</b></span><br />
<span style="font-family: "courier new" , "courier" , monospace;"><b><br /></b></span><span style="font-family: "courier new" , "courier" , monospace;"><b>exit</b></span><br />
<br />
Open the following file,<br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;">sudo leafpad /etc/postgresql/9.<span style="font-family: "courier new" , "courier" , monospace;">6</span>/main/pg_hba.conf</span></b><br />
<br />
Add this line to the configuration file at the end:<br />
<br />
<span style="font-family: "courier new" , "courier" , monospace;"><b>local all dspace md5</b></span><br />
<br />
save and close the file<br />
<br />
Restart PostgreSQL :<br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;">sudo /etc/init.d/postgresql restart</span></b><br />
<br />
<b>Create a DSpace user</b><br />
Apply the following commands one by one,<br />
<br />
<span style="font-family: "courier new" , "courier" , monospace;"><b>sudo useradd -m dspace<br />sudo passwd dspace</b> [enter a password for the new user dspace]<br /><b>sudo mkdir /dspace<br />sudo chown dspace /dspace</b></span><br />
<b><br /></b><b><span style="font-family: "georgia" , "times new roman" , serif;">Create a directory to build Dspace</span></b><br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;">sudo mkdir /build<br />sudo chmod -R 777 /build<br />cd /build</span></b><br />
<br />
<b>Download DSpace into /build directory</b><br />
<span style="font-family: "georgia" , "times new roman" , serif; font-size: small;">Copy-paste following line in the terminal,</span><br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;">wget </span></b><span style="font-family: "courier new" , "courier" , monospace;"><b>https://github.com/DSpace/DSpace/releases/download/dspace-6.3/dspace-6.3-src-release.tar.gz</b></span><br />
<br />
You can find the latest updated of Dspace 6.x version from this <a href="https://github.com/DSpace/DSpace/releases" marked="1" target="_blank">page</a> and copy the link to download latest version.<br />
<br />
<b>Extracting Dspace package</b><br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;">tar -zxf dspace-6.3-src-release.tar.gz</span></b><br />
<br />
Open following file and remove a piece of lines.<br />
<br />
<span style="font-family: "courier new" , "courier" , monospace;"><b>sudo leafpad /build/dspace-6.3-src-release/dspace-api/pom.xml</b></span><br />
<br />
Remove the following group of codes. Carefully check the lines in the file.<br />
<br />
<span style="font-family: "courier new" , "courier" , monospace; font-size: x-small;"><b><plugin></b></span><br />
<span style="font-family: "courier new" , "courier" , monospace; font-size: x-small;"><b><groupId>org.codehaus.mojo</groupId></b></span><br />
<span style="font-family: "courier new" , "courier" , monospace; font-size: x-small;"><b><artifactId>buildnumber-maven-plugin</artifactId></b></span><br />
<span style="font-family: "courier new" , "courier" , monospace; font-size: x-small;"><b><version>1.4</version></b></span><br />
<span style="font-family: "courier new" , "courier" , monospace; font-size: x-small;"><b><executions><execution></b></span><br />
<span style="font-family: "courier new" , "courier" , monospace; font-size: x-small;"><b><phase>validate</phase></b></span><br />
<span style="font-family: "courier new" , "courier" , monospace; font-size: x-small;"><b><goals></b></span><br />
<span style="font-family: "courier new" , "courier" , monospace; font-size: x-small;"><b><goal>create</goal></b></span><br />
<span style="font-family: "courier new" , "courier" , monospace; font-size: x-small;"><b></goals></b></span><br />
<span style="font-family: "courier new" , "courier" , monospace; font-size: x-small;"><b></execution></b></span><br />
<span style="font-family: "courier new" , "courier" , monospace; font-size: x-small;"><b></executions></b></span><br />
<span style="font-family: "courier new" , "courier" , monospace; font-size: x-small;"><b></plugin></b></span><br />
<br />
Save and close the file.<br />
<br />
<span style="font-family: "georgia" , "times new roman" , serif;"><b>Installation of DSpace</b></span><br />
Enter into Dspace package folder and apply the following commands one by one.<br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;">cd /build/dspace-6.3-src-release<br />sudo mvn -U package </span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;">cd dspace/target/dspace-installer<br />sudo ant fresh_install</span></b><br />
<br />
<b>Installation of Tomcat</b><br />
Download the and extract the Tomcat package,<br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;">cd /opt</span></b><br />
<br />
<span style="font-size: small;"><b><span style="font-family: "courier new" , "courier" , monospace;">sudo wget<span style="font-family: "courier new" , "courier" , monospace;"> </span></span></b></span><span style="font-family: "courier new" , "courier" , monospace;"><b>http://mirrors.estointernet.in/apache/tomcat/tomcat-8/v8.5.50/bin/apache-tomcat-8.5.50.tar.gz</b></span><br />
<br />
<span style="font-family: "courier new" , "courier" , monospace;"><span style="font-family: Georgia, "Times New Roman", serif;">If the above mentioned link not working, visit <a href="https://tomcat.apache.org/download-80.cgi" target="_blank">Tomcat website</a> and download the package.</span></span><b><span style="font-family: "courier new" , "courier" , monospace;"> </span></b><br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;">sudo tar xvzf </span></b><b style="font-family: "courier new", courier, monospace;">apache-tomcat-8.5.50.tar.gz</b><br />
<br />
Rename folder "<b style="font-family: "courier new", courier, monospace;">apache-tomcat-8.5.50</b>" to "<b>tomcat</b>"<br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;">sudo mv </span></b><b style="font-family: "courier new", courier, monospace;">apache-tomcat-8.5.50</b><b><span style="font-family: "courier new" , "courier" , monospace;"> tomcat</span></b><br />
<br />
Delete the Tomcat package file from <b>/opt</b> folder<br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;">sudo rm apache-tomcat-</span></b><b style="font-family: "courier new", courier, monospace;">8.5.50.</b><b><span style="font-family: "courier new" , "courier" , monospace;">tar.gz</span></b><br />
<br />
<span style="font-family: "georgia" , "times new roman" , serif;">Open the following file, </span><br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;">sudo leafpad /etc/profile</span></b><br />
<br />
<b>Setup environment variables</b><br />
<br />
Environment variables to find JAVA.<br />
<br />
<span style="font-family: "georgia" , "times new roman" , serif;">Add following lines at the bottom of the file,</span><br />
<br />
<span style="font-family: "georgia" , "times new roman" , serif;"><b><span style="font-family: "courier new" , "courier" , monospace;">export JAVA_HOME=/usr/lib/jvm/java-<span style="font-family: "courier new" , "courier" , monospace;">8</span>-openjdk-amd64<br />export CATALINA_HOME=/opt/tomcat</span></b></span><br />
<br />
<span style="font-family: "georgia" , "times new roman" , serif;">Copy Dspace web apps files to <span style="font-family: "georgia" , "times new roman" , serif;">T</span>omcat folder </span><br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;">sudo cp -r /dspace/webapps/* /opt/tomcat/webapps</span></b><br />
<br />
<b>Running Tomcat automatically</b><br />
You can set up to start the Tomcat server start automatically at the time of system turn on.<br />
<br />
Open following file in a Terminal,<br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;">sudo leafpad /etc/init.d/tomcat</span></b><br />
<br />
Add following lines in the file,<br />
<br />
<b><span style="font-size: x-small;"><span style="font-family: "courier new" , "courier" , monospace;">#!/bin/bash<br />### BEGIN INIT INFO<br /># Provides: tomcat8<br /># Required-Start: $network<br /># Required-Stop: $network<br /># Default-Start: 2 3 4 5<br /># Default-Stop: 0 1 6<br /># Short-Description: Start/Stop Tomcat server<br />### END INIT INFO<br /><br />PATH=/sbin:/bin:/usr/sbin:/usr/bin<br /><br />start() {<br /> sh /opt/tomcat/bin/startup.sh<br />}<br /><br />stop() {<br /> sh /opt/tomcat/bin/shutdown.sh<br />}<br /><br />case $1 in<br /> start|stop) $1;;<br /> restart) stop; start;;<br /> *) echo "Run as $0 <start|stop|restart>"; exit 1;;<br />esac</span></span></b><br />
<br />
save and close the file.<br />
<br />
Apply the following commands too;<br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;">sudo chmod +x /etc/init.d/tomcat<br />sudo update-rc.d tomcat defaults</span></b><br />
<br />
Start Tomcat server,<br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;">sudo service tomcat start</span></b><br />
<br />
Now you can start and stop Tomcat server using the following commands;<br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;">sudo service tomcat start</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;">sudo service tomcat stop</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;">sudo service tomcat restart</span></b><br />
<br />
<b>Make an initial administrator account (an e-person) in DSpace:</b><br />
<br />
<b>Apply following command in a terminal,</b><br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;">sudo /dspace/bin/dspace create-administrator</span></b><br />
<br />
It will ask to enter the email address for user login.<br />
Enter an email address (e.g. dspace@localhost).<br />
Enter First name and surename (e.g. dspace)<br />
Enter a password.<br />
<br />
Delete the build folder<br />
<br />
<span style="font-family: "courier new" , "courier" , monospace;"><b>sudo rm -rf /build</b></span><br />
<br />
<b>Open DSpace in your browser</b><br />
DSpace has two interfaces; xmlui and jspui. You can load either one Dspace interface in a browser.<br />
<br />
http://localhost:8080/xmlui<br />
http://localhost:8080/jspui<br />
<br />
<b>Reference:</b><br />
<a href="https://wiki.duraspace.org/display/DSDOC4x/Installing+DSpace" marked="1" target="_blank">https://wiki.duraspace.org/display/DSDOC4x/Installing+DSpace</a><br />
<br />
<a href="https://www.wissenschaft.com.ng/blog/installing-dspace-6-x-on-ubuntu-14-04-16-04-18-04-lts/" target="_blank">https://www.wissenschaft.com.ng/blog/installing-dspace-6-x-on-ubuntu-14-04-16-04-18-04-lts/</a></div>
Vimalhttp://www.blogger.com/profile/16315338813797680405noreply@blogger.com0tag:blogger.com,1999:blog-1496466014629573090.post-12709927497948827912019-10-10T22:19:00.002+05:302020-10-13T12:44:21.936+05:30Install DSpace 6.x on Ubuntu 16.04 LTS<div dir="ltr" style="text-align: left;" trbidi="on">
<b>Installation of prerequisite applications</b><br />
Open <b>Applications > Accessories > Terminal</b> and execute the following commands. Apply following commands,<br />
<br />
<b style="font-family: "courier new", courier, monospace;">sudo apt update</b><br />
<span style="font-family: "courier new" , "courier" , monospace;"><b>sudo apt upgrade</b></span><br />
<b><span style="font-family: "courier new" , "courier" , monospace;">sudo apt install leafpad </span></b><b><span style="font-family: "courier new" , "courier" , monospace;">openjdk-<span style="font-family: "courier new" , "courier" , monospace;">8</span>-jdk </span></b><b><span style="font-family: "courier new" , "courier" , monospace;">ant maven</span></b><br />
<br />
<a name='more'></a><b>Install PostgreSQL</b><br />
Apply the following commands one by one to install PostgreSQL 9.6.<br />
<br />
<span style="font-family: "courier new" , "courier" , monospace;"><b>sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main" >> /etc/apt/sources.list.d/pgdg.list' <br /> </b></span><br />
<span style="font-family: "courier new" , "courier" , monospace;"><b>wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -<br /> </b></span><br />
<span style="font-family: "courier new" , "courier" , monospace;"><b>sudo apt-get update</b></span><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"><br /></span></b>
<b><span style="font-family: "courier new" , "courier" , monospace;">sudo apt install postgresql-9.6</span></b><br />
<b><br /></b><b>Login to PostgreSQL and create the database</b><br />
<br />
<span style="font-family: "courier new" , "courier" , monospace;"><b>sudo su postgres</b></span><br />
<span style="font-family: "courier new" , "courier" , monospace;"><b><br />createuser --username=postgres --no-superuser --pwprompt dspace</b></span><br />
<br />
<b>Enter a password for new role:</b> [<i>Enter a password e.g. dspace</i>]<br />
<br />
<b>Shall the new role be allowed to create more new roles? (y/n)</b> n<br />
<br />
[<i>Enter </i><b>n</b><i> and press enter button</i>]<br />
<br />
<span style="font-family: "courier new" , "courier" , monospace;"><b>createdb --username=postgres --owner=dspace --encoding=UNICODE -T template0 dspace</b></span><br />
<br />
<span style="font-family: "courier new" , "courier" , monospace;"><b>psql --username=postgres dspace -c "CREATE EXTENSION pgcrypto;"</b></span><br />
<span style="font-family: "courier new" , "courier" , monospace;"><b><br /></b></span><span style="font-family: "courier new" , "courier" , monospace;"><b>exit</b></span><br />
<br />
Open the following file,<br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;">sudo leafpad /etc/postgresql/9.<span style="font-family: "courier new" , "courier" , monospace;">6</span>/main/pg_hba.conf</span></b><br />
<br />
Add this line to the configuration file at the end:<br />
<br />
<span style="font-family: "courier new" , "courier" , monospace;"><b>local all dspace md5</b></span><br />
<br />
save and close the file<br />
<br />
Restart PostgreSQL :<br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;">sudo /etc/init.d/postgresql restart</span></b><br />
<br />
<b>Create a DSpace user</b><br />
Apply the following commands one by one,<br />
<br />
<span style="font-family: "courier new" , "courier" , monospace;"><b>sudo useradd -m dspace<br />sudo passwd dspace</b> [enter a password for the new user dspace]<br /><b>sudo mkdir /dspace<br />sudo chown dspace /dspace</b></span><br />
<b><br /></b><b><span style="font-family: "georgia" , "times new roman" , serif;">Create a directory to build Dspace</span></b><br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;">sudo mkdir /build<br />sudo chmod -R 777 /build<br />cd /build</span></b><br />
<br />
<b>Download DSpace into /build directory</b><br />
<span style="font-family: "georgia" , "times new roman" , serif; font-size: small;">Copy-paste following line in the terminal,</span><br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;">wget </span></b><span style="font-family: "courier new" , "courier" , monospace;"><b>https://github.com/DSpace/DSpace/releases/download/dspace-6.3/dspace-6.3-src-release.tar.gz</b></span><br />
<br />
You can find the latest updated of Dspace 6.x version from this <a href="https://github.com/DSpace/DSpace/releases" marked="1" target="_blank">page</a> and copy the link to download latest version.<br />
<br />
<b>Extracting Dspace package</b><br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;">tar -zxf dspace-6.3-src-release.tar.gz</span></b><br />
<br />
Open following file and remove a piece of lines.<br />
<br />
<span style="font-family: "courier new" , "courier" , monospace;"><b>sudo leafpad /build/dspace-6.3-src-release/dspace-api/pom.xml</b></span><br />
<br />
Remove the following group of codes. Carefully check the lines in the file.<br />
<br />
<span style="font-family: "courier new" , "courier" , monospace; font-size: x-small;"><b><plugin></b></span><br />
<span style="font-family: "courier new" , "courier" , monospace; font-size: x-small;"><b><groupId>org.codehaus.mojo</groupId></b></span><br />
<span style="font-family: "courier new" , "courier" , monospace; font-size: x-small;"><b><artifactId>buildnumber-maven-plugin</artifactId></b></span><br />
<span style="font-family: "courier new" , "courier" , monospace; font-size: x-small;"><b><version>1.4</version></b></span><br />
<span style="font-family: "courier new" , "courier" , monospace; font-size: x-small;"><b><executions><execution></b></span><br />
<span style="font-family: "courier new" , "courier" , monospace; font-size: x-small;"><b><phase>validate</phase></b></span><br />
<span style="font-family: "courier new" , "courier" , monospace; font-size: x-small;"><b><goals></b></span><br />
<span style="font-family: "courier new" , "courier" , monospace; font-size: x-small;"><b><goal>create</goal></b></span><br />
<span style="font-family: "courier new" , "courier" , monospace; font-size: x-small;"><b></goals></b></span><br />
<span style="font-family: "courier new" , "courier" , monospace; font-size: x-small;"><b></execution></b></span><br />
<span style="font-family: "courier new" , "courier" , monospace; font-size: x-small;"><b></executions></b></span><br />
<span style="font-family: "courier new" , "courier" , monospace; font-size: x-small;"><b></plugin></b></span><br />
<br />
Save and close the file.<br />
<br />
<span style="font-family: "georgia" , "times new roman" , serif;"><b>Installation of Dspace</b></span><br />
Enter into Dspace package folder and apply following commands one by one.<br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;">cd /build/dspace-6.3-src-release<br />sudo mvn -U package </span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;">cd dspace/target/dspace-installer<br />sudo ant fresh_install</span></b><br />
<br />
<b>Installation of Tomcat</b><br />
Download the and extract the Tomcat package,<br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;">cd /opt</span></b><br />
<br />
<span style="font-size: small;"><b><span style="font-family: "courier new" , "courier" , monospace;">sudo wget<span style="font-family: "courier new" , "courier" , monospace;"> </span></span></b></span><span style="font-family: "courier new" , "courier" , monospace;"><b>http://mirrors.estointernet.in/apache/tomcat/tomcat-8/v8.5.50/bin/apache-tomcat-8.5.50.tar.gz</b></span><br />
<br />
<br />
If the above mentioned link not working, visit <a href="https://tomcat.apache.org/download-80.cgi" target="_blank">Tomcat website</a> and download the package.<br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;">sudo tar xvzf </span></b><b style="font-family: "courier new", courier, monospace;">apache-tomcat-8.5.50.tar.gz</b><br />
<br />
Rename folder "<b style="font-family: "courier new", courier, monospace;">apache-tomcat-8.5.50</b>" to "<b>tomcat</b>"<br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;">sudo mv </span></b><b style="font-family: "courier new", courier, monospace;">apache-tomcat-8.5.50</b><b><span style="font-family: "courier new" , "courier" , monospace;"> tomcat</span></b><br />
<br />
Delete the Tomcat package file from <b>/opt</b> folder<br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;">sudo rm apache-tomcat-</span></b><b style="font-family: "courier new", courier, monospace;">8.5.50.</b><b><span style="font-family: "courier new" , "courier" , monospace;">tar.gz</span></b><br />
<br />
<span style="font-family: "georgia" , "times new roman" , serif;">Open the following file, </span><br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;">sudo leafpad /etc/profile</span></b><br />
<br />
<b>Setup environment variables</b><br />
<br />
Environment variables to find JAVA.<br />
<br />
<span style="font-family: "georgia" , "times new roman" , serif;">Add following lines at the bottom of the file,</span><br />
<br />
<span style="font-family: "georgia" , "times new roman" , serif;"><b><span style="font-family: "courier new" , "courier" , monospace;">export JAVA_HOME=/usr/lib/jvm/java-<span style="font-family: "courier new" , "courier" , monospace;">8</span>-openjdk-amd64<br />export CATALINA_HOME=/opt/tomcat</span></b></span><br />
<br />
<span style="font-family: "georgia" , "times new roman" , serif;">Copy Dspace web apps files to <span style="font-family: "georgia" , "times new roman" , serif;">T</span>omcat folder </span><br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;">sudo cp -r /dspace/webapps/* /opt/tomcat/webapps</span></b><br />
<br />
<b>Running Tomcat automatically</b><br />
You can set up to start the Tomcat server start automatically at the time of system turn on.<br />
<br />
Open following file in a Terminal,<br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;">sudo leafpad /etc/init.d/tomcat</span></b><br />
<br />
Add following lines in the file,<br />
<br />
<b><span style="font-size: x-small;"><span style="font-family: "courier new" , "courier" , monospace;">#!/bin/bash<br />### BEGIN INIT INFO<br /># Provides: tomcat8<br /># Required-Start: $network<br /># Required-Stop: $network<br /># Default-Start: 2 3 4 5<br /># Default-Stop: 0 1 6<br /># Short-Description: Start/Stop Tomcat server<br />### END INIT INFO<br /><br />PATH=/sbin:/bin:/usr/sbin:/usr/bin<br /><br />start() {<br /> sh /opt/tomcat/bin/startup.sh<br />}<br /><br />stop() {<br /> sh /opt/tomcat/bin/shutdown.sh<br />}<br /><br />case $1 in<br /> start|stop) $1;;<br /> restart) stop; start;;<br /> *) echo "Run as $0 <start|stop|restart>"; exit 1;;<br />esac</span></span></b><br />
<br />
save and close the file.<br />
<br />
Apply the following commands too;<br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;">sudo chmod +x /etc/init.d/tomcat<br />sudo update-rc.d tomcat defaults</span></b><br />
<br />
Start Tomcat server,<br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;">sudo service tomcat start</span></b><br />
<br />
Now you can start and stop Tomcat server using the following commands;<br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;">sudo service tomcat start</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;">sudo service tomcat stop</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;">sudo service tomcat restart</span></b><br />
<br />
<b>Make an initial administrator account (an e-person) in DSpace:</b><br />
<br />
<b>Apply following command in a terminal,</b><br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;">sudo /dspace/bin/dspace create-administrator</span></b><br />
<br />
It will ask to enter the email address for user login.<br />
Enter an email address (e.g. dspace@localhost).<br />
Enter First name and surename (e.g. dspace)<br />
Enter a password.<br />
<br />
Delete the build folder<br />
<br />
<span style="font-family: "courier new" , "courier" , monospace;"><b>sudo rm -rf /build</b></span><br />
<br />
<b>Open DSpace in your browser</b><br />
DSpace has two interfaces; xmlui and jspui. You can load either one Dspace interface in a browser.<br />
<br />
http://localhost:8080/xmlui<br />
http://localhost:8080/jspui<br />
<br />
<b>Reference:</b><br />
<a href="https://wiki.duraspace.org/display/DSDOC4x/Installing+DSpace" marked="1" target="_blank">https://wiki.duraspace.org/display/DSDOC4x/Installing+DSpace</a><br />
<br />
<a href="https://www.wissenschaft.com.ng/blog/installing-dspace-6-x-on-ubuntu-14-04-16-04-18-04-lts/" target="_blank">https://www.wissenschaft.com.ng/blog/installing-dspace-6-x-on-ubuntu-14-04-16-04-18-04-lts/</a></div>
Vimalhttp://www.blogger.com/profile/16315338813797680405noreply@blogger.com0tag:blogger.com,1999:blog-1496466014629573090.post-272089007732665082017-11-02T18:33:00.002+05:302017-11-02T18:33:27.731+05:30Edit news in XMLUI front page<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEineoLM77bOAKx3vWh6NMV2xH6hIQfOaZp8FaNxpFtd8um5TkB-ftuImNbVlSXTN3snLtpkVkrVgzBJAwUbhEMGht3J1Y8z4M5fCKhDul1-6Ta-dL-jsMrRuIRM-8vfQM0rvGCClD10oz2G/s1600/Dspace-XMLUI.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="254" data-original-width="696" height="232" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEineoLM77bOAKx3vWh6NMV2xH6hIQfOaZp8FaNxpFtd8um5TkB-ftuImNbVlSXTN3snLtpkVkrVgzBJAwUbhEMGht3J1Y8z4M5fCKhDul1-6Ta-dL-jsMrRuIRM-8vfQM0rvGCClD10oz2G/s640/Dspace-XMLUI.png" width="640" /></a></div>
<br />
Open a Terminal and apply the following command to open the news file;<br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;">leafpad /dspace/config/news-xmlui.xml</span></b><br />
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVc6yTMoLRZHNiVyWZ-lFKyZJUjKf_swmqRTOFRt0Hw6Ji8_YBV8iD9cWZoo4KamE6aIStSDpWWXYDSvR7KNluWxaKlMKV4tFmcaurmNrUxMOhz30U4GIgzWUgHQjMS-mTwUzteQZxKWoT/s1600/news-xmlui.xml.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" data-original-height="338" data-original-width="633" height="339" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVc6yTMoLRZHNiVyWZ-lFKyZJUjKf_swmqRTOFRt0Hw6Ji8_YBV8iD9cWZoo4KamE6aIStSDpWWXYDSvR7KNluWxaKlMKV4tFmcaurmNrUxMOhz30U4GIgzWUgHQjMS-mTwUzteQZxKWoT/s640/news-xmlui.xml.png" width="640" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Change the new content.</td></tr>
</tbody></table>
If you wish to add hyperlink of any website, please see the script beloow,<br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;"><xref target="https://mgucat.mgu.ac.in"><head>Online Catalogue</head></xref></span></b><br />
<br />
Save and close the file. Then see the changes in Dspace XMLUI interface.</div>
Vimalhttp://www.blogger.com/profile/16315338813797680405noreply@blogger.com0tag:blogger.com,1999:blog-1496466014629573090.post-42959696952751422732017-10-31T08:23:00.000+05:302017-10-31T08:25:00.068+05:30http status 404<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEioJuvezOY-nP4GZOBdpKkLYl6AEeERcpR4WLTbcET-IUK-I_D7P2q0g4KPznpCCJN52fZ3EjzwKMMM62oMaKOUmGGDPPIG04I9m8j2qb0Scm3hNleuqh7pRroreqoLSpH_nHWY4LeVOhHw/s1600/status404.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="274" data-original-width="460" height="237" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEioJuvezOY-nP4GZOBdpKkLYl6AEeERcpR4WLTbcET-IUK-I_D7P2q0g4KPznpCCJN52fZ3EjzwKMMM62oMaKOUmGGDPPIG04I9m8j2qb0Scm3hNleuqh7pRroreqoLSpH_nHWY4LeVOhHw/s400/status404.jpg" width="400" /></a></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
If Dspace shows the error of "<b>http status 404</b>", it means that Tomcat user has no permission to make changes in Dspace folders. </div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
The lack of Tomcat user on Dspace folders can also generate problem of reluctant to upload the documents.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<b>Solution</b></div>
<div style="text-align: justify;">
We need to give the permission to the Tomcat user to access Dspace folders, <b>upload</b> and <b>assetstore</b>. First find the Tomcat user name in the Dspace computer. My Tomcat user name is <b>tomcat</b>. Then assign all permissions to write changes in the folders. Open a Terminal and apply following commands:</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<b><span style="font-family: "courier new" , "courier" , monospace;">sudo su</span></b></div>
<div style="text-align: justify;">
<b><span style="font-family: "courier new" , "courier" , monospace;">chown -R tomcat /dspace/upload <br />chown -R tomcat /dspace/assetstore</span></b></div>
</div>
Vimalhttp://www.blogger.com/profile/16315338813797680405noreply@blogger.com0tag:blogger.com,1999:blog-1496466014629573090.post-40583717268128894732017-10-19T11:24:00.000+05:302017-10-19T11:25:35.889+05:30Customise the logo of XMLUI interface<div dir="ltr" style="text-align: left;" trbidi="on">
Prepare a logo as follows (125x74 pixel). Here image format is PNG.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitWOSqbFEi4Nj8dwCbe8orydtOsyJQZPKuGwE5xGyjccb-K-cRTDJiTyVzVxWjLkKj-KZCMfvDexe3kpYhUoC1Wdc3LHrB6QgT7CMVFG00aGPEe6SsajpjbU3sDqk08JUl6kVPQ8qEkQY/s1600/logo.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="74" data-original-width="125" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitWOSqbFEi4Nj8dwCbe8orydtOsyJQZPKuGwE5xGyjccb-K-cRTDJiTyVzVxWjLkKj-KZCMfvDexe3kpYhUoC1Wdc3LHrB6QgT7CMVFG00aGPEe6SsajpjbU3sDqk08JUl6kVPQ8qEkQY/s1600/logo.png" /></a></div>
<br />
Place the image in home folder (e.g. /home/vimal).<br />
Open a Linux Terminal and apply following command to copy the logo image to the folder.<br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;">cp logo.png /opt/tomcat/webapps/xmlui/themes/Mirage/images</span></b><br />
<br />
Open the css file to change the logo image attribute. Open a terminal and apply following command. Here Dspace webapps directory located in /opt/tomcat/. Dspace webapps may be located in /dspace folder. Confirm it before the execution of the below command;<br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;">leafpad /opt/tomcat/webapps/xmlui/themes/Mirage/lib/css/style.css</span></b><br />
<br />
Find the following portion from the file.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhL4kDcYqE2DSiAu3r9wxsOILSRIX9le2cdSiHb9nuvT97g2tqZ6NbJcjSAh8sJ8ZytWEFj-9D4thcYP5Ex8pzn8nyQjSKxgRWG4SiacY2QlaerdretTt-svzdiDuqrym8zlnJL7RLvbHM/s1600/style.cs.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="209" data-original-width="458" height="182" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhL4kDcYqE2DSiAu3r9wxsOILSRIX9le2cdSiHb9nuvT97g2tqZ6NbJcjSAh8sJ8ZytWEFj-9D4thcYP5Ex8pzn8nyQjSKxgRWG4SiacY2QlaerdretTt-svzdiDuqrym8zlnJL7RLvbHM/s400/style.cs.png" width="400" /></a></div>
<br />
change the width and height of the logo. Change the logo name.<br />
Go to the Dspace XMLUI home page and refresh the browser.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_U5TOy29PdVNl8FFZHO3NDke771Pb8AvuPoJvA_lZWFwN113eU1G0_TrCp2VygnDIh_N7C7eEAuBTs1z6SPAnIG3Q9eRVUfGo8H4CMwN62LxNybuT38SjVOAHn-QIYfW18CG742wOH-Y/s1600/DSpace+Home+-+Mozilla+Firefox_002.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="107" data-original-width="669" height="63" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_U5TOy29PdVNl8FFZHO3NDke771Pb8AvuPoJvA_lZWFwN113eU1G0_TrCp2VygnDIh_N7C7eEAuBTs1z6SPAnIG3Q9eRVUfGo8H4CMwN62LxNybuT38SjVOAHn-QIYfW18CG742wOH-Y/s400/DSpace+Home+-+Mozilla+Firefox_002.png" width="400" /></a></div>
<br /></div>
Vimalhttp://www.blogger.com/profile/16315338813797680405noreply@blogger.com0tag:blogger.com,1999:blog-1496466014629573090.post-69057812003680037452017-04-22T01:31:00.001+05:302019-11-19T20:27:03.788+05:30Install DSpace 5.x on Ubuntu 16.04 LTS <div dir="ltr" style="text-align: left;" trbidi="on">
<b>Installation of prerequisite applications</b><br />
Open <b>Applications > Accessories > Terminal</b> and execute the following commands. Apply following commands,<br />
<br />
<b style="font-family: "courier new", courier, monospace;">sudo update</b><br />
<span style="font-family: "courier new" , "courier" , monospace;"><b>sudo apt upgrade </b></span><br />
<b><span style="font-family: "courier new" , "courier" , monospace;">sudo apt install leafpad </span></b><b><span style="font-family: "courier new" , "courier" , monospace;"><b><span style="font-family: "courier new" , "courier" , monospace;">openjdk-<span style="font-family: "courier new" , "courier" , monospace;">8</span>-jdk </span></b></span></b><b><span style="font-family: "courier new" , "courier" , monospace;"><b><span style="font-family: "courier new" , "courier" , monospace;"><b><span style="font-family: "courier new" , "courier" , monospace;"><b><span style="font-family: "courier new" , "courier" , monospace;">ant maven</span></b></span></b></span></b> </span></b><br />
<br />
<a name='more'></a><b>Install PostgreSQL</b><br />
<span style="font-family: "georgia" , "times new roman" , serif;">Apply following commands one by one to install PostgreSQL 9.6,</span><br />
<span style="font-family: "georgia" , "times new roman" , serif;"><br /></span><b><span style="font-family: "courier new" , "courier" , monospace;">sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main" >> /etc/apt/sources.list.d/pgdg.list' <br /> </span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;">wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -<br /> </span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;">sudo apt-get update</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"><br /></span></b>
<b><span style="font-family: "courier new" , "courier" , monospace;">sudo apt install postgresql-9.6</span></b><br />
<b><br /></b>
<b>Login to PostgreSQL and create the database</b><br />
<br />
<span style="font-family: "courier new" , "courier" , monospace;"><b>sudo su postgres</b></span><br />
<span style="font-family: "courier new" , "courier" , monospace;"><b><br />createuser --username=postgres --no-superuser --pwprompt dspace</b></span><br />
<br />
<b>Enter a password for new role:</b> [<i>Enter a password e.g. dspace</i>]<br />
<br />
<b>Shall the new role be allowed to create more new roles? (y/n)</b> n<br />
<br />
[<i>Enter n and press enter button</i>]<br />
<br />
<span style="font-family: "courier new" , "courier" , monospace;"><b>createdb --username=postgres --owner=dspace --encoding=UNICODE -T template0 dspace</b></span><br />
<br />
<span style="font-family: "courier new" , "courier" , monospace;"><b>psql --username=postgres dspace -c "CREATE EXTENSION pgcrypto;"</b></span><br />
<span style="font-family: "courier new" , "courier" , monospace;"><b><br /></b></span>
<span style="font-family: "courier new" , "courier" , monospace;"><b>exit</b></span><br />
<br />
Open the following file,<br />
[If the following command not open, check the PostgreSQL version number and apply in the command]<br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;">sudo leafpad /etc/postgresql/9.<span style="font-family: "courier new" , "courier" , monospace;">6</span>/main/pg_hba.conf</span></b><br />
<br />
Add this line to the configuration file at the end:<br />
<br />
<span style="font-family: "courier new" , "courier" , monospace;"><b>local all dspace md5</b> </span><br />
<br />
save and close the file<br />
<br />
Restart PostgreSQL :<br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;">sudo /etc/init.d/postgresql restart</span></b><br />
<br />
<b>Create a DSpace user</b><br />
<br />
<span style="font-family: "courier new" , "courier" , monospace;"><b>sudo useradd -m dspace<br />sudo passwd dspace</b> [enter a password for the new user dspace]<br /><b>sudo mkdir /dspace<br />sudo chown dspace /dspace</b></span><br />
<b><br /></b><b><span style="font-family: "georgia" , "times new roman" , serif;">Create a directory to build Dspace</span></b><br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;">sudo mkdir /build<br />sudo chmod -R 777 /build<br />cd /build</span></b> <br />
<br />
<b>Download DSpace into /build directory</b><br />
<span style="font-family: "georgia" , "times new roman" , serif; font-size: small;">Copy-paste following line in the terminal,</span><br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;">wget </span></b><span style="font-family: "courier new" , "courier" , monospace;"><b>https://github.com/DSpace/DSpace/releases/download/dspace-5.10/dspace-5.10-src-release.tar.gz</b></span><br />
<br />
You can find the latest updated of Dspace 5.x version from this <a href="https://github.com/DSpace/DSpace/releases" marked="1" target="_blank">page</a> and copy the link to download latest version.<br />
<br />
<b>Extracting Dspace package</b><br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;">tar -zxf dspace-5.10-src-release.tar.gz</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;">cd /build/dspace-5.10-src-release<br />sudo mvn -U package </span></b><br />
<br />
Enter into Dspace package folder to download packages.<br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;">cd dspace/target/dspace-installer<br />sudo ant fresh_install</span></b><br />
<br />
<b>Installation of Tomcat</b><br />
Download the and extract the Tomcat package,<br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;">cd /opt</span></b><br />
<br />
<span style="font-size: small;"><b><span style="font-family: "courier new" , "courier" , monospace;">sudo wget<span style="font-family: "courier new" , "courier" , monospace;"> </span></span></b></span><span style="font-family: courier new, courier, monospace;"><b>http://mirrors.estointernet.in/apache/tomcat/tomcat-8/v8.5.47/bin/apache-tomcat-8.5.47.tar.gz</b></span><br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;">sudo tar xvzf </span></b><b style="font-family: "courier new", courier, monospace;">apache-tomcat-8.5.47.tar.gz</b><br />
<br />
Rename folder "<b style="font-family: "courier new", courier, monospace;">apache-tomcat-8.5.47</b>" to "<b>tomcat</b>"<br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;">sudo mv </span></b><b style="font-family: "courier new", courier, monospace;">apache-tomcat-8.5.47</b><b><span style="font-family: "courier new" , "courier" , monospace;"> tomcat</span></b><br />
<br />
Delete the Tomcat package file from <b>/opt</b> folder<br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;">sudo rm apache-tomcat-</span></b><b style="font-family: "courier new", courier, monospace;">8.5.47.</b><b><span style="font-family: "courier new" , "courier" , monospace;">tar.gz</span></b><br />
<br />
<span style="font-family: "georgia" , "times new roman" , serif;">Open the following file, </span><br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;">sudo leafpad /etc/profile</span></b><br />
<br />
<b>Setup environment variables</b><br />
<br />
Environment variables to find JAVA.<br />
<br />
<span style="font-family: "georgia" , "times new roman" , serif;">Add following lines at the bottom of the file,</span><br />
<br />
<span style="font-family: "georgia" , "times new roman" , serif;"><b><span style="font-family: "courier new" , "courier" , monospace;">export JAVA_HOME=/usr/lib/jvm/java-<span style="font-family: "courier new" , "courier" , monospace;">8</span>-openjdk-amd64<br />export CATALINA_HOME=/opt/tomcat</span></b></span><br />
<br />
<span style="font-family: "georgia" , "times new roman" , serif;">Copy Dspace web apps files to <span style="font-family: "georgia" , "times new roman" , serif;">T</span>omcat folder </span><br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;">sudo cp -r /dspace/webapps/* /opt/tomcat/webapps </span></b><br />
<br />
<b>Running Tomcat automatically<br />
</b>
<br />
You can set up to start the Tomcat server start automatically at the time of system turn on.<br />
<br />
Open following file in a Terminal,<br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;">sudo leafpad /etc/init.d/tomcat</span></b><br />
<br />
Add following lines in the file,<br />
<br />
<b><span style="font-size: x-small;"><span style="font-family: "courier new" , "courier" , monospace;">#!/bin/bash<br />### BEGIN INIT INFO<br /># Provides: tomcat8<br /># Required-Start: $network<br /># Required-Stop: $network<br /># Default-Start: 2 3 4 5<br /># Default-Stop: 0 1 6<br /># Short-Description: Start/Stop Tomcat server<br />### END INIT INFO<br /><br />PATH=/sbin:/bin:/usr/sbin:/usr/bin<br /><br />start() {<br /> sh /opt/tomcat/bin/startup.sh<br />}<br /><br />stop() {<br /> sh /opt/tomcat/bin/shutdown.sh<br />}<br /><br />case $1 in<br /> start|stop) $1;;<br /> restart) stop; start;;<br /> *) echo "Run as $0 <start|stop|restart>"; exit 1;;<br />esac</span></span></b> <br />
<br />
save and close the file.<br />
<br />
Apply the following commands too;<br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;">sudo chmod +x /etc/init.d/tomcat<br />sudo update-rc.d tomcat defaults</span></b><br />
<br />
Start Tomcat server,<br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;">sudo service tomcat start</span></b><br />
<br />
Now you can start and stop Tomcat server using the following commands;<br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;">sudo service tomcat start</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;">sudo service tomcat stop</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;">sudo service tomcat restart</span></b><br />
<br />
<b>Make an initial administrator account (an e-person) in DSpace:</b><br />
<br />
<b>Apply following command in a terminal,</b><br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;">sudo /dspace/bin/dspace create-administrator</span></b><br />
<br />
It will ask to enter the email address for user login.<br />
Enter an email address (e.g. dspace@localhost).<br />
Enter First name and surename (e.g. dspace)<br />
Enter a password.<br />
<br />
Delete the build folder<br />
<br />
<span style="font-family: "courier new" , "courier" , monospace;"><b>sudo rm -rf /build</b></span><br />
<br />
<b>Open DSpace in your browser</b><br />
DSpace has two interfaces; xmlui and jspui. You can load either one Dspace interface in a browser.<br />
<br />
http://localhost:8080/xmlui<br />
http://localhost:8080/jspui<br />
<br />
<b>Reference:</b>
<br />
<a href="https://wiki.duraspace.org/display/DSDOC4x/Installing+DSpace" marked="1" target="_blank">https://wiki.duraspace.org/display/DSDOC4x/Installing+DSpace</a></div>
Vimalhttp://www.blogger.com/profile/16315338813797680405noreply@blogger.com2tag:blogger.com,1999:blog-1496466014629573090.post-72617907951210533512016-10-26T22:01:00.000+05:302016-10-26T22:14:47.941+05:30Add a new item type in item submission page<div dir="ltr" style="text-align: left;" trbidi="on">
Users can add a new item type (e.g. PhD Theses) to default item type list.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjcjaf_LeK2iiPsFGQpVEfCjqVuRLBsbifNN2WLmO9eARoA-9Lu_wsDQvaSLxKUm1aF19Vm3llrlD2g2nkWjn-EgHwJb4cO5OqiNivGt-kc5ynX0Picm9iVypfnBWvZWyuUPOoGgwFJLr_m/s1600/Item+submission.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="280" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjcjaf_LeK2iiPsFGQpVEfCjqVuRLBsbifNN2WLmO9eARoA-9Lu_wsDQvaSLxKUm1aF19Vm3llrlD2g2nkWjn-EgHwJb4cO5OqiNivGt-kc5ynX0Picm9iVypfnBWvZWyuUPOoGgwFJLr_m/s400/Item+submission.png" width="400" /></a></div>
<a name='more'></a><div class="separator" style="clear: both; text-align: center;">
</div>
<br />
Open following file in a terminal;<br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;">sudo su</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;">leafpad /dspace/config/input-forms.xml</span></b><br />
<br />
Enable line numbers (Options > Line Numbers)<br />
Go to the line number 264.<br />
<br />
Find the script for item types;<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdy0wZp6zh4ib4PQ90VdpEOApI5kHRqZp6eoWwNR0so1DKZbuI2oTUEaRuB3g3A-G8_RfEb4PdUaa8IOb2vzz1cDJJGLRe85Y_vFJCEJ4Go8UECylcFRVCmXxrhAn5bdp7o2iQHl8OSkd-/s1600/input-forms.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="127" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdy0wZp6zh4ib4PQ90VdpEOApI5kHRqZp6eoWwNR0so1DKZbuI2oTUEaRuB3g3A-G8_RfEb4PdUaa8IOb2vzz1cDJJGLRe85Y_vFJCEJ4Go8UECylcFRVCmXxrhAn5bdp7o2iQHl8OSkd-/s400/input-forms.jpg" width="400" /></a></div>
<br />
Copy an existing code for an item type. <br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;"><pair><br /> <displayed-value>Animation</displayed-value><br /> <stored-value>Animation</stored-value></span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"></pair></span></b><br />
<br />
Add new value and paste between any default item types.<br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;"><pair><br /> <displayed-value>PhD Theses</displayed-value><br /> <stored-value>PhD Theses</stored-value></span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;"></pair> </span></b><br />
<br />
Save and close the file.<br />
Restart Tomcat and see the changes.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEji0CM-lAwAP4-thL927gbd3CgQCJ5ucWlFuCd0RA48Rzx2ZDEeQUqEv3_iwR2qmSl6Z9GSB8vfdVzg4zb6_XqhcoBFYsfB8QnlxW8o5K6NqgxHsz0NQSjq6w_MXtWRkdk5UnNfJAjmGlsA/s1600/Item+submission-2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="277" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEji0CM-lAwAP4-thL927gbd3CgQCJ5ucWlFuCd0RA48Rzx2ZDEeQUqEv3_iwR2qmSl6Z9GSB8vfdVzg4zb6_XqhcoBFYsfB8QnlxW8o5K6NqgxHsz0NQSjq6w_MXtWRkdk5UnNfJAjmGlsA/s400/Item+submission-2.png" width="400" /></a></div>
The same way user can add new languages.</div>
Vimalhttp://www.blogger.com/profile/16315338813797680405noreply@blogger.com0tag:blogger.com,1999:blog-1496466014629573090.post-32554384368542721812016-10-13T19:57:00.003+05:302016-10-14T11:24:12.222+05:30Place customised header on JSPUI interface<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhj-SX_fC959r5vHzaVwZ3IN_EgcT64BBI7SQWB8wQloTFtGWtKdy6cBV3XnMorIViLjET6N8PiGS-JqiEehfCv7W4ZoAGiuQ7capJWN8zTsSC9fDNR-kF6Ht27BpukBHorE6De2uvGcraC/s1600/DSpace+header.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="164" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhj-SX_fC959r5vHzaVwZ3IN_EgcT64BBI7SQWB8wQloTFtGWtKdy6cBV3XnMorIViLjET6N8PiGS-JqiEehfCv7W4ZoAGiuQ7capJWN8zTsSC9fDNR-kF6Ht27BpukBHorE6De2uvGcraC/s640/DSpace+header.png" width="640" /></a></div>
<br />
<a name='more'></a><b>Prepare a header image and place in Dspace folder</b><br />
<br />
<b><span style="font-family: "georgia" , "times new roman" , serif;">e.g.</span><span style="font-family: "courier new" , "courier" , monospace;"> cp header.png /<span style="font-family: "courier new" , "courier" , monospace;">opt/tomcat</span>/webapps/jspui/image</span></b><br />
<br />
<b>Hide Dspace brand heading</b><br />
Open header-default.jsp file using Terminal. Apply following commands,<br />
<br />
<span style="font-family: "courier new" , "courier" , monospace;"><b>sudo su</b></span><br />
<span style="font-family: "courier new" , "courier" , monospace;"><b>leafpad </b></span><span style="font-family: "courier new" , "courier" , monospace;"><b><b><span style="font-family: "courier new" , "courier" , monospace;">/<span style="font-family: "courier new" , "courier" , monospace;">opt/tomcat</span></span></b>/webapps/jspui/layout/header-default.jsp</b></span><br />
<br />
Find following lines (Line No. 150-153),<br />
<br />
<span style="font-family: "courier new" , "courier" , monospace;"><b><div class="col-md-9 brand"></b></span><br />
<span style="font-family: "courier new" , "courier" , monospace;"><b> <h1><fmt:message key="jsp.layout.header-default.brand.heading" /></h1></b></span><br />
<span style="font-family: "courier new" , "courier" , monospace;"><b> <fmt:message key="jsp.layout.header-default.brand.description" /> </b></span><br />
<span style="font-family: "courier new" , "courier" , monospace;"><b></div></b></span><br />
<br />
Comment the lines using following syntax;<br />
<br />
<b><%--</b><br />
<b><br /></b>
<b> --%></b><br />
<br />
Comment the portion of lines,<br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;"><%-- </span></b><span style="font-family: "courier new" , "courier" , monospace;"><div class="col-md-9 brand"></span><br />
<span style="font-family: "courier new" , "courier" , monospace;"> <h1><fmt:message key="jsp.layout.header-default.brand.heading" /></h1></span><br />
<span style="font-family: "courier new" , "courier" , monospace;"> <fmt:message key="jsp.layout.header-default.brand.description" /> </span><br />
<span style="font-family: "courier new" , "courier" , monospace;"> </div><span style="font-family: "courier new" , "courier" , monospace;"> </span></span><b><span style="font-family: "courier new" , "courier" , monospace;">--%></span></b><br />
<br />
Find following line, Line Number 154 (Approximate).<br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;"><div class="col-md-3"><img class="pull-right" src="<%= request.getContextPath() %>/image/logo.gif" alt="DSpace logo" /></span></b><br />
<br />
Add header image name and width and height to 100% <br />
<br />
<span style="font-family: "courier new" , "courier" , monospace;"><b><div class="col-md-3"><img class="pull-right" src="<%= request.getContextPath() %>/image/header.png" width="100%" height="100%" alt="DSpace logo" /></b></span><br />
<br />
Save and close the file.<br />
<br />
Open following file,<br />
<br />
<span style="font-family: "courier new" , "courier" , monospace;"><b>leafpad </b></span><span style="font-family: "courier new" , "courier" , monospace;"><b><b><span style="font-family: "courier new" , "courier" , monospace;">/<span style="font-family: "courier new" , "courier" , monospace;">opt/tomcat</span></span></b>/webapps/jspui/static/css/bootstrap/bootstrap.min.css</b></span><br />
<br />
<span data-ft="{"tn":"K"}"><span class="UFICommentBody">Change the width to 100℅ under <span style="font-family: "courier new" , "courier" , monospace;"><b>.col-md-3</b></span></span></span><br />
Save and close the file.<br />
<br />
<span data-ft="{"tn":"K"}"><span class="UFICommentBody"><span style="font-family: "courier new" , "courier" , monospace;"><b><span style="font-family: "georgia" , "times new roman" , serif;"><span data-ft="{"tn":"K"}"><span class="UFICommentBody"><span style="font-family: "georgia" , "times new roman" , serif;">M</span>inimize the gap between banner <span style="font-family: "georgia" , "times new roman" , serif;"><span style="font-family: "courier new" , "courier" , monospace;">image</span> </span>and breadcrumb</span></span></span> </b></span></span></span><br />
<br />
<span data-ft="{"tn":"K"}"><span class="UFICommentBody"><span style="font-family: "courier new" , "courier" , monospace;"><b>sudo su </b></span></span></span><br />
<span data-ft="{"tn":"K"}"><span class="UFICommentBody"><span style="font-family: "courier new" , "courier" , monospace;"><b>leafpad /opt/tomcat/webapps/jspui/static/css/bootstrap/dspace-theme.css</b></span></span></span><br />
<br />
<span style="font-family: "georgia" , "times new roman" , serif;"><span style="font-family: "georgia" , "times new roman" , serif;"><span data-ft="{"tn":"K"}"><span class="UFICommentBody"><span style="font-family: "courier new" , "courier" , monospace;">Find the below line;</span></span></span></span></span><br />
<br />
<span data-ft="{"tn":"K"}"><span class="UFICommentBody"><span style="font-family: "courier new" , "courier" , monospace;"><b><span style="font-family: "courier new" , "courier" , monospace;">.banner img {background-color: #FFFFFF;padding:15px;margin:20px;} </span></b></span></span></span><br />
<br />
<span style="font-family: "georgia" , "times new roman" , serif;"><span style="font-family: "georgia" , "times new roman" , serif;"><span data-ft="{"tn":"K"}"><span class="UFICommentBody"><span style="font-family: "courier new" , "courier" , monospace;">Replace with following line;</span></span></span></span></span><br />
<br />
<span data-ft="{"tn":"K"}"><span class="UFICommentBody"><span style="font-family: "courier new" , "courier" , monospace;"><b><span style="font-family: "courier new" , "courier" , monospace;"><span style="font-family: "courier new" , "courier" , monospace;">.banner img {background-color: #FFFFFF;padding:0 0 10px;}</span></span></b></span></span></span><br />
<span data-ft="{"tn":"K"}"><span class="UFICommentBody"><span style="font-family: "courier new" , "courier" , monospace;"><b><span style="font-family: "courier new" , "courier" , monospace;"><span style="font-family: "courier new" , "courier" , monospace;"><br /></span></span></b></span></span></span>
<span data-ft="{"tn":"K"}"><span class="UFICommentBody"><span style="font-family: "courier new" , "courier" , monospace;"><span style="font-family: "courier new" , "courier" , monospace;"><span style="font-family: "courier new" , "courier" , monospace;"><span style="font-family: "georgia" , "times new roman" , serif;">Save and close the file.</span></span></span><b><span style="font-family: "courier new" , "courier" , monospace;"><span style="font-family: "courier new" , "courier" , monospace;"><br /></span></span></b></span></span></span><br />
<br />
Open jspui interface and refresh the page and see the new header.<br />
<br />
<b>Information courtesy</b><br />
<a href="https://www.facebook.com/meetaliraza?fref=ufi" target="_blank">Ali Raza</a></div>
Vimalhttp://www.blogger.com/profile/16315338813797680405noreply@blogger.com2tag:blogger.com,1999:blog-1496466014629573090.post-4263454694611105852016-10-05T16:57:00.001+05:302016-10-14T11:24:29.289+05:30Change header in XMLUI interface<div dir="ltr" style="text-align: left;" trbidi="on">
This is the default text header in xmlui interface.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqneHx4UZ8AfpMBJsh3EIbiY4_AM4I_VU-7M8p7qZ7FAmZkZO7KIRdgobuWZgPSvKs6J7_SGgDyGYprIu497EUF9YSF4DEZgEs26ImftevmiTDGlqBMTv8HEdpV-ig44MNYZ2wV9EzxsdM/s1600/Dspace-XMLUI-header.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="180" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqneHx4UZ8AfpMBJsh3EIbiY4_AM4I_VU-7M8p7qZ7FAmZkZO7KIRdgobuWZgPSvKs6J7_SGgDyGYprIu497EUF9YSF4DEZgEs26ImftevmiTDGlqBMTv8HEdpV-ig44MNYZ2wV9EzxsdM/s640/Dspace-XMLUI-header.png" width="640" /></a></div>
<br />
Open following file in a terminal,<br />
<span style="font-family: "courier new" , "courier" , monospace;"><b>sudo su </b></span><br />
<b><span style="font-family: "courier new" , "courier" , monospace;">leafpad </span></b><b><span style="font-family: "courier new" , "courier" , monospace;"><b><span style="font-family: "courier new" , "courier" , monospace;">/<span style="font-family: "courier new" , "courier" , monospace;">opt/tomcat</span></span></b>/webapps/xmlui/i18n/messages.xml</span></b><br />
<br />
Find the line (Line no. 2178)<br />
<br />
<span style="font-size: small;"><span style="font-family: "courier new" , "courier" , monospace;"><b><message key="xmlui.dri2xhtml.structural.head-subtitle">DSpace Repository</message></b></span></span><br />
<br />
Change the text <b>Dspace Repository</b><br />
<br />
Save and close the file.<br />
Refresh page Dspace xmlui interface. </div>
Vimalhttp://www.blogger.com/profile/16315338813797680405noreply@blogger.com0tag:blogger.com,1999:blog-1496466014629573090.post-61600366649150466632016-10-04T16:40:00.002+05:302016-10-04T16:44:08.596+05:30Full text indexing with Dspace<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
</div>
<div style="text-align: justify;">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4I47FgEJFFIXMnzmB83ZCuRTiEQt8sw3oVxBdtDqmZ9Ir4xQ0qJ50esvMEdF1RRyS6uYvbZjvfzit1-hrvdW3OafH7XeDCVs80ift-0BzEb0FZffzWLRPh_KT5XmvpHH44CvBTNmRRAnu/s1600/indexing.jpeg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="200" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4I47FgEJFFIXMnzmB83ZCuRTiEQt8sw3oVxBdtDqmZ9Ir4xQ0qJ50esvMEdF1RRyS6uYvbZjvfzit1-hrvdW3OafH7XeDCVs80ift-0BzEb0FZffzWLRPh_KT5XmvpHH44CvBTNmRRAnu/s200/indexing.jpeg" width="200" /></a></div>
Media Filters in Dspace are responsible to extract text for full-text searching. Media Filters for HTML Text, PDF text, Word file, Power Point enabled by default with Dspace. </div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
</div>
<div style="text-align: justify;">
<b>Run media filter from command line </b></div>
<div style="text-align: justify;">
Media filter can run from command line. It will generate index for searching. </div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<b><span style="font-family: "courier new" , "courier" , monospace;">sudo su</span></b></div>
<div style="text-align: justify;">
<b><span style="font-family: "courier new" , "courier" , monospace;">/dspace/bin/dspace filter-media</span></b></div>
<a name='more'></a><div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<b>Run media filter as cronjob</b></div>
<div style="text-align: justify;">
</div>
<div style="text-align: justify;">
Cron is a time based job scheduler with Linux. Media filter command can add to cron job. Media filters can run daily or weekly as cronjob.</div>
<div style="text-align: justify;">
<br />
Open <b>Applications > Accessories > Terminal</b><br />
Apply following commands, <b></b><br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;">crontab -e</span></b></div>
<div div="" justify="" style="text-align: style=;" text-align:="">
<br />
Add following line.<br />
<br />
<span style="font-family: "courier new" , "courier" , monospace;"><b>@daily /home/dspace/bin/dspace filter-media</b></span><br />
<br />
Save and close the file.<br />
<br />
Media filter run at midnight (convenient for 24x7 running servers). User can change cronjob running time. See the examples of cronjob from <a href="https://help.ubuntu.com/community/CronHowto#Crontab_Example" target="_blank">here</a>. </div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Reference</div>
<div style="text-align: justify;">
<a href="https://wiki.duraspace.org/display/DSDOC5x/Mediafilters+for+Transforming+DSpace+Content#MediafiltersforTransformingDSpaceContent-CreatingasimpleMediaFilter" target="_blank">https://wiki.duraspace.org/display/DSDOC5x/Mediafilters+for+Transforming+DSpace+Content</a><br />
<br />
<a href="https://help.ubuntu.com/community/CronHowto#Crontab_Example" target="_blank">https://help.ubuntu.com/community/CronHowto#Crontab_Example </a><br />
<br />
<a href="https://ahammadnurbd.wordpress.com/2014/02/20/cron-jobs-setup-for-production-system/" target="_blank">https://ahammadnurbd.wordpress.com/2014/02/20/cron-jobs-setup-for-production-system/ </a></div>
</div>
Vimalhttp://www.blogger.com/profile/16315338813797680405noreply@blogger.com0tag:blogger.com,1999:blog-1496466014629573090.post-27928451421510317412016-10-03T12:33:00.004+05:302023-02-23T23:13:52.884+05:30Dspace backup manually<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAWzcdb4HgtbYb0KKuyehEeWgA5zAo4UQ33VqkfK0-LjkzhaIy4KBPs_KqdMmdusf1Ts_fKFcPquA3reqEMFrMSl-Yqv_U7rvu4AGoHV0dNF0mrlhtY24fuUldSLffNLqUCfPjHXQ4Y41h/s1600/backup.png" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="200" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAWzcdb4HgtbYb0KKuyehEeWgA5zAo4UQ33VqkfK0-LjkzhaIy4KBPs_KqdMmdusf1Ts_fKFcPquA3reqEMFrMSl-Yqv_U7rvu4AGoHV0dNF0mrlhtY24fuUldSLffNLqUCfPjHXQ4Y41h/s200/backup.png" width="137" /></a></div>
<b>Backup of database</b><br />
Open a Terminal and apply the following commands,<br />
<br /><div dir="ltr" trbidi="on"><span style="font-family: courier new, courier, monospace;"><b>sudo su - postgres</b></span></div><div dir="ltr" trbidi="on"><span style="font-family: courier new, courier, monospace;"><b>pg_dump dspace > dspace.backup</b></span></div><div dir="ltr" trbidi="on"><span style="font-family: courier new, courier, monospace;"><b><br /></b></span></div><div dir="ltr" trbidi="on"><span style="font-family: georgia;">Type </span><span style="font-family: courier;"><b>exit</b></span><span style="font-family: georgia;"> to quit the Postgres prompt.</span></div><div dir="ltr" trbidi="on"><span style="font-family: georgia;">The above command takes a backup of the DSpace database and stores it in </span><b><span style="font-family: courier;">/var/lib/postgresql</span></b><span style="font-family: georgia;">. Copy the database backup file to a safe place.</span></div>
<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<br />
Enter the password of the Linux user for dspace.<br />
<br />
<b>Backup of Asset store and log folders.</b><br />
<span style="font-family: "georgia" , "times new roman" , serif;">Execute these commands one by one;</span><br />
<span style="font-family: "courier new" , "courier" , monospace;"><b>sudo zip -r assetstore.zip /dspace/assetstore</b></span><br />
<span style="font-family: "courier new" , "courier" , monospace;"><b>sudo zip -r log.zip /dspace/log</b></span><br />
<br />
Backup-up files will be deposited in your home folder.<br />
<br />
Image courtesy: <a href="https://openclipart.org/" target="_blank">Open Clip Art</a></div>
</div>
Vimalhttp://www.blogger.com/profile/16315338813797680405noreply@blogger.com0tag:blogger.com,1999:blog-1496466014629573090.post-46906284383473831072016-10-01T11:18:00.001+05:302016-10-03T13:40:11.349+05:30Change big logo on JSPUI interface<div dir="ltr" style="text-align: left;" trbidi="on">
Here is the position of Dspace big logo on JSPUI interface.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8v15EgYG1iO4LIhzITEMlXmPSFWRPJI4h0SekPmHmVTe6iUDnZdiwSmPgksPtJeSKWGV-wGdduDw5Wd6GExv5-RqikvQuMCnfpQWbtDKHJVgK4RVgsRta_pPlQocvf9QsGuDtEmJIjOcy/s1600/Dspace-big-logo.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="144" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8v15EgYG1iO4LIhzITEMlXmPSFWRPJI4h0SekPmHmVTe6iUDnZdiwSmPgksPtJeSKWGV-wGdduDw5Wd6GExv5-RqikvQuMCnfpQWbtDKHJVgK4RVgsRta_pPlQocvf9QsGuDtEmJIjOcy/s640/Dspace-big-logo.png" width="640" /></a></div>
<a name='more'></a><br />
Prepare a logo and place on image folder in web apps folder, e.g. <span style="font-family: "courier new" , "courier" , monospace;">/dspace/webapps/jspui/image </span><br />
<br />
Place logo file in home folder and copy to <span style="font-family: "courier new" , "courier" , monospace;">/dspace/webapps/jspui/image</span><br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;">sudo su</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;">cp mylogo.png /dspace/webapps/jspui/image</span></b><br />
<br />
Open <span style="font-family: "courier new" , "courier" , monospace;">header-default.jsp</span> file and make changes.<br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;">leafpad /dspace/webapps/jspui/layout/header-default.jsp</span></b><br />
<br />
Find following line number 154(Aproximate),<br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;"><div class="col-md-3"><img class="pull-right" src="<%= request.getContextPath() %>/image/logo.gif" alt="DSpace logo" /> </span></b><br />
<br />
Change the logo name (<span style="font-family: "courier new" , "courier" , monospace;">logo.gif</span>). Save and close the file.<br />
Refresh the Dspace JSPUI home page.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSFvv-B9QN9zbWwtLdXChWr_duhbM0RI4ARPidAbR0EV9ESrNQceVf_1X1THOvOgmjhi0Du7DIpR2vdm-vW5f8zLuIfEighiBDa8X3Z-fzwBeXXIH2ghWeEyumOTHc0ylJXkzSuD5i_9gP/s1600/Dspace-JSPUI-logo.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="196" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSFvv-B9QN9zbWwtLdXChWr_duhbM0RI4ARPidAbR0EV9ESrNQceVf_1X1THOvOgmjhi0Du7DIpR2vdm-vW5f8zLuIfEighiBDa8X3Z-fzwBeXXIH2ghWeEyumOTHc0ylJXkzSuD5i_9gP/s640/Dspace-JSPUI-logo.png" width="640" /></a></div>
</div>
Vimalhttp://www.blogger.com/profile/16315338813797680405noreply@blogger.com2tag:blogger.com,1999:blog-1496466014629573090.post-5918552302887617472016-10-01T10:45:00.002+05:302017-05-30T22:33:57.558+05:30Configure Gmail on Dspace<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5TDPNgQbVmsWj74LUTnhEL3RKG-dnoT8asIW4U5fUkfxfy8v2hTUqAVEosCEU5cE8yT7Vw5DSGdAUEYb3BHMv7lN-jvct-8LU8-megwjXThsg0WbeT0rx3x2fjfKr7SfNUTBvQn43EwEM/s1600/server-mail-300px.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="200" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5TDPNgQbVmsWj74LUTnhEL3RKG-dnoT8asIW4U5fUkfxfy8v2hTUqAVEosCEU5cE8yT7Vw5DSGdAUEYb3BHMv7lN-jvct-8LU8-megwjXThsg0WbeT0rx3x2fjfKr7SfNUTBvQn43EwEM/s200/server-mail-300px.png" width="142" /></a></div>
Dspace can accommodate Gmail service to send emails.<br />
<br />
Email settings reside in <b>dspace.cfg</b> file. Open the Terminal and apply following commands to add gmail configuration:<br />
<br />
<span style="font-size: small;"><b><span style="font-family: "courier new" , "courier" , monospace;">sudo su</span></b></span><br />
<span style="font-size: small;"><b><span style="font-family: "courier new" , "courier" , monospace;">leafpad /dspace/config/dspace.cfg</span></b></span><br />
<br />
Find following each chunk of lines the configuration file and add Gmail credentials.<br />
<a name='more'></a><br />
<span style="font-family: "courier new" , "courier" , monospace;"><b># SMTP mail server<br />mail.server = smtp.gmail.com</b></span><br />
<br />
<span style="font-family: "courier new" , "courier" , monospace;"><b># SMTP mail server authentication username and password (if required)<br />mail.server.username = tom@gmail.com<br />mail.server.password = gmailpassword</b></span><br />
<span style="font-family: "courier new" , "courier" , monospace;"><b><br /></b></span>
<span style="font-family: "courier new" , "courier" , monospace;"><b># From address for mail<br />mail.from.address = </b></span><span style="font-family: "courier new" , "courier" , monospace;"><b><span style="font-family: "courier new" , "courier" , monospace;"><b>tom</b></span>@gmail.com</b></span><br />
<span style="font-family: "courier new" , "courier" , monospace;"><b><br /></b></span>
<span style="font-family: "courier new" , "courier" , monospace;"><b># Currently limited to one recipient!<br />feedback.recipient = </b></span><span style="font-family: "courier new" , "courier" , monospace;"><b><span style="font-family: "courier new" , "courier" , monospace;"><b>tom</b></span>@gmail.com<br /><br /># General site administration (Webmaster) e-mail<br />mail.admin = </b></span><span style="font-family: "courier new" , "courier" , monospace;"><b><span style="font-family: "courier new" , "courier" , monospace;"><b>tom</b></span>@gmail.com</b></span><br />
<br />
Find the following line,<br />
<br />
<span style="font-family: "courier new" , "courier" , monospace;"><b>mail.server.port = 465</b></span><br />
<br />
Comment it,<br />
<br />
<span style="font-family: "courier new" , "courier" , monospace;"><b>#mail.server.port = 465</b></span><br />
<br />
Remove comment in the following lines;<br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;">#mail.extraproperties = mail.smtp.socketFactory.port=465, \<br /># mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory, \<br /># mail.smtp.socketFactory.fallback=false</span></b><br />
<br />
It should look like after uncomment the lines;<br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;">mail.extraproperties = mail.smtp.socketFactory.port=465, \<br /> mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory, \<br /> mail.smtp.socketFactory.fallback=false</span></b><br />
<br />
Save and close the file.<br />
<br />
Go to the following link and disable security settings:<br />
<br />
<a href="https://www.google.com/settings/security/lesssecureapps" target="_blank">https://www.google.com/settings/security/lesssecureapps</a><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCoi4YYrE5Zbp-d4iGK-BN-ooQkxgGuA5KEM5BMu9tMlOi8qOxE_Sk7Xz0g95cbE0al2s5w3iffPb3nkQlxp_o2TgHXYsnM8ghCht-5PR-SNqjFvR2Xk32cU1vby5-z62mqSeQDoqOjAhb/s1600/Gmail-Less+secure+apps+++Account+settings.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="201" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCoi4YYrE5Zbp-d4iGK-BN-ooQkxgGuA5KEM5BMu9tMlOi8qOxE_Sk7Xz0g95cbE0al2s5w3iffPb3nkQlxp_o2TgHXYsnM8ghCht-5PR-SNqjFvR2Xk32cU1vby5-z62mqSeQDoqOjAhb/s640/Gmail-Less+secure+apps+++Account+settings.png" width="640" /></a></div>
<br />
<b>References</b><br />
<a href="http://sunitabarve123.blogspot.in/2015/02/dspace-on-gmail.html" target="_blank">http://sunitabarve123.blogspot.in/2015/02/dspace-on-gmail.html</a><br />
<a href="http://blog.stuartlewis.com/2009/09/05/using-gmail-with-dspace/" target="_blank">http://blog.stuartlewis.com/2009/09/05/using-gmail-with-dspace/</a> <br />
<br /></div>
Vimalhttp://www.blogger.com/profile/16315338813797680405noreply@blogger.com3tag:blogger.com,1999:blog-1496466014629573090.post-84069813918904964542016-10-01T08:50:00.001+05:302016-10-01T12:36:15.887+05:30New user account from command line<div dir="ltr" style="text-align: left;" trbidi="on">
Dspace administrator can add new user through command line besides email registration. Open Terminal and apply following commands,<br />
<br />
<span style="font-size: x-small;"><b><span style="font-family: "courier new" , "courier" , monospace;">sudo su </span></b></span><br />
<span style="font-size: x-small;"><b><span style="font-family: "courier new" , "courier" , monospace;">/dspace/bin/dspace user --add --email user@gmail.com -g Tom -s User --password <span style="font-family: "courier new" , "courier" , monospace;">user</span>pass<span style="font-family: "courier new" , "courier" , monospace;">word</span></span></b></span><br />
<br />
Replace with your email and desired user password.<br />
<br />
<b>Reference</b><br />
https://wiki.duraspace.org/display/DSDOC5x/Managing+User+Accounts </div>
Vimalhttp://www.blogger.com/profile/16315338813797680405noreply@blogger.com0tag:blogger.com,1999:blog-1496466014629573090.post-47987841024057128632016-07-13T18:43:00.001+05:302016-10-03T13:42:02.774+05:30Change port number 8080 to 8081<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKed2o7_WgIBwzEE0R33PyE03U3-K6zNP1YJM-D6mPYnlXaNg_ReIXKLMedmX-mnLzI4AQ6-Ad7iZ1Jv8w1lwh4iYJjGq4fECRHxucI3nOKaQKOwtzG0uekRikEuAth1wLw6B8OqwHcSU6/s1600/port-8080.jpeg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKed2o7_WgIBwzEE0R33PyE03U3-K6zNP1YJM-D6mPYnlXaNg_ReIXKLMedmX-mnLzI4AQ6-Ad7iZ1Jv8w1lwh4iYJjGq4fECRHxucI3nOKaQKOwtzG0uekRikEuAth1wLw6B8OqwHcSU6/s1600/port-8080.jpeg" /></a></div>
Open following files and change the port number 8080 to 8081 or other port numbers.<br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;">sudo leafpad /dspace/config/modules/discovery.cfg </span></b><br />
<br />
Change port number 8080 to 8081 in the following line,<br />
<span style="font-family: "courier new" , "courier" , monospace;"></span><br />
<span style="font-family: "courier new" , "courier" , monospace;">search.server = http://localhost:8080/solr/search</span><br />
<span style="font-family: "courier new" , "courier" , monospace;"> </span><b><span style="font-family: "courier new" , "courier" , monospace;"> </span></b>
<br />
<span style="font-family: "courier new" , "courier" , monospace;"><b>sudo leafpad /dspace/config/modules/oai.cfg </b></span><br />
<br />
<a name='more'></a>Change port number 8080 to 8081 in the following line,
<br />
<br />
<span style="font-family: "courier new" , "courier" , monospace;"># Base solr index<br />solr.url=http://localhost:8080/solr/oai</span><br />
<br />
<span style="font-family: "courier new" , "courier" , monospace;"><b>sudo leafpad /dspace/config/modules/solr-statistics.cfg</b></span><br />
<br />
Change port number 8080 to 8081 in the following line,<br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;">server = http://localhost:8080/solr/statistics</span></b><br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;">sudo leafpad /dspace/config/dspace.cfg</span></b><br />
<br />
<span style="font-family: "courier new" , "courier" , monospace;">dspace.baseUrl = http://localhost:8080</span><br />
<span style="font-family: "courier new" , "courier" , monospace;">dspace.url = http://localhost:8080/xmlui</span><b><span style="font-family: "courier new" , "courier" , monospace;"> </span></b><br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;">sudo leafpad /opt/tomcat/conf/server.xml</span></b><br />
<br />
Change port number 8080 to 8081 in the following line,<br />
<br />
<span style="font-family: "courier new" , "courier" , monospace;"><Connector port="8080" protocol="HTTP/1.1"<br /> connectionTimeout="20000"<br /> redirectPort="8443" /></span> </div>
Vimalhttp://www.blogger.com/profile/16315338813797680405noreply@blogger.com1tag:blogger.com,1999:blog-1496466014629573090.post-10421397080232427002016-06-02T07:10:00.001+05:302019-11-20T16:06:17.874+05:30Restore old versions of Dspace to Dspace 6<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: left;">
<b>Take a backup of Dspace database and folders</b></h2>
<div style="text-align: justify;">
Assume that the old version of Dspace is running. Take a PostgreSQL database backup. Open a Terminal and apply following commands,</div>
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;">sudo su - postgres<br />pg_dump dspace > dspace.backup</span></b><br />
<br />
The above command take a backup of Dspace database and store in <b>/var/lib/postgresql/ </b>.Copy the <b>database.backup</b> file to a safe place. <br />
<br />
<a name='more'></a><h2 style="text-align: left;">
<b>Copy assetstore and log folders</b></h2>
Here we are going to backup essential things. All uploaded files stored in<b> assetstore</b> folder.<br />
<br />
<span style="font-family: "courier new" , "courier" , monospace;"><b>sudo zip -r assetstore.zip /dspace/assetstore</b></span><br />
<span style="font-family: "courier new" , "courier" , monospace;"><b>sudo zip -r log.zip /dspace/log</b></span><br />
<br />
<h2 style="text-align: left;">
<b>Restoration of backup to the latest version of Dspace</b></h2>
<br />
<a href="http://dspacegeek.blogspot.in/2016/03/installing-dspace-5x-on-ubuntu-1404-lts.html" target="_blank">Install</a> latest Dspace version. Copy the <b>assetstore</b>, <b>log</b> folders, and database backup to home folder of the system. Extract the <b>assetstore</b> and <b>log</b> folders. Follow the below steps to restore old Dspace backup.<br />
<br />
<h3 style="text-align: left;">
<b>Stop Tomcat server</b></h3>
<b><span style="font-family: "courier new" , "courier" , monospace;">sudo service tomcat stop</span></b><br />
<b><b><span style="font-family: "courier new" , "courier" , monospace;"> </span></b> </b><br />
<h3 style="text-align: left;">
<b>Remove asset store and log folders</b></h3>
<span style="font-family: "courier new" , "courier" , monospace;"><b>sudo rm <span style="font-family: "courier new" , "courier" , monospace;">-</span>rf /dspace/assetstore</b></span><br />
<span style="font-family: "courier new" , "courier" , monospace;"><b>sudo rm <span style="font-family: "courier new" , "courier" , monospace;">-</span>rf /dspace/log/</b></span><br />
<br />
<h3 style="text-align: left;">
<b>Move your old assetstore and log folders to /dspace folder.</b></h3>
<b><span style="font-family: "courier new" , "courier" , monospace;">sudo mv assetstore /dspace</span></b><br />
<b><span style="font-family: "courier new" , "courier" , monospace;">sudo mv log /dspace</span></b><br />
<br />
<h3 style="text-align: left;">
<b>Restoration of database</b></h3>
Restart PostgreSQL<br />
<br />
<b><span style="font-family: "courier new" , "courier" , monospace;">sudo systemctl stop postgresql<br />sudo systemctl start postgresql</span></b><br />
<br />
Drop the database and create a new one. Apply following commands one by one,<br />
<br />
<span style="font-family: "courier new" , "courier" , monospace;"><b>sudo -u postgres psql</b></span><br />
<span style="font-family: "courier new" , "courier" , monospace;"><b>DROP DATABASE dspace;</b></span><br />
<span style="font-family: "courier new" , "courier" , monospace;"><b>CREATE DATABASE dspace;</b></span><br />
<span style="font-family: "courier new" , "courier" , monospace;"><b></b></span>
<span style="font-family: "courier new" , "courier" , monospace;"><b>\quit</b></span><br />
<br />
Make sure that the dspace.backup file in home folder. Apply the following command one by one to restore the database backup.
<br />
<br />
<span style="font-family: "courier new" , "courier" , monospace;"><b>psql -f dspace.backup dspace </b></span><br />
<b style="font-family: "courier new", courier, monospace;"></b>
<b style="font-family: "courier new", courier, monospace;">exit</b><br />
<br />
<h3 style="text-align: left;">
<span style="font-family: "georgia" , "times new roman" , serif;">Install pgcrypto postgres extension</span></h3>
<div style="text-align: left;">
Execute the following commands one by one,</div>
<div style="text-align: left;">
<br /></div>
<b><span style="font-family: "courier new" , "courier" , monospace;">sudo su postgres<br />psql --username=postgres dspace -c "CREATE EXTENSION pgcrypto;"<br />exit</span></b><br />
<br />
<b>Apply following commands</b><br />
<br />
<span style="font-family: "courier new" , "courier" , monospace;"><b>sudo /dspace/bin/dspace database info</b></span><br />
<span style="font-family: "courier new" , "courier" , monospace;"><b>sudo /dspace/bin/dspace database migrate</b></span><br />
<span style="font-family: "courier new" , "courier" , monospace;"><b>sudo /dspace/bin/dspace index-discovery -b</b></span><br />
<span style="font-family: "courier new" , "courier" , monospace;"><b>sudo /dspace/bin/dspace filter-media</b></span><br />
<span style="font-family: "courier new" , "courier" , monospace;"><b>sudo /dspace/bin/dspace index-discovery</b></span><br />
<span style="font-family: "courier new" , "courier" , monospace;"><b>sudo /dspace/bin/dspace index-discovery -o</b></span><br />
<br />
<h3 style="text-align: left;">
Restart Tomcat</h3>
<span style="font-family: "courier new" , "courier" , monospace;"><b>sudo service tomcat start</b></span><br />
<br />
<h3 style="text-align: left;">
<span style="font-family: "georgia" , "times new roman" , serif;"></span></h3>
<h3 style="text-align: left;">
<span style="font-family: "georgia" , "times new roman" , serif;">Open DSpace in a browser</span></h3>
http://127.0.1.1:8080/xmlui<br />
<br />
<h3 style="text-align: left;">
<b style="font-family: "courier new", courier, monospace;"><span style="font-family: "georgia" , "times new roman" , serif;"></span></b></h3>
<h3 style="text-align: left;">
<b style="font-family: "courier new", courier, monospace;"><span style="font-family: "georgia" , "times new roman" , serif;">Information courtesy</span></b></h3>
<div style="text-align: left;">
<span style="font-family: "courier new" , "courier" , monospace;"><span style="font-family: "georgia" , "times new roman" , serif;"><a href="http://ir.inflibnet.ac.in:8080/ir/bitstream/1944/1660/1/Dspace%20Backup%20Restore.pdf" target="_blank">Yatrik Patel, INFLIBNET</a> </span></span></div>
<div style="text-align: left;">
<span style="font-family: "courier new" , "courier" , monospace;"><span style="font-family: "georgia" , "times new roman" , serif;"><a href="https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=15&ved=2ahUKEwjo_6zLxfjlAhUFrY8KHXoyCRAQFjAOegQIBhAC&url=http%3A%2F%2Fnsdl.niscair.res.in%2Fjspui%2Fbitstream%2F123456789%2F939%2F8%2Fdspacebackup.ppt&usg=AOvVaw1FqFymrarXwvUPhswAG7Kg" target="_blank">Mukesh Pund, NISCAIR</a> </span><b> </b></span></div>
</div>
Vimalhttp://www.blogger.com/profile/16315338813797680405noreply@blogger.com2