Photo Gallery with igal - online image gallery generator

From NAS-Central Buffalo - The Linkstation Wiki
Revision as of 11:58, 6 August 2006 by (Talk) (Photo Gallery with igal)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

by andre

Photo Gallery with igal

All you want is share your photos, but you don't want to install one of these bloated media servers? igal is for you!


All users

tar -xvzf igal-1.4.tar.gz
cd igal-1.4
mkdir -p /usr/local/bin
cp igal /usr/local/bin/igal
chmod 0755 /usr/local/bin/igal
mkdir -p /usr/local/man/man1
cp igal.1 /usr/local/man/man1/
cp mkdir -p /usr/local/lib/igal
cp README THANKS ChangeLog COPYING indextemplate.html slidetemplate.html tile.png igal.css /usr/local/lib/igal/

Debian users

apt-get install libjpeg-progs netpbm

If you want to conserve disk space, as you only need pnmscale from netpbm, proceed like in "Others" (PPC only) instead, afterwards run "apt-get install libjpeg-progs".

Others (PPC only)

tar -C / -xvzf libjpeg-binaries-ppc.tar.gz


  • Set up a custom instance of thttpd (the webserver shipping with the LS), as described in here. Advanced users might prefer to use [1] instead. We'll assume your server root is /mnt/share/www (LS1 style) in this example.
  • Create the shared photos directory
mkdir /mnt/share/www/photos
  • Protect the directory with a password (optional)
thtpasswd -c /mnt/share/www/photos/.htpasswd photos # enter a password when prompted
  • Copy photos into /mnt/share/www/photos, organize them into subdirectories if you want.
  • Set up a script that generates the galleries if necessary, on a daily basis. If your directory /mnt/share/photos is password protected, the subdirecories will inherit the password. See "man igal" for the options passed to the program.

echo '#! /bin/sh PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin DIR="/mnt/share/www/photos" for dir in $(/bin/ls -1 ${DIR}/ | /usr/bin/tr "\n" " "); do test -d $DIR/${dir} && /usr/bin/nice -n 19 /usr/local/bin/igal --bigy 480 -n -w 5 -d ${DIR}/${dir}/ test -d $DIR/${dir} && cp ${DIR}/.htpasswd ${DIR}/${dir}/ done' > /etc/cron.daily/igalAB chmod 0755 /etc/cron.daily/igalAB

  • If you want to create the galleries manually, run

whenever you want.