How to Install Archivematica on Elementary OS Latest

Archivematica is a free and open-source digital preservation software that helps users to preserve and manage their digital archives in a secured environment. In this tutorial, we will guide you on how to install Archivematica on Elementary OS Latest.

Prerequisites

To install Archivematica on your Elementary OS Latest system, you need to have the following:

Step 1: Update the System

The first thing to do before installing any new package on your system is to update it. Run the commands below in your terminal to achieve this.

sudo apt update
sudo apt upgrade

Step 2: Install Dependencies

Before installing Archivematica, we need to install its dependencies. Run the commands below to install all dependencies.

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt install wget curl git gcc g++ make libssl-dev libffi-dev python3-dev python3-pip \
                rabbitmq-server uwsgi uwsgi-plugin-python3 apache2 \
                libapache2-mod-wsgi-py3 zlib1g-dev libjpeg-turbo8-dev \
                libtiff5-dev libpng-dev libxml2-dev libxslt1-dev

Step 3: Install Archivematica

Option 1: Using the Debian Repository

Archivematica is available as a Debian package. Run the following commands to add Archivematica’s package signing key to your system’s trusted keyring to enable the use of the package source.

wget -O - http://packages.archivematica.org/1.11.x/key.asc | sudo apt-key add -
sudo bash -c "echo 'deb http://packages.archivematica.org/1.11.x/buster buster main' > /etc/apt/sources.list.d/archivematica.list"
sudo add-apt-repository universe
sudo apt update
sudo apt install archivematica-storage-service archivematica-mcp-server archivematica-dashboard

Option 2: Using Git Repository

Alternatively, you can use git to clone Archivematica’s source code and install it. Run the following commands in your terminal.

cd ~
git clone https://github.com/archivematica/archivematica.git
cd archivematica/
git checkout v1.11.x
sudo make
sudo make install

Step 4: Configure Archivematica

Open the configuration files with an editor of your choice.

sudo nano /etc/default/archivematica-mcp-server
sudo nano /etc/default/archivematica-storage-service

Update the values of the following:

ARCHIVEMATICA_STORAGE_PATH=/var/archivematica/sharedDirectory<br>MCPSERVER_HOME_PATH=/usr/share/archivematica/archivematica-common

Update this line UMASK=022 to UMASK=002, add the current username USER=<your-actual-username> and add GID=$(id -g $USER)

Save and close the file.

For the Archivematica dashboard, edit this file using the following command:

sudo nano /etc/apache2/sites-available/001-archivematica.conf

Replace the content with the following:

<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /usr/share/archivematica/dashboard/html/
ServerName localhost
Alias /static /usr/share/archivematica/dashboard/html/externals/static
<Directory /usr/share/archivematica/dashboard/html/>
        Require all granted
        Options FollowSymLinks
        AllowOverride None
        AddType text/html .py
        AddHandler mod_python .py
        PythonHandler mod_python.publisher
        PythonDebug On
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

Save and close the file. Then, activate and start the newly created configuration file by running:

sudo a2ensite 001-archivematica.conf
sudo systemctl restart apache2

Step 5: Run Archivematica

To enable the services, follow these commands.

sudo systemctl enable archivematica-mcp-server.service
sudo systemctl enable archivematica-storage-service.service
sudo systemctl enable fits.service

Start the storage-service, mcp-server, and fits services with the command:

sudo systemctl start archivematica-storage-service.service
sudo systemctl start archivematica-mcp-server.service
sudo systemctl start fits.service

You can now access Archivematica by opening a web browser and navigating to http://localhost/dashboard.

Conclusion

You have successfully installed Archivematica in Elementary OS Latest. You can now preserve and manage your digital archive data through a secure and encrypted environment.

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!