Showing posts from August, 2011

My Conky conf file

Updated - Weather forecast included

Conky is a well knwon, light-weight system monitor for X. It is highly customizable and you can use it to display useful information in your desktop. The configuration file can be found in ~/.conkyrc.

The package for Ubuntu can be found in the software control centre or type sudo apt-get install conky
This is a print screen of how I use it.

curl, tail and awk packages are used in the example above. If conky fails, check if you have them installed.

I have included my conf file below. Advanced readers should give a look in the links below to modify the conf file according to their needs. Official site - Variables info - Configuarion info -
To use the weather forecast you need to go here, to ubuntuforums, and follow the instructions according to your needs.

In a few words you' ll need to find your location in accuweather and …

How to find your external IP from terminal

Hi there Linux fans once more.

If you don't have a static IP from your ISP, then the line below can help you. It's a small combination of terminal commands that return the WAN IP you have.

Type in terminal.
curl -s | grep -i address | sed s'/<[^>]*>//g' | sed s'/Current IP CheckCurrent IP Address: //' | sed 's/\(.*\)./\1/'

Short explanation
The idea is to use a DNS server to tell the IP you have.
I use because the html result is easy to handle.
1. curl command scans the html.
2. The result is piped to grep for the first instance of address.
3. This results is again piped to sed editor that removes the < > symbols from the html tags.
4. (Guess what) the result is again piped to sed again to remove the strings that we don't want. Result = IP.
5. Last pipe removes the last symbol added at the end.

Give it a try. It comes handy.

I have included it in my conky source file. How? Check here.

Good …