Custom Search

Friday, April 27, 2012

Solution tar: This does not look like a tar archive

Solution to untar tar.gz

Issue
-------
$ 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

Solution
-----------
$ 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)
VERSION = 11
PATCHLEVEL = 2

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.

Note:
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

1)
Download mysql-gui-tools-5.0r12-linux-x86_64.tar.gz from
http://ftp.sunet.se/pub/databases/relational/mysql/Downloads/MySQLGUITools/

http://ftp.sunet.se/pub/databases/relational/mysql/Downloads/MySQLGUITools/mysql-gui-tools-5.0r12-linux-x86_64.tar.gz


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


3)
Run mysql-query-browser and administrator panel

a)
$ ./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.

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

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

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

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


4)
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

server.py
--------------
from ZSI import dispatch
def test_method(name):
return "Hello " + name
print "Starting server..."
dispatch.AsServer(port=9300, rpc=True)

client.py
-------------
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
#python server.py
Starting server...

In terminal two run
#python client.py
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)


================================

http://uec-images.ubuntu.com/ <--- Main link


Ubuntu Server 9.10 (Karmic Koala)
=========================
http://cloud-images-archive.ubuntu.com/karmic/
http://cloud-images-archive.ubuntu.com/karmic/20110425/


Ubuntu Server 10.04 (Lucid Lynx)
=========================
http://uec-images.ubuntu.com/lucid/
http://uec-images.ubuntu.com/lucid/20120323/


Ubuntu Server 10.10 (Maverick Meerkat)
=============================
http://uec-images.ubuntu.com/maverick/


Ubuntu Server 11.04 (Natty Narwhal)
===========================
http://uec-images.ubuntu.com/natty/


Ubuntu Server 11.10 (Oneiric Ocelet)
===========================
http://uec-images.ubuntu.com/oneiric/


Ubuntu Server 12.04 (Precise Pangolin)
=============================
http://uec-images.ubuntu.com/precise/