conky and internet

View previous topic View next topic Go down

conky and internet

Post by peter2005 on Tue May 10, 2016 5:22 am

In new chalet OS 16.04 conky does not measure internet traffic, up and down speeds are always zero, any idea why?
avatar
peter2005

Posts : 15
Join date : 2016-04-03

Back to top Go down

Re: conky and internet

Post by Sotelach on Tue May 10, 2016 6:47 pm

Does your computer internet card use Broadcom drivers for connection?
Are you connecting to the internet through Wifi or Ethernet?
avatar
Sotelach

Posts : 35
Join date : 2016-01-09
Location : Lancashire

Back to top Go down

Re: conky and internet

Post by peter2005 on Wed May 11, 2016 2:43 am

I have ChaletOS in Virtual Machine and the internet through Ethernet.
avatar
peter2005

Posts : 15
Join date : 2016-04-03

Back to top Go down

Re: conky and internet

Post by James Tobin on Sun May 15, 2016 7:59 am

go in virtualbox settings. under "network" tab give us a screenshot so we can know what type of virtual adapter you are using

___________________________________________________________________________________________________________________________________

The only good thing about Windows is that it never gives you any terminal illnesses.
Needless to say, Terminal illnesses are the only problem with Linux.
avatar
James Tobin

Posts : 683
Join date : 2016-05-05
Location : United States

https://tobinbridge.zohosites.com/

Back to top Go down

Re: conky and internet

Post by Dai_trying on Thu Jun 02, 2016 12:25 am

Down speed : ${downspeed eth0}
Total : ${totaldown eth0}
Up speed : ${upspeed eth0}
Total : ${totalup eth0}

This will give you wired network speeds and totals, you can change the network adapter to suit your own adapters address.
avatar
Dai_trying

Posts : 77
Join date : 2016-05-20

Back to top Go down

Re: conky and internet

Post by bluphoenyx on Thu Jun 02, 2016 7:11 am

FWIW, in my install on real hardware, the ethernet connection is enp2s0. There is no eth0 so the config file may not be looking for the right device name. Using the terminal enter the command:

ifconfig

This should tell what devices are being used.
avatar
bluphoenyx

Posts : 28
Join date : 2016-05-27

Back to top Go down

Re: conky and internet

Post by James Tobin on Thu Jun 02, 2016 8:15 am

peter2005 wrote:I have ChaletOS in Virtual Machine and the internet through Ethernet.

what host os?

___________________________________________________________________________________________________________________________________

The only good thing about Windows is that it never gives you any terminal illnesses.
Needless to say, Terminal illnesses are the only problem with Linux.
avatar
James Tobin

Posts : 683
Join date : 2016-05-05
Location : United States

https://tobinbridge.zohosites.com/

Back to top Go down

Re: conky and internet

Post by peter2005 on Sun Jun 05, 2016 12:18 am

bluphoenyx wrote:FWIW, in my install on real hardware, the ethernet connection is enp2s0. There is no eth0 so the config file may not be looking for the right device name. Using the terminal enter the command:

ifconfig

This should tell what devices are being used.

yes, you're right my is 'ens33'. I wonder how are these names created.
avatar
peter2005

Posts : 15
Join date : 2016-04-03

Back to top Go down

Re: conky and internet

Post by Dai_trying on Sun Jun 05, 2016 2:21 am

I preferred it when they used the standard names of eth0 wlan0 etc... it made life so much easier, maybe they will adapt some sort of uniformity to device names as the software progresses. Smile
avatar
Dai_trying

Posts : 77
Join date : 2016-05-20

Back to top Go down

Re: conky and internet

Post by bluphoenyx on Sun Jun 05, 2016 9:46 am

Sadly, I can no longer say. It was possible at one time to set an alias for things like this in the module configuration file, but many things have changed over the years. I suspect, but haven't been able to verify, that the changes are due to either the use of systemd or advances in the kernel source codes. I doubt this is a ChaletOS modification.

This is another reason that I use gkrellm. It finds network devices automatically, including those created by virtualbox. At least, there was no problem when installing the monitor in ChaletOS. Sadly, most distributions favor conky instead. Me, I'm just resistant to change and stick to what I'm used to Smile. I put the gkrelm window on the right edge of the monitor where it is quickly visible.

