Conky network issue on 18.04

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












So I have heard a lot about conky and wanted to give it a try. I added TeeJee ppa, installed it and downloaded the official theme pack. The problem is, conky is unable to detect network interface. After spending some time on google, I realized that I have to replace eth0 with enp1s0 to get conky work with network connection. So here is my current systemstat widget that comes with TransparentTilesV3 theme:



TEXT
$voffset -2$font Open Sans Light:bold:size=9HARD DRIVEs$font$voffset 10
HOME $alignr$color5$fs_bar 12,200 /home
$voffset -18$offset 5$color$alignr 5$color$fs_free /home$color$font
SYSTEM $alignr$color5$fs_bar 12,200 /
$voffset -18$offset 5$color$alignr 5$color$fs_free / free$color$font
$voffset -8
$font Open Sans Light:bold:size=9NETWORK$font$voffset -14
$if_existing /proc/net/route wlan0
$colorUp:$color $color2$upspeed wlan0$color$alignr$colorSent:$color $color2$totalup wlan0$color
$colorDown:$color $color2$downspeed wlan0$color$alignr$colorReceived:$color $color2$totaldown wlan0$color
$else$if_existing /proc/net/route wlan1
$colorUp:$color $color2$upspeed wlan1$color$alignr$colorSent:$color $color2$totalup wlan1$color
$colorDown:$color $color2$downspeed wlan1$color$alignr$colorReceived:$color $color2$totaldown wlan1$color
$else$if_existing /proc/net/route enp1s0
$colorUp:$color $color2$upspeed enp1s0$color$alignr$colorSent:$color $color2$totalup enp1s0$color
$colorDown:$color $color2$downspeed enp1s0$color$alignr$colorReceived:$color $color2$totaldown enp1s0$color
$else$if_existing /proc/net/route eth1
$colorUp:$color $color2$upspeed eth1$color$alignr$colorSent:$color $color2$totalup eth1$color
$colorDown:$color $color2$downspeed eth1$color$alignr$colorReceived:$color $color2$totaldown eth1$color
$else$if_existing /proc/net/route ppp0
$colorUp:$color $color2$upspeed ppp0$color$alignr$colorSent:$color $color2$totalup ppp0$color
$colorDown:$color $color2$downspeed ppp0$color$alignr$colorReceived:$color $color2$totaldown ppp0$color
$else$if_existing /proc/net/route ppp1
$colorUp:$color $color2$upspeed ppp1$color$alignr$colorSent:$color $color2$totalup ppp1$color
$colorDown:$color $color2$downspeed ppp1$color$alignr$colorReceived:$color $color2$totaldown ppp1$color
$else$if_existing /proc/net/route usb0
$colorUp:$color $color2$upspeed usb0$color$alignr$colorSent:$color $color2$totalup usb0$color
$colorDown:$color $color2$downspeed usb0$color$alignr$colorReceived:$color $color2$totaldown usb0$color
$else$if_existing /proc/net/route usb1
$colorUp:$color $color2$upspeed usb1$color$alignr$colorSent:$color $color2$totalup usb1$color
$colorDown:$color $color2$downspeed usb1$color$alignr$colorReceived:$color $color2$totaldown usb1$color
$else
Network disconnected
$color5Connect to a network to see statistics$color
$voffset 74
$endif$endif$endif$endif$endif$endif$endif$endif$voffset -61


I just searched for text: eth0 and replaced it with enp1s0, but not all widget comes with the text eth0, for instance, the news widget:



# conky package by qaisar nawaz
# Conky settings #
background no
update_interval 900
double_buffer yes
no_buffers yes

# Window specifications #
own_window yes
own_window_type normal
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_title
own_window_colour bebebe
own_window_argb_visual yes
own_window_argb_value 205

minimum_size 549 85
maximum_width 549

# Alignment #
alignment tr
gap_x 55
gap_y 341

border_inner_margin 10
border_outer_margin 0

# Graphics settings #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no

# Text settings #
use_xft yes
xftalpha 0
xftfont Open Sans Light:size=10

override_utf8_locale yes

imlib_cache_size 0

# Color scheme #
default_color 333333

color1 0099CC
color2 9933CC
color3 669900
color4 FF8800
color5 CC0000
color6 AAAAAA
color7 DDDDDD

