Koozali.org: home of the SME Server

Gallery 1 or 2 with SME 7

kokomi

Gallery 1 or 2 with SME 7
« on: July 14, 2006, 01:22:11 AM »
Does anyone have an automated install script to install Gallery, or perhaps keystroke by keystoke instructions on SME 7.0 rc3?
Thanks alot.

Ken

blockbuster

Gallery 1 or 2 with SME 7
« Reply #1 on: July 14, 2006, 10:27:55 AM »
I have installed it with the following how to:

http://www.maripositas.org/index.php/SME-Server:GallerySubversion

Please give it a try and post me comments if you find any problems.

kokomi

Gallery 1 or 2 with SME 7
« Reply #2 on: July 15, 2006, 12:11:15 AM »
Thank you.

Offline genzil

  • **
  • 51
  • +0/-0
    • http://www.tuxx.org.uk
Gallery 1 or 2 with SME 7
« Reply #3 on: July 16, 2006, 01:59:08 PM »
I have a problem with that howto.

First, you are installing from the code repository.  Is it not better to install from the stable releases.  Sure it's harder to upgrade, but it's also a lot safer than running some potentialy buggy software.

Second, because you are installing from source you then need to install subversion.  Subversion is not needed in the running of gallery and is only installed so that you can get gallery.

Simply put I think you have the incorrect approach to installing gallery.
Smile :-)......

Offline arnoldob

  • *
  • 183
  • +0/-0
Gallery 1 or 2 with SME 7
« Reply #4 on: July 17, 2006, 09:40:17 PM »
It's not hard to do the install w/o SVN

Get the tarball:
http://codex.gallery2.org/index.php/Gallery2:Download

RTFM:
http://codex.gallery2.org/index.php/Gallery2:How_do_I_Install_Gallery2

It has a very detailed install how-to, complete with linux commands. I installed the gallery tar into an ibay html directory and placed the g2data directory in the files directory for the same ibay.
Tampa, FL USA

Offline genzil

  • **
  • 51
  • +0/-0
    • http://www.tuxx.org.uk
Gallery 1 or 2 with SME 7
« Reply #5 on: July 17, 2006, 10:03:36 PM »
My point exactly
Smile :-)......

sad111

Install script
« Reply #6 on: July 19, 2006, 12:30:52 PM »
I just finished updateing an install script for gallery-2.1.1a-full.tar.gz.
It works with 6.0 to 7.0 final I have tryed it in both versions.
Please let me know if anyone finds any problems with script?

Ok now for the good stuff.
download from www.linux-one.org/gallery-final/gallery-install.tar.gz
put in / extract with tar -xvzf gallery-install.tar.gz
cd gallery-install
sh gallery_install.sh
follow on screen prompts.
also you do not have to create a database before installation.
make sure you create ibay first thou.

alienjones

Gallery 1 or 2 with SME 7
« Reply #7 on: July 20, 2006, 10:08:20 AM »
I'm not sure what all the fuss is over a Gallery install on SME 7.0. I installed the current version by downloading the software from menalto into an Ibay and using the instructions that came with it.

The only possible problem I can see is in creating the database. Some people insist on using a GUI frontend for MYSQL but really, a 2 minute search on the Internet turns up instruction for the command line commands to create a database and a user.  

The rest of the install is a no brainer. :-)  The issue is that SME is NOT a GUI OS at the configuration level. If you are going to install applications in it, you don't have much choice but to learn how to command line instructions work and use 'em.

After a while you discover it sharpens your short term memory and enhances your confidence to manage the server yourself. Pretty much an essencial requirement for a working SME system administrator.

AJ

DeanB

Re: Install script
« Reply #8 on: July 25, 2006, 05:03:17 PM »
Quote from: "sad111"
I just finished updateing an install script for gallery-2.1.1a-full.tar.gz.
It works with 6.0 to 7.0 final I have tryed it in both versions.
Please let me know if anyone finds any problems with script?


What am I doing wrong?    I'm assuming I missed something fundamental.
  Thanks for reading this post.
Dean

7.0 Final, no additional mods.

Information bay name = gallery  
Description = Network Picture Gallery
Group = Admin
User access via file sharing or user ftp Write = group, Read = everyone
Public access via web or anonymous ftp = Entire Internet
Execution of dynamic content (CGI, PHP, SSI) = enabled

