LibrePhotos can be installed locally on Debian-based operating systems with systemd.
We currently only support nginx. If you want something custom adapt the script to your liking. We do not support a remote postgresql server yet. If REDIS present on the system AND connection to it through socket, change socket permissions to 770. librephotos user will be added to redis group.
- Ubuntu 20.04.x LTS (server)
- Ubuntu 21.04 (desktop)
sudo apt install git -y
Debian like distribution
Execute the following commands as root. Edit the begining of the script, and execute. This will create systemuser ‘librephotos’, creates directories, installs necessary software, creates database and automaGically writes some variables to librephotos-backend.env file.
sudo su cd git clone https://github.com/LibrePhotos/librephotos-linux.git cd librephotos-linux nano install-librephotos.sh
After changing the photos directory, you must edit either
/etc/nginx/sites-available/librephotos. There are four places where you have to update the location.
Installed systemd services:
librephotos-image-similarity.service librephotos-worker.service librephotos-backend librephotos-frontend
As root you can use
librephotos-cli build_similarity_index librephotos-cli clear_cache
Video are not playing
This is a permissions issue. The subdirectories need others read and execute permissions and the video files need others read permissions. This is true even if everything is owned by librephotos:librephotos
Next, take a look at the first steps after setup.