How to Install Access to Memory (AtoM) on Clear Linux Latest

Access to Memory (AtoM) is a web-based application for creating and managing digital archives. It is open source and widely used by libraries, museums, and archives worldwide.

In this tutorial, we will explain how to install AtoM on Clear Linux Latest. Clear Linux is a Linux distribution that is optimized for Intel-based systems and focuses on performance and security.

Step 1: Install Dependencies

First, update the package list and install the necessary dependencies for AtoM:

sudo swupd update
sudo swupd bundle-add lighttpd mysql
sudo swupd bundle-add php-basic php-mysqlnd php-gd php-mbstring php-xml php-intl
sudo swupd bundle-add composer

Step 2: Download AtoM

Go to the AtoM website and download the latest release:

wget https://storage.googleapis.com/releases.atom-archive.org/2.x.x/atom_2.6.0.tar.gz

Extract the downloaded file:

tar -xvzf atom_2.6.0.tar.gz

Move the extracted files to the web root directory (/var/www/htdocs):

sudo mv atom/* /var/www/htdocs/

Step 3: Install AtoM

Navigate to the web root directory:

cd /var/www/htdocs

Install AtoM using composer:

sudo composer install --no-dev --optimize-autoloader

Change the ownership of the AtoM files to the web server user (www-data for Lighttpd):

sudo chown -R www-data:www-data /var/www/htdocs

Step 4: Create a MySQL Database

Create a MySQL database for AtoM:

mysql -u root -p

Enter your MySQL root password and run the following commands:

CREATE DATABASE atom;
GRANT ALL ON atom.* TO 'atom'@'localhost' IDENTIFIED BY 'atom_password';
FLUSH PRIVILEGES;
EXIT;

Replace "atom_password" with a strong password of your choice.

Step 5: Configure AtoM

Copy the sample configuration file and edit it:

cp config/atom_sample.yml config/atom.yml
nano config/atom.yml

Change the following lines in the file:

dsn: 'mysql:host=localhost;dbname=atom;charset=utf8mb4'
username: 'atom'
password: 'atom_password'

Replace "atom_password" with the MySQL password you set earlier.

Generate a secret key for AtoM:

bin/generate_secret_key.php >> config/atom.yml

Step 6: Configure Lighttpd

Copy the sample Lighttpd configuration file and edit it:

cp config/lighttpd_sample.conf config/lighttpd.conf
nano config/lighttpd.conf

Change the following lines in the file:

server.document-root = "/var/www/htdocs"

$HTTP["host"] == "localhost" {
    fastcgi.server = (".php" => (("bin-path" => "/usr/bin/php-cgi", "socket" => "/tmp/php-fpm.sock")))
}

Step 7: Start Lighttpd and Test AtoM

Start Lighttpd:

sudo systemctl start lighttpd

Open a web browser and go to http://localhost/. You should see the AtoM installation page.

Follow the prompts to complete the AtoM installation. When prompted for the database information, enter:

After the installation is complete, you can login to AtoM with the default username and password:

Conclusion

We have shown how to install Access to Memory (AtoM) on Clear Linux Latest. AtoM is a powerful digital archive management system that can help your organization manage and provide access to your digital assets.

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!