Difference between revisions of "Gallery3"

From SME Server
Jump to navigationJump to search
Line 27: Line 27:
 
All resources are found through http://pkgs.org
 
All resources are found through http://pkgs.org
  
yum install SDL
+
Add the pkgs repository to yum configuration
mkdir ffmpeg
+
 
cd ffmpeg
+
  /sbin/e-smith/db yum_repositories set atrpms_stable repository \
  wget http://dl.atrpms.net/el5-i386/atrpms/stable/ffmpeg-0.6.1-42_git20110322.el5.i386.rpm
+
Name 'atrpms stable - EL5' \
  wget http://dl.atrpms.net/el5-i386/atrpms/stable/libavcodec52-0.6.1-42_git20110322.el5.i386.rpm
+
  BaseURL 'http://dl.atrpms.net/el5-$basearch/atrpms/stable' \
  wget http://dl.atrpms.net/el5-i386/atrpms/stable/libavdevice52-0.6.1-42_git20110322.el5.i386.rpm
+
EnableGroups no \
  wget http://dl.atrpms.net/el5-i386/atrpms/stable/libavfilter1-0.6.1-42_git20110322.el5.i386.rpm
+
GPGCheck yes \
  wget http://dl.atrpms.net/el5-i386/atrpms/stable/libavformat52-0.6.1-42_git20110322.el5.i386.rpm
+
  GPGKey http://ATrpms.net/RPM-GPG-KEY.atrpms \
wget http://dl.atrpms.net/el5-i386/atrpms/stable/libavutil50-0.6.1-42_git20110322.el5.i386.rpm
+
Visible no \
  wget http://dl.atrpms.net/el5-i386/atrpms/stable/libdc1394_22-2.0.2-11.el5.i386.rpm
+
  Exclude clamav,spamassassin,libselinux,perl-HTML-Parser,lm_sensors,\
  wget http://dl.atrpms.net/el5-i386/atrpms/stable/libfaac0-1.28-6.el5.i386.rpm
+
  perl-IO-stringy,perl-XML-Parser,razor-agents,libgcrypt,rpm-python,\
  wget http://dl.atrpms.net/el5-i386/atrpms/stable/libgsm1-1.0.13-2.el5.i386.rpm
+
  libxml2,zlib,gnupg,libxml2-python,yum,module-init-tools,rpm,gettext,\
  wget http://dl.atrpms.net/el5-i386/atrpms/stable/libmp3lame0-3.98.4-22.el5.i386.rpm
+
  librpm4,glib2,perl-libwww-perl,perl-Convert-ASN1,beecrypt,fetchmail,\
  wget http://dl.atrpms.net/el4-i386/atrpms/stable/libogg0-1.2.0-10.el4.i386.rpm
+
  libacl,libtool-ltdl,popt,libgpg-error,freetype,perl-MIME-tools,mutt,\
  wget http://dl.atrpms.net/el5-i386/atrpms/stable/libopencore-amrnb0-0.1.2-2.el5.i386.rpm
+
  gd,perl-TimeDate,librpm4.4 \
  wget http://dl.atrpms.net/el5-i386/atrpms/stable/libopencore-amrwb0-0.1.2-2.el5.i386.rpm
+
status disabled
  wget http://dl.atrpms.net/el5-i386/atrpms/stable/libpostproc51-0.6.1-42_git20110322.el5.i386.rpm
+
  wget http://mirror.centos.org/centos/5/os/i386/CentOS/libraw1394-1.3.0-1.el5.i386.rpm
+
  /sbin/e-smith/db yum_repositories set atrpms_testing repository \
  wget http://dl.atrpms.net/el5-i386/atrpms/stable/librtmp0-2.3-1.el5.i386.rpm
+
Name 'atrpms testing - EL5' \
wget http://dl.atrpms.net/el5-i386/atrpms/stable/libswscale0-0.6.1-42_git20110322.el5.i386.rpm
+
  BaseURL 'http://dl.atrpms.net/el5-$basearch/atrpms/testing' \
  wget http://dl.atrpms.net/el5-i386/atrpms/testing/libtheoradec1-1.1.1-13.el5.i386.rpm
+
EnableGroups no \
  wget http://dl.atrpms.net/el5-i386/atrpms/testing/libtheoraenc1-1.1.1-13.el5.i386.rpm
+
GPGCheck yes \
  wget http://dl.atrpms.net/el5-i386/atrpms/stable/libva-0.32.0.2_1-0.32.0-4_sds2.el5.i386.rpm
+
  GPGKey http://ATrpms.net/RPM-GPG-KEY.atrpms \
  wget http://dl.atrpms.net/el5-i386/atrpms/stable/libvorbis0-1.2.3-6.el5.i386.rpm
+
  Visible no \
  wget http://dl.atrpms.net/el5-i386/atrpms/stable/libvorbisenc2-1.2.3-6.el5.i386.rpm
+
  Exclude clamav,spamassassin,libselinux,perl-HTML-Parser,lm_sensors,\
  wget http://dl.atrpms.net/el5-i386/atrpms/stable/libx264_114-0.114-15_20110308.2245.el5.i386.rpm
+
  perl-IO-stringy,perl-XML-Parser,razor-agents,libgcrypt,rpm-python,\
  wget http://dl.atrpms.net/el5-i386/atrpms/stable/libxvidcore4-1.2.2-14.el5.i386.rpm
+
  libxml2,zlib,gnupg,libxml2-python,yum,module-init-tools,rpm,gettext,\
  wget http://dl.atrpms.net/el5-i386/atrpms/stable/libxavs1-0.1.51-2.el5.i386.rpm
+
  librpm4,glib2,perl-libwww-perl,perl-Convert-ASN1,beecrypt,fetchmail,\
  yum localinstall *