[root@deanb ~]# wget http://www.linux-one.org/gallery-final/gallery-install.tar.gz
09:44:20 (43.29 KB/s) - gallery-install.tar.gz' saved [12897751/12897751]

[root@deanb ~]# tar -xvzf gallery-install.tar.gz
gallery-install/
gallery-install/gallery2_install/
gallery-install/gallery2_install/gallery-2.1.1a-full.tar.gz
gallery-install/gallery_install.sh
gallery-install/rpms/
gallery-install/rpms/netpbm-9.24-9.72.2.i386.rpm
gallery-install/rpms/netpbm-progs-10.25-2.EL4.2.i386.rpm
gallery-install/rpms/netpbm-progs-9.24-9.72.2.i386.rpm
gallery-install/rpms/netpbm-10.25-2.EL4.2.i386.rpm
gallery-install/rpms/libtiff-3.5.7-2.i386.rpm
gallery-install/rpms/jhead
gallery-install/rpms/netpbm-9.24-9.73.4.legacy.i386.rpm
gallery-install/rpms/netpbm-progs-9.24-9.73.4.legacy.i386.rpm


# cd gallery-install
[root@deanb gallery-install]#
[root@deanb gallery-install]#sh gallery_install.sh
========================================================
= Gallery Installation Script                           =
=                                                      =
= This script will install Gallery in an ibay          =
= on your system.                                      =
=                                                      =
= No express or implied warranties are provided and its=
= usage is at your own risk.                           =
=                                                      =
= If you feel confortable with the above then press    =
= enter if not pres Ctrl+C to abort the installation   =
= script.                                              =
=                                                      =
========================================================
 Please choose I-Bay Name
 IBay |gallery
Using install ibay as specified on command line = "gallery"
Installing RPMS
gallery_install.sh: line 107: cd: /gallery-install: No such file or directory
Preparing...                ########################################### [100%]
   1:netpbm                 ########################################### [100%]
Preparing...                ########################################### [100%]
   1:netpbm-progs           ########################################### [100%]
cp: cannot stat /gallery-install/rpms/jhead': No such file or directory
chmod: cannot access /usr/bin/jhead': No such file or directory
gallery_install.sh: line 118: cd: /gallery-install: No such file or directory
Checking DataBase
 DataBase_Name|pictures
Database = "pictures" does not exist
Creating Database
 DataBase|photodb
 Database_User|admin
 Database_Password|password123
cp: cannot stat ./gallery2_install/gallery-2.1.1a-full.tar.gz': No such file or directory
tar: ./gallery-2.1.1a-full.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
gallery_install.sh: line 151: cd: gallery2: No such file or directory
mv: when moving multiple files, last argument must be a directory
Try mv --help' for more information.
gallery_install.sh: line 155: cd: html: No such file or directory
chmod: cannot access /home/e-smith/files/ibays/gallery/html/g2data': No such file or directory
Allow gallery to use jhead from an iBay
 Please goto http://www.deanb/gallery
 and finish setup
[root@deanb gallery-install]#

alienjones

Gallery errors
« Reply #9 on: July 25, 2006, 10:47:28 PM »
Jhead is an essencial component for Gallery and it doesn't seem to have been installed. Use yum to install it and run the script again.

If it still fails, download the Gallery install direct from menalto and run it. The bit that would have hung you up is the database creation. That's done now so installing the latest from Menalto will be painless.

You might need to install a couple of dependent packages, check the program specs and see if you already have them. If not, let yum be your friend. Just type yum for commands.

sad111

DeanB
« Reply #10 on: July 26, 2006, 11:25:48 AM »
Where did you extract the files?
did you extract the files in the root path / not /root?
That is the only time I have seen this problem.
I tryed to make the script work from anywhere but for some reason
if you extract to another folder it doesent work properly.
Please let me know if this helps.

P.S so if you do ls on / path you should see /etc /home /sbin /gallery-install
etc.

sad111

Modified script
« Reply #11 on: July 30, 2006, 05:59:55 AM »
Ok I modified the script to be less error prone.
Please let me know if it's better now?
now it doesn't matter where you extract to it will fix things for you.


Thanks.

DeanB

Gallery 1 or 2 with SME 7
« Reply #12 on: July 31, 2006, 08:57:12 PM »
Quote
Please let me know if it's better now


Installed successfully!   Works like a champ!
Thank you, thank you!  
 :-D

Regards,
Dean