TEXT
$voffset -4$color1$font Open Sans Light:size=12Top Stories - Google News$color$font
$voffset 1$exec python ./news.py
$voffset -28


I even tried to wrap the TEXT portion inside a for loop like this:



TEXT
$if_existing /proc/net/route enp1s0
$voffset -4$color1$font Open Sans Light:size=12Top Stories - Google News$color$font
$voffset 1$exec python ./news.py
$voffset -28
$endif


But still no luck... How can I tell conky to use enp1s0 globally, instead of eth0?







share|improve this question



















  • Since you got conky from " TeeJee ppa", questions should go there.
    – waltinator
    Jun 3 at 8:41










  • @waltinator I did not install conky from there, I just installed Conky Manager and the themes from there. Just in case you don't know what it is: It's a graphical front end that helps beginners (like myself) get used to conky.
    – Eisenheim
    Jun 3 at 8:44















up vote
0
down vote

favorite












So I have heard a lot about conky and wanted to give it a try. I added TeeJee ppa, installed it and downloaded the official theme pack. The problem is, conky is unable to detect network interface. After spending some time on google, I realized that I have to replace eth0 with enp1s0 to get conky work with network connection. So here is my current systemstat widget that comes with TransparentTilesV3 theme:



TEXT
$voffset -2$font Open Sans Light:bold:size=9HARD DRIVEs$font$voffset 10
HOME $alignr$color5$fs_bar 12,200 /home
$voffset -18$offset 5$color$alignr 5$color$fs_free /home$color$font
SYSTEM $alignr$color5$fs_bar 12,200 /
$voffset -18$offset 5$color$alignr 5$color$fs_free / free$color$font
$voffset -8
$font Open Sans Light:bold:size=9NETWORK$font$voffset -14
$if_existing /proc/net/route wlan0
$colorUp:$color $color2$upspeed wlan0$color$alignr$colorSent:$color $color2$totalup wlan0$color
$colorDown:$color $color2$downspeed wlan0$color$alignr$colorReceived:$color $color2$totaldown wlan0$color
$else$if_existing /proc/net/route wlan1
$colorUp:$color $color2$upspeed wlan1$color$alignr$colorSent:$color $color2$totalup wlan1$color
$colorDown:$color $color2$downspeed wlan1$color$alignr$colorReceived:$color $color2$totaldown wlan1$color
$else$if_existing /proc/net/route enp1s0
$colorUp:$color $color2$upspeed enp1s0$color$alignr$colorSent:$color $color2$totalup enp1s0$color
$colorDown:$color $color2$downspeed enp1s0$color$alignr$colorReceived:$color $color2$totaldown enp1s0$color
$else$if_existing /proc/net/route eth1
$colorUp:$color $color2$upspeed eth1$color$alignr$colorSent:$color $color2$totalup eth1$color
$colorDown:$color $color2$downspeed eth1$color$alignr$colorReceived:$color $color2$totaldown eth1$color
$else$if_existing /proc/net/route ppp0
$colorUp:$color $color2$upspeed ppp0$color$alignr$colorSent:$color $color2$totalup ppp0$color
$colorDown:$color $color2$downspeed ppp0$color$alignr$colorReceived:$color $color2$totaldown ppp0$color
$else$if_existing /proc/net/route ppp1
$colorUp:$color $color2$upspeed ppp1$color$alignr$colorSent:$color $color2$totalup ppp1$color
$colorDown:$color $color2$downspeed ppp1$color$alignr$colorReceived:$color $color2$totaldown ppp1$color
$else$if_existing /proc/net/route usb0
$colorUp:$color $color2$upspeed usb0$color$alignr$colorSent:$color $color2$totalup usb0$color
$colorDown:$color $color2$downspeed usb0$color$alignr$colorReceived:$color $color2$totaldown usb0$color
$else$if_existing /proc/net/route usb1
$colorUp:$color $color2$upspeed usb1$color$alignr$colorSent:$color $color2$totalup usb1$color
$colorDown:$color $color2$downspeed usb1$color$alignr$colorReceived:$color $color2$totaldown usb1$color
$else
Network disconnected
$color5Connect to a network to see statistics$color
$voffset 74
$endif$endif$endif$endif$endif$endif$endif$endif$voffset -61


I just searched for text: eth0 and replaced it with enp1s0, but not all widget comes with the text eth0, for instance, the news widget:



