Custom Search

Friday, April 27, 2012

Solution tar: This does not look like a tar archive

Solution to untar tar.gz

$ tar -xzf  file.tar.gz
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Exiting with failure status due to previous errors

$ gzip -d file.tar.gz
This command will create file.tar

Then do
$ tar -xf file.tar

Monday, April 16, 2012

How to Check Service Pack Level in SLES

# cat /etc/SuSE-release
SUSE Linux Enterprise Server 11 (x86_64)

Friday, April 13, 2012

solution unable to execute gcc: No such file or directory

This is happening when pip is trying to install the
python packages that require a C
compiler to install. How to install dependencies is
dependent upon the linux distribution you are using.

On debian and ubuntu
# apt-get install python-dev

then try the pip install again.
If that didn't work, try

# apt-get build-dep package-name

then try the pip install once more.

pip is trying to install a package from source and
so it is trying to compile C code with gcc but you
don't have the compiler installed.

Thursday, April 5, 2012

How to MySQL Query Browser on CentOS 6

CentOS 6 How to Install MySQL Query Browser

Download mysql-gui-tools-5.0r12-linux-x86_64.tar.gz from

Extract it
# tar -xzf mysql-gui-tools-5.0r12-linux-x86_64.tar.gz
# cd mysql-gui-tools-5.0

Run mysql-query-browser and administrator panel

$ ./mysql-query-browser
Error starting ./mysql-query-browser.
The actual installation path of mysql-query-browser is different from the
expected one. Please run ./mysql-query-browser --update-paths (as the root
user, if needed) to have the installation directory updated.

Give current directory (.) as --update-paths

$ ./mysql-query-browser --update-paths .
Updating mysql-query-browser installation paths...

c) To Run mysql-query-browser
$ ./mysql-query-browser

d) To run administrator panel
$ ./mysql-administrator

Using "Custom Application launcher" we can create a shortcut for mysql-query-browser.
In "Custom Application launcher" give ths commnad "sh /full_path/mysql-query-browser" or "sh /full_path/mysql-administrator"

Wednesday, April 4, 2012

ZSI python simple example
from ZSI import dispatch
def test_method(name):
return "Hello " + name
print "Starting server..."
dispatch.AsServer(port=9300, rpc=True)
from ZSI.client import Binding
b = Binding(url='http://localhost:9300')
name = "saju"
print "Output : ", b.test_method(name)

Open two terminals

In terminal one run
Starting server...

In terminal two run
Output : Hello saju

Tuesday, April 3, 2012

eucalyptus instance remains in pending status solutions

IF instance status showing Pending and you can see error "qemu: linux kernel too old to load a ram disk" in log files under /var/log/libvirt/qemu/, then that is the issue of image. So try new image

I could provision VM using following images

1) ubuntu-10.04-server-cloudimg-amd64.tar.gz <====
This image was working with Eucalyptus 2.0.3 (Ubuntu 11.04)

================================ <--- Main link

Ubuntu Server 9.10 (Karmic Koala)

Ubuntu Server 10.04 (Lucid Lynx)

Ubuntu Server 10.10 (Maverick Meerkat)

Ubuntu Server 11.04 (Natty Narwhal)

Ubuntu Server 11.10 (Oneiric Ocelet)

Ubuntu Server 12.04 (Precise Pangolin)