Thursday, December 18, 2025
Solving file upload issues in DSpace on Ubuntu
Saturday, February 15, 2025
How to automate the backup of DSpace database and folders
Find the pg_hba.conf file change the method to 'trust'
Make a shell script to take the backup
Add the crontab entry
Reference
Tuesday, October 8, 2024
Install DSpace 8 on Debian 12
Here, we use Debian 12 to install DSpace 8. If you don't like the Vanilla Debian, try PepperMintOS, / MX Linux / Linux Mint Debian edition. Beginners can find YouTube videos on how to install Debian Linux.
Prepare the system for Dspace installation
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.
Monday, October 7, 2024
Install DSpace 8 on Ubuntu 24.04 LTS
Here, we use Xubuntu 24.04 LTS to install DSpace 8. Xubuntu 24.04 LTS loaded with Snap, which makes the system slow. In such cases, choose snapless Ubuntu-based Linux operating systems like Linux Lite / Rhino Linux / Asmi Linux.
Prepare the system for Dspace installation.
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.
Wednesday, May 8, 2024
Add a new item type in item submission page in DSpace 7
Open the following file in a terminal:
sudo mousepad /dspace/config/input-forms.xml
Find the lines for item types.
<pair>
<displayed-value>Animation</displayed-value>
<stored-value>Animation</stored-value>
</pair>
Add new value and paste between any default item types.
<displayed-value>PhD Theses</displayed-value>
<stored-value>PhD Theses</stored-value>
</pair>
Save and close the file.
Tuesday, January 16, 2024
Change the text at DSpace 7 home page
Frontpage template available at [dspace-angular-frontend]\src\themes\dspace\app\home-page\home-news\home-news.component.html. The location of the dspace-angular-dspace may vary.
Open the template file using a text editor like Nano, e.g.
sudo nano /home/dspace/dspace-angular-dspace-7.6.1/src/themes/dspace/app/home-page/home-news/home-news.component.html
Rebuild the production environment to take effect the changes.
Enter the location of the dspace-angular-dspace. Find the exact location of the [dspace-angular-frontend] and apply the following command. Here is an example of the command,
cd /home/dspace/dspace-angular-dspace-7.6.1/config
Apply the following command
yarn run build:prod
Refresh the home page of DSpace to see the changes made.
Thursday, February 23, 2023
Automate DSpace backups with Cron Task
Database backup
Enter into the crontab:
Add the following entry into the Cron,
10 20 * * * pg_dump -U postgres dbname > ~/postgres/backups/dbname-$(date +%d-%m-%Y-%H.%M).bak
Backup of asset store and log folders
Saturday, February 4, 2023
Error 500-Service unavailable: how to solve
Solr
/opt/solr/bin/solr start
Tomcat
sudo systemctl restart tomcat9.service
Start the user interface
pm2 start /home/dspace/dspace-angular-dspace-7.4/dspace-ui.json
Make available DSpace in a local network / web
Open the Port 4000
Network configuration for DSpace
References
Monday, December 12, 2022
Upgrading DSpace 6 to 7
Take a backup of the DSpace 6 database and folders
sudo su - postgres
pg_dump dspace > dspace.backup
The above command takes a backup of the DSpace database and stores in /var/lib/postgresql. Copy the database.backup file to a safe place.
Saturday, December 3, 2022
Install DSpace 7 on Debian 11 / Ubuntu 22.04 LTS
We use Debian 11 (Bull Eye) Xubuntu 22.04 LTS to install DSpace 7. ISO file of Debian 11 can be downloaded from the link (I prefer Debian with MATE desktop). Xubuntu 22.04 can be downloaded from here. Users who feel challenged to use barebone Debian can also try Dbebian-based Linux operating systems like Pepper Mint OS. 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.
Prepare the system for Dspace installation.
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.
Thursday, July 28, 2022
Install DSpace 6.3 on Ubuntu 20.04
Prepare the system for Dspace installation.
Thursday, May 19, 2022
MediaFilters for full-text search and thumbnail creation
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,
If you would like to change the timing, add a convenient time. See the different Cron time examples available here. See the thumbnails along with the item after applying the filter-media script.
References
https://wiki.lyrasis.org/display/DSDOC7x/Mediafilters+for+Transforming+DSpace+Content
Wednesday, May 18, 2022
OAI-PMH / OAI-ORE Harvester
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.
Friday, October 11, 2019
Install DSpace 6.x on Debian 9 (Stretch)
Open Applications > Accessories > Terminal and execute the following commands. Apply following commands,
sudo apt update
sudo apt upgrade
sudo apt install leafpad openjdk-8-jdk ant maven postgresql
Thursday, October 10, 2019
Install DSpace 6.x on Ubuntu 16.04 LTS
Open Applications > Accessories > Terminal and execute the following commands. Apply following commands,
sudo apt update
sudo apt upgrade
sudo apt install leafpad openjdk-8-jdk ant maven
Thursday, November 2, 2017
Edit news in XMLUI front page
Open a Terminal and apply the following command to open the news file;
leafpad /dspace/config/news-xmlui.xml
![]() |
| Change the new content. |
<xref target="https://mgucat.mgu.ac.in"><head>Online Catalogue</head></xref>
Save and close the file. Then see the changes in Dspace XMLUI interface.
Tuesday, October 31, 2017
http status 404
chown -R tomcat /dspace/assetstore
Thursday, October 19, 2017
Customise the logo of XMLUI interface
Place the image in home folder (e.g. /home/vimal).
Open a Linux Terminal and apply following command to copy the logo image to the folder.
cp logo.png /opt/tomcat/webapps/xmlui/themes/Mirage/images
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;
leafpad /opt/tomcat/webapps/xmlui/themes/Mirage/lib/css/style.css
Find the following portion from the file.
change the width and height of the logo. Change the logo name.
Go to the Dspace XMLUI home page and refresh the browser.
Saturday, April 22, 2017
Install DSpace 5.x on Ubuntu 16.04 LTS
Open Applications > Accessories > Terminal and execute the following commands. Apply following commands,
sudo update
sudo apt upgrade
sudo apt install leafpad openjdk-8-jdk ant maven














