LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Conky won't run in Debian 8 Jessie (Gnome 3) (https://www.linuxquestions.org/questions/linux-software-2/conky-wont-run-in-debian-8-jessie-gnome-3-a-4175582741/)

ColJohnHannibalSmith 06-21-2016 07:26 AM

Conky won't run in Debian 8 Jessie (Gnome 3)
 
I can't get conky to run in Jessie. If I use my .conkyrc from Ubuntu 14.04 it doesn't clear the old text and the display becomes blurry. If I convert the rc to Lua conky complains about the -- characters used for comments, which have replaced the # symbols from before. The instructions to build conky from source are vague && incomprehensible.

.conkyrc (Lua Style)

Code:

conky.config = {
-- UBUNTU-CONKY
-- A comprehensive conky script, configured for use on
-- Ubuntu / Debian Gnome, without the need for any external scripts.

-- Based on conky-jc and the default .conkyrc.
-- INCLUDES:
-- - tail of /var/log/messages (TRY USING TAIL VARIABLE INSTEAD OF SHELL TAIL)
-- - netstat connections to your computer

-- -- Pengo (conky@pengo.us)


-- GENERAL STUFF
        double_buffer = true,
        use_spacer = 'left',
        update_interval = 2.0,
-- background = yes
-- out_to_console = no
-- total_run_times = 0
-- ${execi 30 wmctrl -a conky}


-- WINDOW STUFF
        own_window = true,
        own_window_type = normal,--override
        own_window_transparent = true,
        own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
-- own_window_hints skip_taskbar,skip_pager
-- own_window skip_taskbar

-- COLOR STUFF
        own_window_colour = 'black',
        default_color = 'white',
        default_shade_color = 'black',
        default_outline_color = 'black',


-- TEXT AREA STUFF
-- minimum_size 250 5 (Minimum size of text area)
        minimum_width = 320, minimum_height = 5,


-- BORDER STUFF
        draw_outline = false,
        draw_borders = false,
        draw_shades = false,
        stippled_borders = 3,
        border_width = 10,


-- FONT STUFF
        use_xft = true,
        font = 'Bitstream Vera Sans Mono:size=8',
        xftalpha = 0.8,
        uppercase = false,


-- TEXT ALIGNMENT STUFF
-- alignment top_left
        alignment = 'top_right',
-- alignment bottom_left
-- alignment bottom_right
        gap_x = 10,--Horizontal Gap between borders of screen and text
        gap_y = 10,--Vertical Gap between borders of screen and text


-- TEXT TO BE DISPLAYED IN CONKY WINDOW

};