+
  libacl,libtool-ltdl,popt,libgpg-error,freetype,perl-MIME-tools,mutt,\
 +
  gd,perl-TimeDate,librpm4.4 \
 +
status disabled
 +
 +
  signal-event yum-modify
 +
 
 +
Install the ffmpeg. At the moment from editing the modules "libtheoraenc1" and "libtheoradec1" where not found in the stable reposorty and thereby installed from the testing.
 +
 
 +
  yum --enablerepo=atrpms_stable install libogg-1.1.3
 +
  yum --enablerepo=atrpms_testing install libtheoraenc1
 +
  yum --enablerepo=atrpms_testing install libtheoradec1
 +
  yum --enablerepo=atrpms_stable ffmpeg
  
 
== ibay ==
 
== ibay ==

Revision as of 20:26, 14 August 2011


Edit-find-replace.png Not reviewed:
This howto or contrib has not been reviewed and might contain code that could harm your installation. For more information on the review process have a look at the Development Review page.


Maintainer

Last updated: 25 March 2011
mailto:chris@noork.nl

Tested with:

  • Gallery 3.01
  • SME 8b6

Description

Gallery is an open source project with the goal to develop and support leading photo sharing web application solutions.

Prerequests

You need to define the following name/user/password:

  • gallery name for ibay: <gallery_ibay_name>
  • gallery name for mysql database: <gallery_db_name>
  • gallery username for mysql: <gallery_mysql_user>
  • password for <gallery_mysql_user>: <password>

Access rights to a shell with root

Image plugins

Install ImageMagic

yum install ImageMagick

Install ffmpeg

All resources are found through http://pkgs.org

Add the pkgs repository to yum configuration

/sbin/e-smith/db yum_repositories set atrpms_stable repository \
Name 'atrpms stable - EL5' \
BaseURL 'http://dl.atrpms.net/el5-$basearch/atrpms/stable' \
EnableGroups no \
GPGCheck yes \
GPGKey http://ATrpms.net/RPM-GPG-KEY.atrpms \
Visible no \
Exclude clamav,spamassassin,libselinux,perl-HTML-Parser,lm_sensors,\
perl-IO-stringy,perl-XML-Parser,razor-agents,libgcrypt,rpm-python,\
libxml2,zlib,gnupg,libxml2-python,yum,module-init-tools,rpm,gettext,\
librpm4,glib2,perl-libwww-perl,perl-Convert-ASN1,beecrypt,fetchmail,\
libacl,libtool-ltdl,popt,libgpg-error,freetype,perl-MIME-tools,mutt,\
gd,perl-TimeDate,librpm4.4 \
status disabled

/sbin/e-smith/db yum_repositories set atrpms_testing repository \
Name 'atrpms testing - EL5' \
BaseURL 'http://dl.atrpms.net/el5-$basearch/atrpms/testing' \
EnableGroups no \
GPGCheck yes \
GPGKey http://ATrpms.net/RPM-GPG-KEY.atrpms \
Visible no \
Exclude clamav,spamassassin,libselinux,perl-HTML-Parser,lm_sensors,\
perl-IO-stringy,perl-XML-Parser,razor-agents,libgcrypt,rpm-python,\
libxml2,zlib,gnupg,libxml2-python,yum,module-init-tools,rpm,gettext,\
librpm4,glib2,perl-libwww-perl,perl-Convert-ASN1,beecrypt,fetchmail,\
libacl,libtool-ltdl,popt,libgpg-error,freetype,perl-MIME-tools,mutt,\
gd,perl-TimeDate,librpm4.4 \
status disabled

signal-event yum-modify

Install the ffmpeg. At the moment from editing the modules "libtheoraenc1" and "libtheoradec1" where not found in the stable reposorty and thereby installed from the testing.

yum --enablerepo=atrpms_stable install libogg-1.1.3
yum --enablerepo=atrpms_testing install libtheoraenc1
yum --enablerepo=atrpms_testing install libtheoradec1
yum --enablerepo=atrpms_stable ffmpeg

ibay

Create ibay

Create a ibay for gallery through server-manager and after that issue the following commands on the server's shell:

mkdir /home/e-smith/files/ibays/<gallery_ibay_name>/html/var
chmod 755 /home/e-smith/files/ibays/<gallery_ibay_name>/html/var

set PHPBaseDir

db accounts setprop <gallery_ibay_name> PHPBaseDir /home/e-smith/files/ibays/<gallery_ibay_name>:/tmp:/usr/bin
signal-event ibay-modify <gallery_ibay_name>

create mysql database

mysqladmin -uroot create <gallery_db_name>
mysql <gallery_db_name> -uroot -e"GRANT ALL ON <gallery_db_name>.* TO <gallery_mysql_user>@localhost IDENTIFIED BY '<password>'"

gallery files

Download the latest version from Gallery

Copy the files/directories from the gallery3 into the ibay's html directory

Set all file to user www

chown -R www:www /home/e-smith/files/ibays/<gallery_ibay_name>/html/*

Change memory limits

Below commands will set the required settings for PHP to support running Gallery3.

db configuration setprop php MemoryLimit 128M
db configuration setprop php PostMaxSize 112M
db configuration setprop php UploadMaxFilesize 96M

expand-template /etc/php.ini 
sv t httpd-e-smith

Start gallery

Initial values

Go to <mysite>/<gallery_ibay_name> and fill in all the variables that you have used

Change Graphics settings

Go to "admin" --> "settings" --> "Graphics" and select "ImageMagick"

Upload foto and film

Success with it

Uninstall

Delete the content of the ibay (you wll also loose all uploaded content) and delete the ibay through server-manager

mysqladmin -uroot drop <gallery_db_name>
mysqladmin -uroot drop user <gallery_mysql_user>@localhost

Additional information