Note that I have not looked at any of the ChaletOS conky configurations to see if they support changing network devices. If so, this can provide an alternative to setting a specific network device.
avatar
bluphoenyx

Posts : 28
Join date : 2016-05-27

Back to top Go down

Re: conky and internet

Post by James Tobin on Sun Jun 05, 2016 9:53 am

they do. On mine I have my own configured conky and I have to put in the network ID (for me it is 'wlps40). So to change that is easy with a neat little trick. Open the terminal and run
Code:
ifconfig
and to the left of the columns you'll see the network names of each whether wireless or different ethernet etc. For me it would be wlps40 on my wireless. So then just do this neat little trick. Lets say the conky is on wlps30 and you want it wlps40 just for demo purposes. So you will run this in terminal:
Code:
mousepad .conkyrc
Then you will hit 'search' on the top then 'find and replace' replace 'wlps30' with 'wlps40' on all instances and save the document and exit. I recommend though that you back up the original config before starting. One issue I had when doing that is for some reason it killed the spaces before wlps40 make sure it doesnt do that. If it does then just finish it then replace 'wlps40' with ' wlps40' and that should work.

Of course replace 'wlps40' with your network name from ifconfig Very Happy

___________________________________________________________________________________________________________________________________

The only good thing about Windows is that it never gives you any terminal illnesses.
Needless to say, Terminal illnesses are the only problem with Linux.
avatar
James Tobin

Posts : 683
Join date : 2016-05-05
Location : United States

https://tobinbridge.zohosites.com/

Back to top Go down

Re: conky and internet

Post by bluphoenyx on Sun Jun 05, 2016 10:15 am

Sorry, I meant automatically choosing the network device like gkrellm does. Because the program requires an edited configuration file, this may not be possible. However, conky is a pretty smart and adaptable application with a lot of options.
avatar
bluphoenyx

Posts : 28
Join date : 2016-05-27

Back to top Go down

Re: conky and internet

Post by James Tobin on Sun Jun 05, 2016 10:28 am

oh I see, when it comes to network devices getting into that I blank out Neutral

sorry 4 late reply was eating :>

___________________________________________________________________________________________________________________________________

The only good thing about Windows is that it never gives you any terminal illnesses.
Needless to say, Terminal illnesses are the only problem with Linux.
avatar
James Tobin

Posts : 683
Join date : 2016-05-05
Location : United States

https://tobinbridge.zohosites.com/

Back to top Go down

Re: conky and internet

Post by Dai_trying on Sun Jun 05, 2016 10:39 am

I haven't used gkrelm, I think i will have to take a look.
@James: Changing the network card in the config file is easier than that, simply
Code:
sed -i 's/eth0/wlps40/g' .conkyrc
obviously replace eth0 with what you have in the file and replace wlps40 with your interface id and replace .conkyrc with the name of your conky conkfig file. Smile
avatar
Dai_trying

Posts : 77
Join date : 2016-05-20

Back to top Go down

Re: conky and internet

Post by James Tobin on Sun Jun 05, 2016 10:49 am

u 'n ur conkies! where did you learn this conky stuff?

___________________________________________________________________________________________________________________________________

The only good thing about Windows is that it never gives you any terminal illnesses.
Needless to say, Terminal illnesses are the only problem with Linux.
avatar
James Tobin

Posts : 683
Join date : 2016-05-05
Location : United States

https://tobinbridge.zohosites.com/

Back to top Go down

Re: conky and internet

Post by Dai_trying on Sun Jun 05, 2016 11:07 am

Just by using them... a lot!! Smile And that last snippet is just a bash command, I do a lot of bash scripting, and python too.
avatar
Dai_trying

Posts : 77
Join date : 2016-05-20

Back to top Go down

Re: conky and internet

Post by James Tobin on Wed Jun 08, 2016 9:50 am

cool, that makes you very valuable on these forums Wink

___________________________________________________________________________________________________________________________________

The only good thing about Windows is that it never gives you any terminal illnesses.
Needless to say, Terminal illnesses are the only problem with Linux.
avatar
James Tobin

Posts : 683
Join date : 2016-05-05
Location : United States

https://tobinbridge.zohosites.com/

Back to top Go down

Re: conky and internet

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum