Yes, a program called "vnstat" it's in the repos...
More info here: Conky Hardcore! - vnstat
Have a nice day.
Bruce
Yes, a program called "vnstat" it's in the repos...
More info here: Conky Hardcore! - vnstat
Have a nice day.
Bruce
Thanks Bruce, will have a look at it and play around.
Thanks for the info, I appreciate it.
Hi.
I'd like to post a small HowTo.
Maybe some of you guys are using an overlay network like TOR or i2p to surf the web.
If you do, maybe you´d like to have BOTH IP's displayed in conky.
So well, here we go:
First, you need the ip.sh script.
Create a directory in your home called .scripts
cd into the new directory and create a new blank file with an editor you like to use. I prefer nano.
so well:
Displaying the "normal" IP Adress:
nano ip.sh
paste the following content:
#!/bin/bash
wget --no-proxy http://checkip.dyndns.org/ -q -O - |
grep -Eo '\<[[:digit:]]{1,3}(\.[[:digit:]]{1,3}){3}\>'
(NOTE: --no-proxy option will be explained later. IT HAS TO BE THERE.)
save the file
chmod +x ip.sh
--------------------------------------------------------------------------
Displaying the i2p-Adress:
stay in /home/foo/.scripts
nano i2p.sh
paste the following content:
#!/bin/bash
wget http://checkip.dyndns.org/ -q -O - |
grep -Eo '\<[[:digit:]]{1,3}(\.[[:digit:]]{1,3}){3}\>'
save the file
chmod +x i2p.sh
--------------------------------------------------------------------------
Now, we have to configure wget to use our TOR/i2p-server as proxy.
sudo nano /etc/wgetrc
search for:
#http_proxy = http://proxy:8080
uncomment and change to:
http_proxy = http://I2P_PROXY_IP:8080/
NOTE: The proxy IP can be localhost if you are running TOR/i2p on your machine. Otherwise, enter the IP of your I2P-Server. Change the port to the one you defined, or leave it default.
uncomment
use_proxy = on
save the file
--------------------------------------------------------------------------
Configuring your .conkyrc
open .conkyrc with the editor of your choice. I stay with nano here.
nano /home/foo/.conkyrc
paste the following lines to your .conkyrc
Regular IP: ${alignr}${execi 1~/.scripts/ip.sh}
i2p IP: ${alignr}${execi 300~/.scripts/i2p.sh}
The "300" is important. Otherweise your i2p-server is gonna start to reject tunnels because of a high message delay.
Remember? We saved these two files in .scripts , the directory in your home folder.
Reload conky.
Feel free to add some colours or custom fonts to these lines. Example:
${font Sans:size=7:weight=bold}${color red}i2p IP: ${alignr}${execi 1~/.scripts/i2p.sh}
--------------------------------------------------------------------------
Keep in mind: If you are gonna use wget in the future, you have to use the --no-proxy option. Well, maybe you want wget to download files via encrypted networks. It's your choice.
regards, categ0re
Last edited by categ0re; December 30th, 2009 at 05:43 PM.
Im so sorry im a linux "noob" i see all this talk about creating this config file when i copied your code in the terminal to paste you conky config and tried to save it said could not find....does any1 have the heart to walk a dummy through step by step
The last post on this thread was back in December 2009! Try asking for help in the conkyrc thread here: http://ubuntuforums.org/showthread.php?t=281865
Better still have a look at the conky pitstop site linked in my sig, or the documentation for conky here: http://conky.sourceforge.net/documentation.html
HTH
Just finished my LCars Star Trek Conky, took just over a day of coding. This is for the right side screen of a dual monitor setup.
[IMG]http://i.imgur.com/zFvCI.png
Last edited by overdrank; September 5th, 2012 at 11:09 AM. Reason: please use thumbnails
That's AWESOME!!!!!!!!
QNAP TVS-672N - Ubuntu 20.04
Bookmarks