Contribute  :  Advanced Search  :  Site Statistics  :  Directory  :  Polls  :  ABOUT MUTAKU.com  :  Folding@Home  :  NerdcoreProductions.com  :  STORE  
Mutaku.com Fresh brewed daily
Welcome to Mutaku.com
Thursday, September 09 2010 @ 12:29 PM EDT
   

Gallery Remote Install Troubles : "nawk: error..."

TUTORIALS/GUIDESWe use Gallery2 quite a bit for our photos and accordingly use a handy tool called Gallery Remote to upload images to the albums. Under Linux and OSX, there aren't really any efficient ways that I know of to upload lots of photos at once. Under Windows you can use an explorer type plug-in in the uploads section. Gallery Remote is a nice little java application which can handle drag-and-drop image adding, multiple photo addition, addition of captions and changing names, and some other features such as saving login information for multiple accounts or galleries. However, I have had trouble installing Gallery Remote on all of my Linux boxes so far, so I will show you the results of my Googling below and what has worked.

From the Gallery Remote website:

Gallery Remote
Gallery Remote is a client-side Java application that provides users with a rich front-end to Gallery. This application makes it easier to upload images to your Gallery. Look at a screenshot.
Since Gallery Remote is a Java application, it requires you to have a Java Virtual Machine version 1.4 or later installed on your system. We have two versions of the installer, a large one that contains the JVM in it, and a small one that expects the JVM to be installed on your machine. When in doubt, download and install the large version. If you feel like living on the edge, you can try the small one first.

It is available for almost all platforms since it is Java based, and can be installed with a JVM of its own or without. I like to install with the JVM included just to save some headaches.

After navigating to the main site, here, download the version with the JVM for linux. It will give you a .bin file.

Change into the download directory and :
chmod +x GalleryRemote.1.5.Linux.VM.bin 


Running this file as is will work or not. Usually, as is the case on all of my Linux install attempts thus far, you will exit out with an error such as this:
Preparing to install...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...
nawk: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory
dirname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
/bin/ls: error while loading shared libraries: librt.so.1: cannot open shared object file: No such file or directory
basename: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
dirname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
basename: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
hostname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory


This appears to be an issue with the kernel and what the installer assumes is the default. So in order to get around this, we simply need to comment out the reference to the default kernel for the installer and the executable after installation and you should be set to go.

So to comment out the installer variable we do the following:

cp GalleryRemote.1.5.Linux.VM.bin GalleryRemote.1.5.Linux.VM.bin.original
cat GalleryRemote.1.5.Linux.VM.bin.original | sed "s/export LD_ASSUME_KERNEL/#xport LD_ASSUME_KERNEL/" > GalleryRemote.1.5.Linux.VM.bin


This comments out the kernel variable portion that is causing the problem with the installer. Execute it as follows:

./GalleryRemote.1.5.Linux.VM.bin


Follow the installer instructions and when it asks about the JVM, I usually say to install a specific one for the Gallery Remote, but that is up to you. The other option would be to point the installer to an existing installation you might have already.

Finally you will have a Gallery_Remote directory wherever you installed to, usually your home directory. We need to now do the same kernel variable modification on the executable and we are set. To do this change into that directory and execute the following (I am assuming your install is in your home directory):

cd /home/Gallery_Remote
cp Gallery_Remote Gallery_Remote.original
cat Gallery_Remote.original | sed "s/export LD_ASSUME_KERNEL/#xport LD_ASSUME_KERNEL/" > Gallery_Remote


And you can then execute the newly installed and functional (hopefully) Gallery Remote as follows:

./Gallery_Remote


Once this is working you can then go back and delete your copies if you would like:

cd (to your download directory)
rm GalleryRemote.1.5.Linux.VM.bin.original
cd /home/Gallery_Remote/
rm Gallery_Remote.original


Hope that helps you with any Gallery Remote install woes you may have been experiencing!

UPDATE (4.26.08):
I have found that normally I could only upload about 24 pictures at a time and then gallery remote upload would halt. I could then cancel and try to upload again a few seconds later and was again limited to about 24 until it stopped. To fix this, try setting your proxy under gallery remote preferences. I set mine to port 80 on my server running gallery remote and could then hit about 148 images. So almost a fix. Will update again once I have figured out a better solution.

Trackback

Trackback URL for this entry: http://www.mutaku.com/geeklog/trackback.php?id=20080103142231106

No trackback comments for this entry.
Gallery Remote Install Troubles : "nawk: error..." | 0 comments | Create New Account
The following comments are owned by whomever posted them. This site is not responsible for what they say.