Publish Photos with Pygmyfoto on Raspberry Pi
A Raspberry Pi-based server is perfectly capable of sharing photos on the Web. But instead of deploying Gallery, Piwigo, or any other heavyweight photo publishing application, you might want to opt for something nimble like Pygmyfoto that offers a straightforward way to publish photos as a continuous roll. The application allows you to give a brief description and assign tags for each published photo. In addition to that, Pygmyfoto automatically processes and displays key EXIF data (exposure, aperture, and ISO), adds a link to the full-size version of the photo, and generates a map URL. The latter lets you view the exact place where the photo was taken using the OpenStreetMap service (provided the photo has been geotagged). Pygmyfoto features a few creature comforts, including the search by tags functionality, rating capabilities, and simple view statistics.
The Pygmyfoto installation on Raspberry Pi consists of a few relatively simple steps. First of all, you need to install the required packages. To do this, run the following command on Raspberry Pi:
sudo apt-get install apache2 php5 sqlite3 php5-sqlite imagemagick libimage-exiftool-perl git
Switch then to the /var/www directory and clone Pygmyfoto’s GitHub repository:
sudo git clone https://github.com/dmpop/pygmyfoto.git
Use the sudo chown www-data:www-data -R pygmyfoto command to change the directory’s owner and group.
Switch to the pygmyfoto directory, open the phpliteadmin.config.php file in a text editor, and replace the default password by editing the $password = “admin”; line. Modify the default values in the config.php file, if necessary.
Add photos to the pygmyfoto/photos directory, run the ./pygmyfoto.sh command in the terminal, and provide the required info.
Point the browser to http://127.0.0.1/pygmyfoto (replace 127.0.0.1 with the actual IP address or domain name of your server) to access Pygmyfoto.
To access and manage the pygmyfoto.sqlite database, make it writable using the sudo chmod 600 pygmyfoto.sqlite command. Point then the browser to http://127.0.0.1/pygmyfoto/phpliteadmin.php and log in using the password specified in the phpliteadmin.config.php file.