kensanata / sitelen-mute

a static image gallery creator
https://alexschroeder.ch/software/Sitelen_Mute
GNU General Public License v3.0
75 stars 7 forks source link

How to use this script? #23

Open faaafo opened 3 years ago

faaafo commented 3 years ago

Get the gallery script

cd ~/src/scripts/
git clone git@github.com:kensanata/sitelen-mute.git

Usage

Set the initial environment variables

mkdir "/var/tmp/my_web_sitelen_mute_photo_album"
SOURCE_DIRECTORY="$HOME/Pictures/stilllifes"
DESTINATION_DIRECTORY="/var/tmp/my_web_sitelen_mute_photo_album"

Generate all the static files with ./sitelen-mute

~/src/scripts/sitelen-mute/sitelen-mute $SOURCE_DIRECTORY $DESTINATION_DIRECTORY

Results:

Fatal error:
output dir '/var/tmp/my_web_sitelen_mute_photo_album/' exists, but doesn't look like a sitelen-mute dir

Guessing another destination solves the problem

~/src/scripts/sitelen-mute/sitelen-mute $SOURCE_DIRECTORY /tmp/foo

Results:

Fatal error:
Missing 7z or zip command

Guessing skipping zip solves the problem

~/src/scripts/sitelen-mute/sitelen-mute $SOURCE_DIRECTORY /tmp/foo -d

Results:

Fatal error:
output dir '/tmp/foo/' exists, but doesn't look like a sitelen-mute dir
paternal commented 3 years ago

Hello, same problem here: I cloned the repository, and installed the required dependencies (debian packages and Perl modules), but when I run it, I get:

$ ~/tmp/sitelen-mute/script/sitelen-mute $SOURCE $DEST -i -c txt -t -d -j5 -k
Failed to find share dir for dist 'App-sitelenmute' at /home/louis/tmp/sitelen-mute/script/sitelen-mute line 374.

It would be nice to document the installation and basic usage instruction.

PS: It's great to see that (formerly) fgallery got a new maintainer! Congrats, and thank you!

-- Louis

paternal commented 2 years ago

For those unfamiliar with Perl (like me), here is how I managed to (locally) install it:

  1. Install cpanminus. On Debian:

    sudo apt install cpanminus
  2. Now you can locally install whatever Perl module you want (dependencies are automatically installed as well):

    cpanm App::sitelenmute
  3. A binary is installed in ~/perl5/bin. Add this repository to your path (in your .bashrc or .wathever-rc):

    export PATH="${PATH}:~/perl5/bin"

Hope this helps!