How can I get IP address showing from using Conky
I'm just wondering how can I get IP address showing on the desktop from using Conky? Do I need to use conky (sudo apt-get install conky-all) or not? As I haven't done it before.
I'm thinking something like this: http://vindsl.com/images/vindsl-desktop-24-oct-2013-1.png
Solution 1:
You need to use Conky, there's no equivalent as far as I know.
Here's how to display IP address info:
Conky can execute commands with the object ${exec command}
.
I don't know whether you want your internal or external IP shown on your configuration, but if you can find a way to display that information in the command line interface and then plug that command into Conky you should have what you want.
For external IP address, something like this should work:
${exec curl -s www.icanhazip.com}
For internal IP address, for multiple interfaces you'll want something like
${if_existing /proc/net/route wlan0}
${addr wlan0}
${else}${if_existing /proc/net/route eth0}
${addr eth0}
${else}
Network disconnected
${endif}${endif}
Solution 2:
make a simple script in home directory:
wget http://ipinfo.io/ip -qO -
save it as ip.sh
then just add this line to ~/.conkyrc file
Public IP: ${exec sh ip.sh}
Your output will be:
Public IP: 123.123.123.123
It's simple as that.
Solution 3:
You can run this simple command
curl ipconfig.in/ip
To know what is you Public IP Address : www.IPconfig.in