Gallery 2.x virtual machine (vmware appliance)

cottley

Joined: 2006-08-04
Posts: 4
Posted: Fri, 2006-08-04 10:49

Is there any interest in a Gallery2 virtual machine (which would run in vmware player/server)? I used Ubuntu server 6.06, their LAMP installation, added ssh (for remote admin) and ftp (for non-web based image uploads) as well as configured all the modules (except the nokia one) to work. I was looking for a VM image when I first wanted to try Gallery2, so now that I've made one I'm willing to share it.

It's about 402MB zipped and 1.1GB unzipped, so I don't know how I'm going to share it yet, but if there's interest we'll figure it out.

Christopher.

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Fri, 2006-08-04 11:46

This is something that i've been looking into doing myself, but never found the time. I even had a plan, at one stage, to get it submitted to the VMware Appliance Challenge. I would love to have a look at it! email me

with a download link, and I'll grab it. If we decide we want to share that with the rest of the community, we will find hosting space for it so your personal accounts won't suffer.


h0bbel - Gallery Team
If you found my help useful, please consider donating to Gallery
http://h0bbel.p0ggel.org

 
cottley

Joined: 2006-08-04
Posts: 4
Posted: Sat, 2006-08-05 20:24

I have no personal hosting space that can have a 400MB file. All the large free file hosts I looked at let you upload the file, but limited the download to 300MB at a time. The easiest thing I could do was use Bittorrent. I have the file at http://www.mininova.org/tor/387630 so it can be downloaded (hope it works).

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Sun, 2006-08-06 22:12

Got it, and figured that the username/password would be gallery2/gallery2. But I do think I'm going to need the root password as well?

Also, the iso you used to install ubuntu from should have been removed before you distributed it. Minor, but I just wanted to let you know.


h0bbel - Gallery Team
If you found my help useful, please consider donating to Gallery
http://h0bbel.p0ggel.org

 
cottley

Joined: 2006-08-04
Posts: 4
Posted: Mon, 2006-08-07 00:30

Hi h0bbel,

Yes, I must admit that I didn't remember to remove the CD source from the apt-sources list. Doh. I was more concerned if I could get it to you guys at all. Heh. One more mistake I made. :(. The ftp server is enabled and configured, but you need to enable writing for it to allow the uploads in /etc/vsftpd.conf (uncomment write_enable=YES). *arg*. To make it a bit nicer before you re-distribute you can also put the following line just before exit 0 in your /etc/rc.local file and it'll print a nice URL message on boot of where to go to see the gallery.

ifconfig | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print "* Open a web browser at http://" $1 "/ to access the Gallery" }'

The admin password to the gallery is admin/admin (in case someone reading this thread happens to wonder).

Ubuntu is designed not to have a root password. It confuses most Linux folk accustomed to root having a password. Instead, you have accounts that can call sudo, use their password and then execute the command as if they were root. So if I logged in as gallery2 and executed,

Quote:
sudo shutdown -h now

And entered the gallery2 password from the resulting prompt then the machine would shut down because gallery2's account is in the sudoer's list.

For persons who don't want to keep sudo-ing all the time and want a root prompt:

Quote:
sudo su

should do the trick. If I was gallery2 when I executed this, I would have entered gallery2's password and it would have worked.

Christopher.

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Mon, 2006-08-07 12:28

Ah, I didn't think that far. We are currently looking into creating our own setup for this, and yours is a good help on the way. Not sure if we end up using Ubuntu or not, that depends on how small we can manage to make this. Thanks for getting us kickstarted on this again though. :)


h0bbel - Gallery Team
If you found my help useful, please consider donating to Gallery
http://h0bbel.p0ggel.org

 
cottley

Joined: 2006-08-04
Posts: 4
Posted: Wed, 2006-08-09 10:34

Well, remember that all of the modules are configured, so it's kinda big, but not above the average size for a LAMP virtual machine. I picked Ubuntu because the updates are really easy (apt-get update, apt-get upgrade) once all Gallery2's dependencies (GD, Imagamagick etc.) are installed using the apt system. I must admit that I was going more for ease of maintainability than size.

I noticed that when copying the VM you might not have eth0 (the network) activated. This is due to the way ubuntu-server ties the ethernet devices to mac addresses. You can fix this using a small script I found at http://www.vmware.com/community/thread.jspa?threadID=46069&tstart=0. Save the script (for example "fixmac") and put into /usr/sbin/ on your gallery2 vm. Execute "fixmac" as root and reboot the gallery2 vm.

