Lychee Photo Manager is “A great looking and easy-to-use photo-management-system you can run on your server, to manage and share photos.” See the link above for screen shots. Here’s a script to create a TrueNAS Core 12.0 jail with Lychee and its dependencies installed:
Change to a convenient directory on your FreeNAS box and clone the repo with
https://github.com/danb35/freenas-iocage-lychee. Then change into the
freenas-iocage-lychee directory and create
lychee-config with your favorite text editor. Minimally, it needs to include:
JAIL_IP="192.168.1.79" DEFAULT_GW_IP="192.168.1.1" POOL_PATH="/mnt/tank"
The first two parameters should be self-explanatory; the third is the path to the root of your data pool. If you have more than one data pool, choose the one where you want the Lychee data files to live.
Once you’ve created the config file, run the script with
script lychee.log ./lychee-jail.sh. Note that it may take some time to run. You may want to consider running it in a tmux session, to avoid issues if you inadvertently disconnect while the script is running. When it finishes, it will tell you so:
Installation complete! Using your web browser, go to http://192.168.1.79 to log in Database passwords are saved in /root/lychee_db_password.txt
Do what it says, and browse to the IP address with your web browser. You should see this:
Click Next, and you should see this:
Scroll down and click Next to get this page:
Scroll down to click Next again, which will result in this page:
No edits need to be made here–the script has already created the database, created a database user with a secure password, and added this information to this configuration file. Scroll to the bottom of the page and click Install.
The next page will have lots of status information; all should have completed successfully. Click on the this page link.
This is where you’ll create your admin user–enter the desired username and password, and click Create Login. And you’re done with the installation. For more information on configuring and using Lychee, check out the Lychee docs.