conky.text = [[
$color
${color magenta}SYSTEM ${hr 2}$color
$nodename $sysname $kernel on $machine
Maximum Operating Temperature: CPU 95 C, HDD 60 C
CPU Temp: ${acpitemp} #HDD Temp: ${hddtemp}
Load: ${loadavg}

${color yellow}Core 0: ${hr 2}$color
Freq: ${freq 1}MHz
${cpubar cpu1 10,70}
${cpugraph cpu1 000000 ffffff}

${color red}Core 1: ${hr 2}$color
Freq: ${freq 2}MHz
${cpubar cpu2 10,70}
${cpugraph cpu2 000000 ffffff}

-- ${color yellow}Core 2: ${hr 2}$color
-- Freq: ${freq 3}MHz
-- ${cpubar cpu3 10,70}
-- ${cpugraph cpu3 000000 ffffff}

-- ${color red}Core 3: ${hr 2}$color
-- Freq: ${freq 4}MHz
-- ${cpubar cpu4 10,70}
-- ${cpugraph cpu4 000000 ffffff}
NAME            PID    CPU%  MEM%
${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
${top name 5} ${top pid 5} ${top cpu 5} ${top mem 5}
${top name 6} ${top pid 6} ${top cpu 6} ${top mem 6}
${top name 7} ${top pid 7} ${top cpu 7} ${top mem 7}
${top name 8} ${top pid 8} ${top cpu 8} ${top mem 8}
${top name 9} ${top pid 9} ${top cpu 9} ${top mem 9}
${top name 10} ${top pid 10} ${top cpu 10} ${top mem 10}

${color yellow}MEMORY / DISK ${hr 2}$color
RAM: $memperc% ${membar 6}$color
Swap: $swapperc% ${swapbar 6}$color

${color yellow}NETWORK (${addr wlan0}) ${hr 2}$color
Down: $color${downspeed wlan0}                  Up: ${upspeed wlan0}
${downspeedgraph wlan0 25,140 000000 ff0000} ${alignr}${upspeedgraph wlan0 25,140 000000 00ff00}$color
Total: ${totaldown wlan0}                Total: ${totalup wlan0} #${alignr}

Inbound: ${tcp_portmon 1 32767 count}  Outbound: ${tcp_portmon 32768 61000 count}${alignr}  Total:${tcp_portmon 1 65535 count}


-- ${color yellow}LOGGING ${hr 2}$color
-- ${execi 30 tail -n3 /var/log/messages | fold -w50}

-- wlan0 eth0 wlan1 eth1
 
]];

Command Output
Code:

anonymous@jessie1:~$ conky
Conky: /etc/conky/conky.conf: 1: no such configuration: '--'
Conky: /etc/conky/conky.conf: 2: no such configuration: '--[['
Conky: /etc/conky/conky.conf: 3: no such configuration: 'Conky,'
Conky: /etc/conky/conky.conf: 5: no such configuration: 'Any'
Conky: /etc/conky/conky.conf: 7: no such configuration: 'All'
Conky: /etc/conky/conky.conf: 9: no such configuration: 'Please'
Conky: /etc/conky/conky.conf: 11: no such configuration: 'Copyright'
Conky: /etc/conky/conky.conf: 12: no such configuration: 'Copyright'
Conky: /etc/conky/conky.conf: 13: no such configuration: 'All'
Conky: /etc/conky/conky.conf: 15: no such configuration: 'This'
Conky: /etc/conky/conky.conf: 16: no such configuration: 'it'
Conky: /etc/conky/conky.conf: 17: no such configuration: 'the'
Conky: /etc/conky/conky.conf: 18: no such configuration: '(at'
Conky: /etc/conky/conky.conf: 20: no such configuration: 'This'
Conky: /etc/conky/conky.conf: 21: no such configuration: 'but'
Conky: /etc/conky/conky.conf: 22: no such configuration: 'MERCHANTABILITY'
Conky: /etc/conky/conky.conf: 23: no such configuration: 'GNU'
Conky: /etc/conky/conky.conf: 24: no such configuration: 'You'
Conky: /etc/conky/conky.conf: 25: no such configuration: 'along'
Conky: /etc/conky/conky.conf: 26: no such configuration: ']]'
Conky: /etc/conky/conky.conf: 28: no such configuration: 'conky.config'
Conky: /etc/conky/conky.conf: 29: config file error
Conky: /etc/conky/conky.conf: 32: config file error
Conky: /etc/conky/conky.conf: 44: no such configuration: 'minimum_height'
Conky: /etc/conky/conky.conf: 45: no such configuration: 'minimum_width'
Conky: /etc/conky/conky.conf: 46: config file error
Conky: /etc/conky/conky.conf: 53: config file error
Conky: use_spacer should have an argument of left, right, or none.  '= 'none',' seems to be some form of 'false', so defaulting to none.
Conky: /etc/conky/conky.conf: 60: no such configuration: '}'
Conky: /etc/conky/conky.conf: 62: no such configuration: 'conky.text'
Conky: /etc/conky/conky.conf: 63: no such configuration: '${scroll'
Conky: /etc/conky/conky.conf: 64: no such configuration: '$hr'
Conky: /etc/conky/conky.conf: 65: no such configuration: '${color'
Conky: /etc/conky/conky.conf: 66: no such configuration: '${color'
Conky: /etc/conky/conky.conf: 67: no such configuration: '${color'
Conky: /etc/conky/conky.conf: 68: no such configuration: '${color'
Conky: /etc/conky/conky.conf: 69: no such configuration: '${color'
Conky: /etc/conky/conky.conf: 70: no such configuration: '${color'
Conky: /etc/conky/conky.conf: 71: no such configuration: '${color'
Conky: /etc/conky/conky.conf: 72: no such configuration: '$hr'
Conky: /etc/conky/conky.conf: 73: no such configuration: '${color'
Conky: /etc/conky/conky.conf: 74: no such configuration: '/'
Conky: /etc/conky/conky.conf: 75: no such configuration: '${color'
Conky: /etc/conky/conky.conf: 76: no such configuration: 'Up:$color'
Conky: /etc/conky/conky.conf: 77: no such configuration: '$hr'
Conky: /etc/conky/conky.conf: 78: no such configuration: '${color'
Conky: /etc/conky/conky.conf: 79: no such configuration: '${color'
Conky: /etc/conky/conky.conf: 80: no such configuration: '${color'
Conky: /etc/conky/conky.conf: 81: no such configuration: '${color'
Conky: /etc/conky/conky.conf: 82: no such configuration: '${color'
Conky: /etc/conky/conky.conf: 83: no such configuration: ']]'
Conky: missing text block in configuration; exiting
anonymous@jessie1:~$


ondoho 06-22-2016 02:50 PM

that's conky 1.10 syntax.
it is incompatible with conky 1.9.x syntax.
what conky version are you running now?
Code:

conky --version


All times are GMT -5. The time now is 11:47 PM.