# conky package by qaisar nawaz
# Conky settings #
background no
update_interval 900
double_buffer yes
no_buffers yes

# Window specifications #
own_window yes
own_window_type normal
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_title
own_window_colour bebebe
own_window_argb_visual yes
own_window_argb_value 205

minimum_size 549 85
maximum_width 549

# Alignment #
alignment tr
gap_x 55
gap_y 341

border_inner_margin 10
border_outer_margin 0

# Graphics settings #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no

# Text settings #
use_xft yes
xftalpha 0
xftfont Open Sans Light:size=10

override_utf8_locale yes

imlib_cache_size 0

# Color scheme #
default_color 333333

color1 0099CC
color2 9933CC
color3 669900
color4 FF8800
color5 CC0000
color6 AAAAAA
color7 DDDDDD

TEXT
$voffset -4$color1$font Open Sans Light:size=12Top Stories - Google News$color$font
$voffset 1$exec python ./news.py
$voffset -28


I even tried to wrap the TEXT portion inside a for loop like this:



TEXT
$if_existing /proc/net/route enp1s0
$voffset -4$color1$font Open Sans Light:size=12Top Stories - Google News$color$font
$voffset 1$exec python ./news.py
$voffset -28
$endif


But still no luck... How can I tell conky to use enp1s0 globally, instead of eth0?







share|improve this question



















  • Since you got conky from " TeeJee ppa", questions should go there.
    – waltinator
    Jun 3 at 8:41










  • @waltinator I did not install conky from there, I just installed Conky Manager and the themes from there. Just in case you don't know what it is: It's a graphical front end that helps beginners (like myself) get used to conky.
    – Eisenheim
    Jun 3 at 8:44













up vote
0
down vote

favorite









up vote
0
down vote

favorite











So I have heard a lot about conky and wanted to give it a try. I added TeeJee ppa, installed it and downloaded the official theme pack. The problem is, conky is unable to detect network interface. After spending some time on google, I realized that I have to replace eth0 with enp1s0 to get conky work with network connection. So here is my current systemstat widget that comes with TransparentTilesV3 theme:



TEXT
$voffset -2$font Open Sans Light:bold:size=9HARD DRIVEs$font$voffset 10
HOME $alignr$color5$fs_bar 12,200 /home
$voffset -18$offset 5$color$alignr 5$color$fs_free /home$color$font
SYSTEM $alignr$color5$fs_bar 12,200 /
$voffset -18$offset 5$color$alignr 5$color$fs_free / free$color$font
$voffset -8
$font Open Sans Light:bold:size=9NETWORK$font$voffset -14
$if_existing /proc/net/route wlan0
$colorUp:$color $color2$upspeed wlan0$color$alignr$colorSent:$color $color2$totalup wlan0$color
$colorDown:$color $color2$downspeed wlan0$color$alignr$colorReceived:$color $color2$totaldown wlan0$color
$else$if_existing /proc/net/route wlan1
$colorUp:$color $color2$upspeed wlan1$color$alignr$colorSent:$color $color2$totalup wlan1$color
$colorDown:$color $color2$downspeed wlan1$color$alignr$colorReceived:$color $color2$totaldown wlan1$color
$else$if_existing /proc/net/route enp1s0
$colorUp:$color $color2$upspeed enp1s0$color$alignr$colorSent:$color $color2$totalup enp1s0$color
$colorDown:$color $color2$downspeed enp1s0$color$alignr$colorReceived:$color $color2$totaldown enp1s0$color
$else$if_existing /proc/net/route eth1
$colorUp:$color $color2$upspeed eth1$color$alignr$colorSent:$color $color2$totalup eth1$color
$colorDown:$color $color2$downspeed eth1$color$alignr$colorReceived:$color $color2$totaldown eth1$color
$else$if_existing /proc/net/route ppp0
$colorUp:$color $color2$upspeed ppp0$color$alignr$colorSent:$color $color2$totalup ppp0$color
$colorDown:$color $color2$downspeed ppp0$color$alignr$colorReceived:$color $color2$totaldown ppp0$color
$else$if_existing /proc/net/route ppp1
$colorUp:$color $color2$upspeed ppp1$color$alignr$colorSent:$color $color2$totalup ppp1$color
$colorDown:$color $color2$downspeed ppp1$color$alignr$colorReceived:$color $color2$totaldown ppp1$color
$else$if_existing /proc/net/route usb0
$colorUp:$color $color2$upspeed usb0$color$alignr$colorSent:$color $color2$totalup usb0$color
$colorDown:$color $color2$downspeed usb0$color$alignr$colorReceived:$color $color2$totaldown usb0$color
$else$if_existing /proc/net/route usb1
$colorUp:$color $color2$upspeed usb1$color$alignr$colorSent:$color $color2$totalup usb1$color
$colorDown:$color $color2$downspeed usb1$color$alignr$colorReceived:$color $color2$totaldown usb1$color
$else
Network disconnected
$color5Connect to a network to see statistics$color
$voffset 74
$endif$endif$endif$endif$endif$endif$endif$endif$voffset -61


