← Documentation home

openSUSE Leap

Install "Lomorage Photo Assistant" on openSUSE Leap

Currently we only support x86/AMD64 openSUSE Leap (current release).

1. Add lomoware source

sudo zypper addrepo --refresh https://lomoware.lomorage.com/rpm/opensuse/lomoware.repo
sudo zypper --gpg-auto-import-keys refresh

2. Install Lomorage

Like Rocky Linux, openSUSE Leap's base repos don't have vips at a usable version, so lomo-vips (built from source) is required, same as Debian/Ubuntu/Rocky.

sudo zypper install lomo-vips lomo-backend

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. Configuration parameter customization

User can use environment variable in "/opt/lomorage/etc/environment" to control configuration parameter as below. You can change based on your own setup.

3.1 Change mount directory

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

To specify the mount directory to be "/media/pi", add environment variable LOMOD_MOUNT_DIR=/media/pi in /opt/lomorage/etc/environment, such as

echo "LOMOD_MOUNT_DIR=/media/pi" | tee -a /opt/lomorage/etc/environment

this parameter should be the directory mount, not the sub-directory

Make sure the user has the r/w permission for above mount directory, this parameter should be the parent directory mounted, for example if it's mounted as "/media/pi/disk0", then you should use "/media/pi/".

3.2 HTTP Listen Port

Lomod listens on port 8000 by default. If it is conflict and you want to specify own listen port, you can add environment variable LOMOD_PORT_HTTP in /opt/lomorage/etc/environment. For example,

echo "LOMOD_PORT_HTTP=8888" | tee -a /opt/lomorage/etc/environment

Another option is cp /lib/systemd/system/lomod.service /etc/systemd/system/lomod.service and then edit "/etc/systemd/system/lomod.service" and change "ExecStart" directly to specify the parameters used (run /opt/lomorage/bin/lomod -h to check the parameters), and run sudo systemctl daemon-reload, then it will use "/etc/systemd/system/lomod.service" instead. "/lib/systemd/system/lomod.service" is expected to be overwritten when upgrade.

4. Run

Restart "Lomorage Photo Assistant":

sudo systemctl restart lomod