You can either use the docker installation, or install using APT

Docker installation #

Please refer to lomo-docker for installation with docker image. You can either use the arm image “lomorage/raspberrypi-lomorage:latest” or amd64 image “lomorage/amd64-lomorage:latest” based on the host architecture.

APT installation #

Currently we only support x86/AMD64 Ubuntu 18.04.5 LTS (Bionic Beaver) and Ubuntu 20.04.1 LTS (Focal Fossa).

1. Add lomoware source #

sudo apt install -y ca-certificates python-certifi python3-certifi
sudo update-ca-certificates --fresh
wget -qO - https://lomoware.lomorage.com/debian/gpg.key | sudo apt-key add -

If you are using Bionic:

echo "deb [arch=amd64] https://lomoware.lomorage.com/debian/bionic bionic main" | sudo tee /etc/apt/sources.list.d/lomoware.list

If you are using Focal:

echo "deb [arch=amd64] https://lomoware.lomorage.com/debian/focal focal main" | sudo tee /etc/apt/sources.list.d/lomoware.list

then run:

sudo apt update

2. Install Lomorage #

You need at least lomo-vips, lomo-base-lite and lomo-backend installed.

  • lomo-backend: mandatory, Lomorage service backend

  • lomo-web: optional, Lomorage web application

  • lomo-base-lite: optional, hard drive mount tool, rsync, jq etc

  • lomo-vips: mandatory, lomorage vips clone. (A fast image processing library with low memory needs), used by lomo-backend

sudo apt install lomo-base-lite lomo-vips lomo-backend lomo-web -y

Make sure the user can sudo without password, if not, execute the following command to add it:

echo "$USER ALL=(ALL:ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/$USER

3. Change mount directory #

You may need to specify the mount directory if the USB drive is not mounted in “/media” directory.

For example if the mount directory is “/media/hdd/disk0”, you need to specify the mount directory to be “/media/hdd”, modify ExecStart in “/lib/systemd/system/lomod.service”, and add parameter “–mount-dir” as below, this parameter should be the directory mount, not the sub-directory

ExecStart=/opt/lomorage/bin/lomod -b /opt/lomorage/var --mount-dir /media/hdd  --max-upload 1 --max-fetch-preview 3

Make sure the user has the r/w permission for the “mount-dir” set above, this parameter should be the parent directory mounted, for example if it’s mounted as “/media/hdd/disk0”, then you should use “/media/hdd/”.

4. Run #

Restart Lomorage service:

# restart lomo-backend
sudo systemctl restart lomod

# restart lomo-web
sudo systemctl restart lomow

# restart lomo-frame
sudo service supervisor restart
comments powered by Disqus