Showing posts with label ubuntu. Show all posts
Showing posts with label ubuntu. Show all posts

Saturday, August 7, 2010

Google Web Tool Kit on 64 bit Ubuntu OS

I see many posts abut trying to run Google Web Toolkit in a 64 bit Linux environment, the toolkit seems to be trying
to use 32 bit libraries when automatically starting Mozilla for testing. 
 
The error looks something like this...
 
** Unable to load Mozilla for hosted mode **
java.lang.UnsatisfiedLinkError: /opt/app/eclipse/plugins/org.eclipse.platform_3.5.0_155965261/
plugins/com.google.gwt.eclipse.sdkbundle.linux_1.7.1.v200909221731/gwt-linux-1.7.1/
mozilla-1.7.12/libxpcom.so:
libstdc++.so.5: cannot open shared object file: No such file or directory
  
My solution to this was to force install a 32bit library (libstdc++5.so) into my 32 bit Ubuntu OS.
 
sudo dpkg -i --force-architecture ./libstdc++5_3.3.6-17ubuntu1_i386.deb
 
GWT should now be able to start up using the Mozilla libraries.  Good luck! 


Monday, June 22, 2009

Homegrown Ubuntu Backups

sbackup on Ubuntu is a nice backup utility, but I needed to copy my backup files across network to a Windows server with a 1TB external drive formatted in FAT32. What sbackup needed was a way to samba mount my external drive, a way to break up files larger than 4GB, and to breakup the backups into nice size chunks that can be copied nicely over my network.

Here's my quick script to backup my /home dir.

#!/bin/sh

BACKUP_DIR=/home/robert

DATESTAMP=`date '+%Y%m%d'`
echo "Backing up Copernicus laptop..."

ls -1 $BACKUP_DIR | while read dir
do
echo "Backing up $dir"
TARFILENAME="${dir}_${DATESTAMP}"
tar cvpjf /var/backup/local_backups/backup_${TARFILENAME}.tar.bz2 --exclude=*.log --exclude=lost+found $BACKUP_DIR/$dir
split -b4GB /var/backup/local_backups/backup_${TARFILENAME}.tar.bz2
done


sudo smbmount //192.168.0.122/copernicus/backup /mnt/backup -o username=YYY,password=XXX

mkdir -p /mnt/backup/backup_${DATESTAMP}

mv /var/backup/local_backups/backup_*_${DATESTAMP}.tar.bz2* /mnt/backup/backup_${DATESTAMP}
echo "Finished backing up Copernicus laptop..."
exit 0

Friday, June 13, 2008

NetBeans 6.1 Install Fun on Ubuntu 8.04

I just worked through a nagging little assertion error during a NetBeans 6.1 install to Ubuntu 8.04. Hopefully this helps someone.

First I made sure that I had Java 6 downloaded and installed on my 64 bit Ubuntu 8.04 OS.

I noticed the install script scans my hardware for jvms as early as 1.5. Here's the section of netbeans-6.1_ml-linux.sh that contains that information...

setJavaCompatibilityProperties_0() {
JAVA_COMP_VERSION_MIN="1.6.0_03"
JAVA_COMP_VERSION_MAX=""
JAVA_COMP_VENDOR=""
JAVA_COMP_OSNAME=""
JAVA_COMP_OSARCH=""
}

Notice I changed JAVA_COMP_VERSION_MIN to 1.6XXX. With the default settings the NetBeans install was picking up 1.5. I was getting Assertion errors and after using the sed option in this thread a blank welcome screen. After changing JAVA_COMP_VERSION_MIN the installer picked up 1.6 and ran fine. W00t! W00t!