---- Start Script ----

mac=`ifconfig -a | grep "HWaddr" | cut -d " " -f 11`
echo "eth0 mac $mac arp 1" > /etc/iftab

---- End Script ----

I think you should also be able to just comment out any incorrect eth0 entry in the /etc/iftab , reboot and that would also work.

Christopher.

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Wed, 2006-08-09 11:00

Yeah, the only interface that was available was lo :)

Either way, you got us started on doing something "official" with a Gallery Appliance, we'll see what distro we choose and how we end up distributing/managing it.


h0bbel - Gallery Team
If you found my help useful, please consider donating to Gallery
http://h0bbel.p0ggel.org

 
neo314

Joined: 2005-07-31
Posts: 28
Posted: Wed, 2006-08-09 11:32

if necessary i can host this file as i currently have over 1.6tb of bandwith usage and a fair bit of diskspace going to waste. if this is what you are after, please let me know

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Wed, 2006-08-09 21:46

Thanks for the offer, but I don't think we'll need that. Most likely we'll host it on sf.net anyway.


h0bbel - Gallery Team
If you found my help useful, please consider donating to Gallery
http://h0bbel.p0ggel.org

 
dc2447

Joined: 2002-09-22
Posts: 130
Posted: Fri, 2006-08-18 21:52

I'd suggest that vmware isn't the way to go but rather a live cd would be a better approach.

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Fri, 2006-08-18 23:40

The complexity of creating a livecd might prove to hard, especially since we then have to support much more differentiated hardware and there is an issue with saving the g2data. I don't really see any compelling arguments why a LiveCD would be better, but feel free to enlighten me.


h0bbel - Gallery Team
If you found my help useful, please consider donating to Gallery
http://h0bbel.p0ggel.org

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Tue, 2006-08-29 18:15

Actually, the rPath linux the appliance is based on *can* generate a LiveCD and there *should* be one on the site. Of course, it is *much* harder to be sure it works, since there is such a huge variety of hardware. Or maybe it was an install CD? I'll check it out.
_________________________________
Support & Documentation || Donate to Gallery || My Website

 
dc2447

Joined: 2002-09-22
Posts: 130
Posted: Tue, 2006-08-29 18:44

The whole point of Live CD's is that they will support all hardware, it is pretty much the point.

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Wed, 2006-08-30 18:57

What h0bbel was saying is that we would need to find a solution that did not involve us maintaining the non-gallery portions of a livecd. Ie, we would take an already existing and working livecd and place gallery on top of it.

Of course the point of a live cd is to support tons of hardware, but that also brings in *tons* of different problems which can bring in *tons* of support issues and *tons* of problems, issues and bugs to resolve. With a VMware image, the "environment" the appiance in is virtually fixed at a certain set of hardware, so in *theory* most of the problems that arrise will be gallery based and not the OS.

Do you want the Gallery support and dev team to waste even more time supporting something that is far, far off tangent from gallery? I know I don't. If I were interested in LiveCDs I would be part of a team *doing* LiveCDs :)
_________________________________
Support & Documentation || Donate to Gallery || My Website

 
dc2447

Joined: 2002-09-22
Posts: 130
Posted: Wed, 2006-08-30 19:25
Quote:
Do you want the Gallery support and dev team to waste even more time supporting something that is far, far off tangent from gallery?

Yeah, because that is exactly what I said.

Get a grip FFS

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Wed, 2006-08-30 22:19

Chill down, no need to respond like that. But in essence, the maintenance involved with doing this as a LiveCD would be too much for us to handle.


h0bbel - Gallery Team
If you found my help useful, please consider donating to Gallery
http://h0bbel.p0ggel.org

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Thu, 2006-08-31 23:01

Sounds like you'd be perfect for maintaining a livecd! Wanna join the team and help us?
_________________________________
Support & Documentation || Donate to Gallery || My Website

 
Yuan

Joined: 2003-12-03
Posts: 144
Posted: Fri, 2006-10-20 20:32

As far as hosting is concerned, VMWare seems to be happy to host any community appliance. And even though VMWare doesn't encourage it, there is a way to link directly to an individual appliance.