aaaa new file
aaaa new file
aaaa new file
sudo su
sudo apt install wget curl git build-essential gedit zip unzip -y
Install Java development kit (JDK-17)
sudo apt install openjdk-17-jdk -y
You can check the java version with the following command (JDK 11 and JDK 17
versions are fully supported to dsapce7)
java -version
Open the following file to activate the JAVA_HOME & JAVA_OPTS environment variable
JAVA_HOME=”/usr/lib/jvm/java-11-openjdk-amd64”
source /etc/environment
Check the status that the JAVA_HOME & JAVA_OPTS have been set successfully or not
echo $JAVA_HOME
echo $JAVA_OPTS
Install Apache Maven and Apache Ant in the 'etc' directory
cd /etc
su postgres
cd /etc/postgresql/14/main
exit
Now, open the configure file of PostgreSQL (Change the Postgres version number if
you are using other than Ubuntu 22.04)
listen_addresses = 'localhost'
cd /opt
sudo rm solr-8.11.3.zip
Change the permission of the solr directory
cd /
cd
exit
Apply the following command from the home directory
gedit .profile
(Paste the following line in the file for auto-start Solr and save the file)
/opt/solr-8.11.3/bin/solr start
Now apply the following commands from the terminal to start the solr
/opt/solr-8.11.2/bin/solr start
Open the following URL in the browser and check whether the Solr admin dashboard is
loaded.
http://localhost:8983/solr
Install Tomcat
ReadWritePaths=/dspace
Open the following file in the tomcat folder
connectionTimeout="20000"
redirectPort="8443" />
Replace the above lines with the following lines
<Connector port="8080" protocol="HTTP/1.1"
minSpareThreads="25"
enableLookups="false"
redirectPort="8443"
connectionTimeout="20000"
disableUploadTimeout="true"
URIEncoding="UTF-8"/>
Restart the Tomcat
wget https://github.com/DSpace/DSpace/archive/refs/tags/dspace-8.0.zip
Unzip the DSpace file
unzip dspace-8.0.zip
sudo rm dspace-8.0.zip
Change the directory and enter the Dspace-dspace-8.0
cd DSpace-dspace-8.0
Change the permission to dspace directory
su postgres
(Enter the password if the system prompt to password)
Enter into the following directory (Change the Postgres version number accordingly)
cd /etc/postgresql/15/main
Create the username and the password for the new role
cp local.cfg.EXAMPLE local.cfg
Open the configuration file
gedit local.cfg
Here you will find important lines and their purpose. Make the changes in the file
wherever required
(Change the database username and password if there are any changes)
db.username = dspace
db.password = dspace
solr.server = http://localhost:8983/solr
cd ~/DSpace-dspace-8.0
Build the Installation Package
mvn package
Install DSpace Backend (Enter the dspace-installer directory)
cd /~DSpace-dspace-8.0/dspace/target/dspace-installer/
Install the ant fresh
ant fresh_install
nitialize the Database (Apply the following commands)
cd /dspace/bin
cd /dspace/solr
cp -R /dspace/solr/* /opt/solr-8.11.3/server/solr/configsets
Now Restart the Solr
cd /opt/solr-8.11.3/bin
./solr restart
Create an Administrator Account
/dspace/bin/dspace create-administrator
(Enter the email address, first name, last name, password, etc.)
Change the permissions of dspace to Tomcat User