Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use this script? #23

Open
faaafo opened this issue Dec 29, 2020 · 2 comments
Open

How to use this script? #23

faaafo opened this issue Dec 29, 2020 · 2 comments

Comments

@faaafo
Copy link

faaafo commented Dec 29, 2020

Get the gallery script

cd ~/src/scripts/
git clone [email protected]: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
Copy link

paternal commented Aug 2, 2021

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
Copy link

paternal commented Nov 14, 2021

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants