How to Install Archivematica on Debian Latest

Archivematica is an open-source digital preservation system that is designed to help organizations manage, preserve, and provide access to digital content over the long term. In this tutorial, we will guide you through the process of installing Archivematica on Debian Latest.

Prerequisites

Before proceeding, make sure that you have the following prerequisites:

Step 1: Install Dependencies

Before we can install Archivematica, we need to install some dependencies. Open your terminal and run the following commands:

sudo apt-get update
sudo apt-get install -y apt-transport-https gnupg2

Step 2: Add Archivematica Repository

Next, we need to add the Archivematica repository to our system. Run the following commands to download and add the repository key:

wget -qO - https://packagecloud.io/archivematica/1/gpgkey | sudo apt-key add -
echo "deb https://packagecloud.io/archivematica/1/debian/ buster main" | sudo tee /etc/apt/sources.list.d/archivematica.list

Step 3: Install Archivematica Packages

With the Archivematica repository added, we can now install the Archivematica packages by running the following command:

sudo apt-get update
sudo apt-get install -y archivematica-storage-service archivematica-dashboard \
archivematica-mcp-server archivematica-mcp-client archivematica-common \
archivematica-mcp-client-cli archivematica-storage-service-cli archivematica-cli

Step 4: Configure Archivematica

After installing the packages, we need to configure Archivematica. Run the following commands to create the django_uwsgi.ini and localSettings.py files:

sudo cp /etc/archivematica/MCPClient/settings_default.py /etc/archivematica/MCPClient/settings.py
sudo cp /etc/archivematica/ArchivematicaCommon/localsettings_example.py /etc/archivematica/ArchivematicaCommon/localsettings.py

Next, edit the /etc/archivematica/ArchivematicaCommon/localsettings.py file using your preferred text editor and update the following settings:

DEBUG = False
SECRET_KEY = '<your_secret_key>'
ALLOWED_HOSTS = ['<your_server_ip>', '<your_subdomain>.example.com']
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql',
        'NAME': 'archivematica',
        'USER': '<your_db_user>',
        'PASSWORD': '<your_db_password>',
        'HOST': 'localhost',
        'PORT': '5432',
    }
}

Remember to replace <your_secret_key>, <your_server_ip>, <your_subdomain>.example.com, <your_db_user>, and <your_db_password> with your own values.

Step 5: Start Archivematica Services

Finally, we can start the Archivematica services. Run the following commands to start the services and enable them to start at boot:

sudo systemctl start archivematica-mcp-server archivematica-mcp-client archivematica-dashboard \
archivematica-storage-service celerybeat celeryd-worker celeryd-beat celeryd-stats \
archivematica-storage-service-rest-api uwsgi nginx
sudo systemctl enable archivematica-mcp-server archivematica-mcp-client archivematica-dashboard \
archivematica-storage-service celerybeat celeryd-worker celeryd-beat celeryd-stats \
archivematica-storage-service-rest-api uwsgi nginx

To verify that Archivematica is running properly, navigate to http://<your_server_ip> or http://<your_subdomain>.example.com in your web browser. You should see the Archivematica dashboard.

Conclusion

Congratulations! You have successfully installed Archivematica on Debian Latest. You can now start preserving your digital content over the long term.

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!

Alternatively, for the best virtual desktop, try Shells!