I just searched for text: eth0 and replaced it with enp1s0, but not all widget comes with the text eth0, for instance, the news widget:



# conky package by qaisar nawaz
# Conky settings #
background no
update_interval 900
double_buffer yes
no_buffers yes

# Window specifications #
own_window yes
own_window_type normal
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_title
own_window_colour bebebe
own_window_argb_visual yes
own_window_argb_value 205

minimum_size 549 85
maximum_width 549

# Alignment #
alignment tr
gap_x 55
gap_y 341

border_inner_margin 10
border_outer_margin 0

# Graphics settings #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no

# Text settings #
use_xft yes
xftalpha 0
xftfont Open Sans Light:size=10

override_utf8_locale yes

imlib_cache_size 0

# Color scheme #
default_color 333333

color1 0099CC
color2 9933CC
color3 669900
color4 FF8800
color5 CC0000
color6 AAAAAA
color7 DDDDDD

TEXT
$voffset -4$color1$font Open Sans Light:size=12Top Stories - Google News$color$font
$voffset 1$exec python ./news.py
$voffset -28


I even tried to wrap the TEXT portion inside a for loop like this:



TEXT
$if_existing /proc/net/route enp1s0
$voffset -4$color1$font Open Sans Light:size=12Top Stories - Google News$color$font
$voffset 1$exec python ./news.py
$voffset -28
$endif


But still no luck... How can I tell conky to use enp1s0 globally, instead of eth0?







share|improve this question











So I have heard a lot about conky and wanted to give it a try. I added TeeJee ppa, installed it and downloaded the official theme pack. The problem is, conky is unable to detect network interface. After spending some time on google, I realized that I have to replace eth0 with enp1s0 to get conky work with network connection. So here is my current systemstat widget that comes with TransparentTilesV3 theme:



TEXT
$voffset -2$font Open Sans Light:bold:size=9HARD DRIVEs$font$voffset 10
HOME $alignr$color5$fs_bar 12,200 /home
$voffset -18$offset 5$color$alignr 5$color$fs_free /home$color$font
SYSTEM $alignr$color5$fs_bar 12,200 /
$voffset -18$offset 5$color$alignr 5$color$fs_free / free$color$font
$voffset -8
$font Open Sans Light:bold:size=9NETWORK$font$voffset -14
$if_existing /proc/net/route wlan0
$colorUp:$color $color2$upspeed wlan0$color$alignr$colorSent:$color $color2$totalup wlan0$color
$colorDown:$color $color2$downspeed wlan0$color$alignr$colorReceived:$color $color2$totaldown wlan0$color
$else$if_existing /proc/net/route wlan1
$colorUp:$color $color2$upspeed wlan1$color$alignr$colorSent:$color $color2$totalup wlan1$color
$colorDown:$color $color2$downspeed wlan1$color$alignr$colorReceived:$color $color2$totaldown wlan1$color
$else$if_existing /proc/net/route enp1s0
$colorUp:$color $color2$upspeed enp1s0$color$alignr$colorSent:$color $color2$totalup enp1s0$color
$colorDown:$color $color2$downspeed enp1s0$color$alignr$colorReceived:$color $color2$totaldown enp1s0$color
$else$if_existing /proc/net/route eth1
$colorUp:$color $color2$upspeed eth1$color$alignr$colorSent:$color $color2$totalup eth1$color
$colorDown:$color $color2$downspeed eth1$color$alignr$colorReceived:$color $color2$totaldown eth1$color
$else$if_existing /proc/net/route ppp0
$colorUp:$color $color2$upspeed ppp0$color$alignr$colorSent:$color $color2$totalup ppp0$color
$colorDown:$color $color2$downspeed ppp0$color$alignr$colorReceived:$color $color2$totaldown ppp0$color
$else$if_existing /proc/net/route ppp1
$colorUp:$color $color2$upspeed ppp1$color$alignr$colorSent:$color $color2$totalup ppp1$color
$colorDown:$color $color2$downspeed ppp1$color$alignr$colorReceived:$color $color2$totaldown ppp1$color
$else$if_existing /proc/net/route usb0
$colorUp:$color $color2$upspeed usb0$color$alignr$colorSent:$color $color2$totalup usb0$color
$colorDown:$color $color2$downspeed usb0$color$alignr$colorReceived:$color $color2$totaldown usb0$color
$else$if_existing /proc/net/route usb1
$colorUp:$color $color2$upspeed usb1$color$alignr$colorSent:$color $color2$totalup usb1$color
$colorDown:$color $color2$downspeed usb1$color$alignr$colorReceived:$color $color2$totaldown usb1$color
$else
Network disconnected
$color5Connect to a network to see statistics$color
$voffset 74
$endif$endif$endif$endif$endif$endif$endif$endif$voffset -61


