DSpace is a digital repository software which can be used for managing and preserving digital content. In this tutorial, you will learn how to install DSpace on NixOS latest version.
Open a terminal window on your NixOS machine.
Install Git by running the command:
sudo nix-env -iA nixos.git
Clone DSpace repository by running the command:
git clone https://github.com/DSpace/DSpace.git
Navigate to the cloned repository directory:
cd DSpace/
Checkout the latest release stable branch:
git checkout dspace-6.3
Initialize the submodules by running the command:
git submodule update --init --recursive
Open the dspace/config/local.cfg
file:
nano dspace/config/local.cfg
Uncomment the db.url
line and replace the existing value with the following:
db.url = jdbc:postgresql://localhost:5432/dspace?ssl=true&sslmode=require
Save and exit the file by pressing Ctrl + X
, then Y
and Enter
.
Install PostgreSQL by running the command:
sudo nix-env -iA nixos.postgresql
Create a new PostgreSQL database:
sudo -u postgres createdb dspace
sudo nix-env -iA nixos.ant
mvn package
sudo nix-env -iA nixos.tomcat
sudo systemctl start tomcat
sudo ant deploy
sudo systemctl restart tomcat
http://localhost:8080/xmlui/
to access DSpace.Congratulations, you have successfully installed DSpace on NixOS latest version. You can now use DSpace for managing and preserving digital content.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!