How to Install PhotoPrism on Elementary OS Latest
PhotoPrism is a self-hosted photo management server that allows you to organize, edit, and share your photos. In this tutorial, we will guide you through the installation of PhotoPrism on Elementary OS Latest.
Prerequisites
- Elementary OS Latest installed on your system
- A user account with sudo privileges
- A web browser to access the PhotoPrism web interface
Step 1: Install required packages
PhotoPrism requires some dependencies to be installed before the main installation process can begin. Open a terminal and run the following command to install the required packages:
sudo apt update
sudo apt install -y curl ffmpeg lsof
Step 2: Download PhotoPrism
Next, download the latest version of PhotoPrism from their official website using the following command:
curl -LO https://dl.photoprism.org/photoprism/2022.01-2/photoprism-linux-arm64-2022.01-2.tar.gz
Note: Make sure to replace photoprism-linux-arm64-2022.01-2.tar.gz with the latest version available on their website.
Step 3: Extract the tar archive
Once the download is complete, extract the downloaded tar archive using the following command:
tar -xvf photoprism-linux-arm64-2022.01-2.tar.gz
Step 4: Move the extracted directory
After extracting the tar archive, you will have a photoprism directory. Move it to the /opt directory using the following command:
sudo mv photoprism /opt/
Step 5: Change the ownership of the directory
Next, change the ownership of the /opt/photoprism directory to the current user using the following command:
sudo chown -R username:username /opt/photoprism
Note: Replace username with your actual username.
Step 6: Create a systemd service file
To make PhotoPrism run as a background service, create a systemd service file using the following command:
sudo nano /etc/systemd/system/photoprism.service
Copy and paste the following contents into the editor:
[Unit]
Description=PhotoPrism
[Service]
User=username
WorkingDirectory=/opt/photoprism/
ExecStart=/opt/photoprism/photoprism
[Install]
WantedBy=multi-user.target
Save and close the file.
Note: Replace username with your actual username.
Step 7: Reload systemd and start PhotoPrism
Reload systemd and start the PhotoPrism service using the following commands:
sudo systemctl daemon-reload
sudo systemctl start photoprism
Step 8: Enable the service
After successfully starting the service, enable it to start on boot:
sudo systemctl enable photoprism
Step 9: Access PhotoPrism web interface
PhotoPrism web interface is now accessible at http://localhost:2342/ in your web browser. Login with the default username (admin) and password (photoprism).
Conclusion
In this tutorial, we have successfully installed PhotoPrism on Elementary OS Latest. Now, you can organize, edit, and share your photos locally with the help of PhotoPrism.