Sunday, September 11, 2011

Implement Curo (Omniti-labs) tools (PostgreSQL Admins) using psql

Depsez has Started a New project called Curo, which is currently made for Unix/Linux and is in initial phase.
So, I thought to look at how it works and how normal user, who knows using psql, can benefit from it.

Before Installing Curo, user has to make sure, he has postgreSQL client: psql and following package installed on his Linux/Unix System:
1. Bash
2. dialog
If you have above required packages on your machine, then you can move for Curo installation.

Curo Installation is very simple. Following are the steps which can be use to install Curo on Unix/Linux System:
1. Download the Curo from Following link:
Above link will give you file similar to given below:
2. Untar the file using following command:
tar -xvf omniti-labs-curo-48a4f31.tar.gz
3. Copy omniti-labs-curo-48a4f31 to users home directory as given below:
cp omniti-labs-curo-48a4f31 ~/.curo
4. Now configure .inputrc and .editrc file as given below:
echo "\$include ~/.curo/docs/readline.inputrc" >>~/.inputrc
cat ~/.curo/docs/libedit.editrc >>~/.editrc
After installing Curo, you would be able to use F1-F8 keys in psql prompt. Some snapshot are given below: 1. Connect to PostgreSQL Database using psql client as given below:
psql -U postgres -h localhost -p 5432 -d postgres
2. Curo Setup Screen using F1 key, is given below:
Pressing / will give you following screen for configuring the Function Keys F2-F8.
2. After configuring your machine function Keys F2-F8, you will be able to use F2-F8 as a shortcut. My machine's F2-F8 Keys configuration is given in above screen shot. Some more snapshot is given below: F2: locks Details F3: Current Activities on Database and System Load Average. Screen shot given below:
F5: Locks Information. Screen Shot is given below:
For exit from any Function key, user can use ctrl+c

No comments:

Post a Comment