Howto install SPGM, Simple Picture Gallery Manager
Posted: 06 Nov 2007, 10:37
This short howto tells you howto install the lightweight gallery application SPGM, http://spgm.sourceforge.net/?lg=us
Start by downloading the latest version of spgm from http://spgm.sourceforge.net/?lg=us&id=download. (Chose the version that have an archive ending in .tar.gz)
Upload that archive to your Bubba. Placing it in /home/web.
With a user that has shell access. Log into Bubba via ssh and change to the /home/web folder.
Unpack the archive
Rename the unpacked folder to something more easily remembered.
Now the basic installation is done. Try browsing to http://bubba/spgm and you should be greeted by the default config and a sample gallery with one picture.
To create a new gallery, add a directory in /home/web/spgm/gal say fx "First test"
Enter the gal directory
Create the directory for the new gallery.
note the _ in the directory. This will automatically be changed to a space when presented.
If you now browse to http://bubba/spgm you should see the new gallery without any description nor any pictures.
To add a description of the newly created directory put a text file in the First_test directory named gal-desc.txt with a short description of the new gallery. Reload the browser and it should show the description.
To add pictures to the gallery. Upload any jpg, png or gif file to the First_test directory. And here comes the tricky part. For the image to show. It needs a thumbnail picture int the same directory. It should be named the same name as the original picture but with the prefix _thb_. So if your picture is named pic1.jpg the thumbnail should be named _thb_pic1.jpg
If you then want a description of each image you have to create the file pic-desc.txt in the gallery directory containing one line per image. Looking something like:
Further reading on how to configure a gallery can be done in the Install.txt file contained in the spgm archive.
Start by downloading the latest version of spgm from http://spgm.sourceforge.net/?lg=us&id=download. (Chose the version that have an archive ending in .tar.gz)
Upload that archive to your Bubba. Placing it in /home/web.
With a user that has shell access. Log into Bubba via ssh and change to the /home/web folder.
Code: Select all
cd /home/web
Code: Select all
tar zxvf spgm-1.4.7.tar.gz
Code: Select all
mv spgm-1.4.7 spgm
To create a new gallery, add a directory in /home/web/spgm/gal say fx "First test"
Enter the gal directory
Code: Select all
cd spgm/gal
Code: Select all
mkdir First_test
If you now browse to http://bubba/spgm you should see the new gallery without any description nor any pictures.
To add a description of the newly created directory put a text file in the First_test directory named gal-desc.txt with a short description of the new gallery. Reload the browser and it should show the description.
To add pictures to the gallery. Upload any jpg, png or gif file to the First_test directory. And here comes the tricky part. For the image to show. It needs a thumbnail picture int the same directory. It should be named the same name as the original picture but with the prefix _thb_. So if your picture is named pic1.jpg the thumbnail should be named _thb_pic1.jpg
If you then want a description of each image you have to create the file pic-desc.txt in the gallery directory containing one line per image. Looking something like:
Code: Select all
Tux.jpg | This is a caption for Tux's picture.<br />