nicopace / librephotos-linux

Here you can find the installation script for a local Linux install.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LibrePhotos installation script for Linux

Currently, these are in a early stage; some bugs may exist. If you find any, please log an issue

Contribution

These are community maintained scripts to allow for a local install. If you have implemented an improvement, please consider opening up a pull request.

Compatibility

  • Ubuntu 20.04.2 LTS (server)
  • Ubuntu 21.04 (desktop)

Pre-Installation

Install git:

sudo apt install git -y

Installation

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 /tmp/
git clone https://github.com/Seneliux/librephotos-linux.git
cd librephotos-linux
nano install-librephotos.sh
./install-librephotos.sh

Admin password will store in /tmp/ADMIN_PASS. After changing the photos directory, must edit one of the /etc/nginx/nginx.conf or /etc/nginx/sites-available/librephotos. There are three places alias /var/lib/librephotos.

Edit /etc/librephotos/librephotos-backend.env to store configuration variables, such as:

  • redis information In case you configured it with a password or are using a special path.
nano /etc/librephotos/librephotos-backend.env

Additional information

Installed systemd services:

librephotos-image-similarity.service
librephotos-worker.service
librephotos-backend
librephotos-frontend

librephotos-cli

Update database (firs time this already done by script)

/usr/lib/librephotos/bin/librephotos-upgrade

Create admin user as root with the following command (first time this already done by script).

/usr/lib/librephotos/bin/librephotos-createadmin <user> <email> <pasword>

As root you can use

librephotos-cli build_similarity_index
librephotos-cli clear_cache

TO DO

  • remote / local user permissions to write to the photos folder (samba, webdav, nextcloud, nfs)
  • android sync (client, synthing, webdav)

About

Here you can find the installation script for a local Linux install.

License:MIT License


Languages

Language:Shell 96.7%Language:Dockerfile 3.3%