I just searched for text: eth0 and replaced it with enp1s0, but not all widget comes with the text eth0, for instance, the news widget:



# conky package by qaisar nawaz
# Conky settings #
background no
update_interval 900
double_buffer yes
no_buffers yes

# Window specifications #
own_window yes
own_window_type normal
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_title
own_window_colour bebebe
own_window_argb_visual yes
own_window_argb_value 205

minimum_size 549 85
maximum_width 549

# Alignment #
alignment tr
gap_x 55
gap_y 341

border_inner_margin 10
border_outer_margin 0

# Graphics settings #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no

# Text settings #
use_xft yes
xftalpha 0
xftfont Open Sans Light:size=10

override_utf8_locale yes

imlib_cache_size 0

# Color scheme #
default_color 333333

color1 0099CC
color2 9933CC
color3 669900
color4 FF8800
color5 CC0000
color6 AAAAAA
color7 DDDDDD

TEXT
$voffset -4$color1$font Open Sans Light:size=12Top Stories - Google News$color$font
$voffset 1$exec python ./news.py
$voffset -28


I even tried to wrap the TEXT portion inside a for loop like this:



TEXT
$if_existing /proc/net/route enp1s0
$voffset -4$color1$font Open Sans Light:size=12Top Stories - Google News$color$font
$voffset 1$exec python ./news.py
$voffset -28
$endif


But still no luck... How can I tell conky to use enp1s0 globally, instead of eth0?









share|improve this question










share|improve this question




share|improve this question









asked Jun 3 at 8:30









Eisenheim

202239




202239











  • Since you got conky from " TeeJee ppa", questions should go there.
    – waltinator
    Jun 3 at 8:41










  • @waltinator I did not install conky from there, I just installed Conky Manager and the themes from there. Just in case you don't know what it is: It's a graphical front end that helps beginners (like myself) get used to conky.
    – Eisenheim
    Jun 3 at 8:44

















  • Since you got conky from " TeeJee ppa", questions should go there.
    – waltinator
    Jun 3 at 8:41










  • @waltinator I did not install conky from there, I just installed Conky Manager and the themes from there. Just in case you don't know what it is: It's a graphical front end that helps beginners (like myself) get used to conky.
    – Eisenheim
    Jun 3 at 8:44
















Since you got conky from " TeeJee ppa", questions should go there.
– waltinator
Jun 3 at 8:41




Since you got conky from " TeeJee ppa", questions should go there.
– waltinator
Jun 3 at 8:41












@waltinator I did not install conky from there, I just installed Conky Manager and the themes from there. Just in case you don't know what it is: It's a graphical front end that helps beginners (like myself) get used to conky.
– Eisenheim
Jun 3 at 8:44





@waltinator I did not install conky from there, I just installed Conky Manager and the themes from there. Just in case you don't know what it is: It's a graphical front end that helps beginners (like myself) get used to conky.
– Eisenheim
Jun 3 at 8:44
















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1043144%2fconky-network-issue-on-18-04%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1043144%2fconky-network-issue-on-18-04%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

Which professions warranted travel in Medieval times?

How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

Trouble downloading packages list due to a “Hash sum mismatch” error