Archive for February 2008

how to drop default postgresql database from command line

February 16, 2008

sudo -u <user-name> dropdb <database-name>


Ubuntu tip: how to find uuid for your devices

February 16, 2008

A lot of the times , I need to find the UUID for my devices while running Ubuntu 7.10 linux on my box.
I found this  article very useful !

Ubuntu tip: how to move your existing /home to a new partition

February 16, 2008

Recently, I added a new partition to my ubuntu (7.10 -64bit version) box and wanted to move my /home partition to  this new partition.
That way, I could reformat my main partition and still get to keep /home partition intact. I came across this article which proved very helpful !

java.lang.UnsatisfiedLinkError during pulse installation on 64-bit ubuntu linux

February 14, 2008

I was trying to install pulse on my ubuntu linux (64 bit version) using the following command

> pulse-linux-gtk-x86$ ./pulse-install

I was getting the following error :

Launching Pulse installer…
Exception in thread “main” java.lang.UnsatisfiedLinkError: no swt-gtk-3347 or swt-gtk in swt.library.path, java.library.path or the jar file
at org.eclipse.swt.internal.Library.loadLibrary(
at org.eclipse.swt.internal.Library.loadLibrary(
at org.eclipse.swt.internal.C.<clinit>(
at org.eclipse.swt.internal.Converter.wcsToMbcs(
at org.eclipse.swt.internal.Converter.wcsToMbcs(
at org.eclipse.swt.widgets.Display.<clinit>(
at com.genuitec.pulse.client.javastrap.Pulse.main(

I tried the following command  with the same result (above error)

>  /pulse-linux-gtk-x86$ java -jar pulse-linux-gtk-x86.jar

I noticed my java was 64 bit version (by running the following command)

>  java -version
java version “1.6.0_03”
Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_03-b05, mixed mode)

I downloaded and installed a 32-bit jdk from sun’s site  (the following file)

Linux self-extracting file jdk-1_5_0_14-linux-i586.bin 47.35 MB

I installed the above mentioned 32 bit jdk in /home/user/sdks/jdk1.5 directory

and then ran the following command

>  /home/user/sdks/jdk1.5/bin/java -jar /home/user/downloads/pulse-installer/pulse-install

That successfully started the pulse installer for me !