Go to TogaWare.com Home Page. GNU/Linux Desktop Survival Guide
by Graham Williams
Duck Duck Go


Photo Gallery on the Internet

20190303 To make photos available on the Internet gallery2 may be useful to provide per user access and administration rights, including upload rights.

We may not want to include view counts on the photos and they can be removed from each photo by editting (as root) the file /usr/share/gallery2/modules/core/templates/blocks/ItemInfo.tpl to change:

  {if !empty($showViewCount) && $item.viewCount > 0}
  {if !empty($showViewCount) && $item.viewCount < 0}

You may also need to go into Admin and run the Maintenance task to delete the template cache to see the effect of the change.

The gallery may require quite a bit more php memory than the default which is often 8M. Edit /etc/php4/apache2/php.ini:

memory_limit = 32M

For debugging, visiting http://localhost/gallery/lib/support may be useful.

Note that the password to the admin account of gallery2 is stored as clear text in /etc/gallery2/config.php

Support further development by purchasing the PDF version of the book.
Other online resources include the Data Science Desktop Survival Guide.
Books available on Amazon include Data Mining with Rattle and Essentials of Data Science.
Popular open source software includes rattle and wajig.
Hosted by Togaware, a pioneer of free and open source software since 1984.
Copyright © 1995-2020 Togaware Pty Ltd. Creative Commons ShareAlike V4.