Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

post install-setting up conky?

  • 22-06-2012 8:21pm
    #1
    Registered Users, Registered Users 2 Posts: 955 ✭✭✭


    for those that dont know conky,have a look here- http://sourceforge.net/projects/conky/?source=directory


    is there any chance of some easy to understand help with post install set up of conky?

    am trying to make the window transparent and show the sensor information as well.
    have read a lot of different website articles on this,and can safely say whatever am doing something isnt right.

    am saving the conky config script with the title .conkyrc ,in a home folder named conky,but it is not making one bit of difference to the default static black window.
    had tried several different config scripts to make sure.
    the script is saved using the editor; leafpad.
    does it make any difference what editor,or what character coding the file is saved in,as for some reason in leafpad files refuse to save in the default 'current locale ISO...' one and have to save in UTF-8 instead,just adding that incase it coud be an isue-havent got a clue what effect character coding has.

    had also added the command; conky -c ~/.conky/conkyrc to the 'startup applications' list-and conky sucessfuly boots from start,surely as the command is able to recognise the 'conkyrc' file to be able to boot it woud recognise the script?

    apart from changing the distro name on the top line;this is the script am using:
    http://mylinuxramblings.wordpress.com/2010/03/23/how-to-configure-the-conky-system-monitor/

    am using a debian based penetration testing distro called matriux,this is screenshot of conky running-
    http://sadpanda.us/images/1034486-1ZN7313.jpg
    and lm-sensors is installed and working fine.


    please someone,please make some sense of this? :confused:
    woud love to get it working,fully,not just showing the minimum basics,and woud love it to be transparent.

    thanks a lot for any advice!

    are there any other users of it here,by the way?:pac:


Comments

  • Registered Users, Registered Users 2 Posts: 8,488 ✭✭✭Goodshape


    Well it does look like the config isn't being picked up for some reason. It's been a while since I've used Conky but I do remember having a bit of trouble setting it up initially.

    The script page says it doesn't use plugins, so I suppose we can rule out that you're missing something?

    I'm not familiar with Leafpad but it's a plain-text editor, yeah? Not RTF or anything? I don't think it should cause problems but just to rule it out I'd try creating / saving the file with something else. Even nano or vi / vim (something in the terminal).

    Also, try removing parts of the config -- maybe there's something specific in there that's causing problems. If you can't get anything in the config to take effect, check file paths, permissions, encoding, that sort of stuff.

    Goodluck! :)


  • Registered Users, Registered Users 2 Posts: 14,048 ✭✭✭✭Johnboy1951


    # the list of variables has been removed from this file in favour
    # of keeping the documentation more maintainable.
    # Check http://conky.sf.net for an up-to-date-list.
     
    #
    # set to yes if you want Conky to be forked in the background
    background yes
    
    # X font when Xft is disabled, you can pick one with program xfontsel
    #font 5x7
    #font 6x10
    #font 7x13
    font 8x13
    #font 9x15
    #font *mintsmild.se*
    #font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
    
    # Use Xft?
    use_xft no
    
    # Xft font when Xft is enabled
    xftfont Bitstream Vera Sans Mono:size=12
    
    # Text alpha when using Xft
    xftalpha 0.8
    
    # Print everything to stdout?
    # out_to_console no
    
    # Print everything to console?
    # out_to_console no
    
    # Update interval in seconds
    update_interval 2
    
    # This is the number of times Conky will update before quitting.
    # Set to zero to run forever.
    total_run_times 0
    
    own_window_title PCLinuxOS - Conky
    
    # Create own window instead of using desktop (required in nautilus)
    own_window yes
    
    # If own_window is yes, you may use type normal, desktop or override
    # Normal gives semi-trans with borders while Desktop gives full trans no borders
    # Override does not work for me.
    own_window_type transparent
    #own_window_type desktop
    
    # Use pseudo transparency with own_window?
    own_window_transparent yes
    
    # If own_window_transparent is set to no, you can set the background colour here
    #own_window_colour black
    own_window_argb_visual yes
    #own_window_argb_value 255
    
    # If own_window is yes, these window manager hints may be used
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    #own_window_hints top,sticky,skip_taskbar,skip_pager
    
    # Use double buffering (reduces flicker, may not work for everyone)
    double_buffer yes
    
    # Minimum size of text area
    minimum_size 300 2
    
    # Draw shades?
    draw_shades yes
    
    # Draw outlines?
    draw_outline yes
    
    # Draw borders around text
    draw_borders yes
    
    # Draw borders around graphs
    draw_graph_borders yes
    
    # Stippled borders?
    #stippled_borders 1
    
    # border margins
    border_margin 4
    
    # border width
    border_width 1
    
    # Default colors and also border colors
    default_color white
    default_shade_color black
    default_outline_color black
    
    # Text alignment, other possible values are commented
    #alignment top_left
    alignment top_right
    #alignment bottom_left
    #alignment bottom_right
    #alignment none
    
    # Gap between borders of screen and text
    # same thing as passing -x at command line
    gap_x 15
    gap_y 15
    
    # Subtract file system buffers from used memory?
    no_buffers yes
    
    # set to yes if you want all text to be in uppercase
    uppercase no
    
    # number of cpu samples to average
    # set to 1 to disable averaging
    cpu_avg_samples 4
    
    # number of net samples to average
    # set to 1 to disable averaging
    net_avg_samples 4
    
    # Force UTF8? note that UTF8 support required XFT
    override_utf8_locale no
    
    # Add spaces to keep things from moving about?  This only affects certain objects.
    use_spacer none
    
    TEXT
    ${font Sans Serif:bold:italic:size=12}${color goldenrod}Hostname:     $nodename
    ${color goldenrod}Linux Kernel: $kernel
    ${color goldenrod}CPU Details:  $machine, $freq MHz
    
    ${color}CPU History:  ${color lightgreen}${cpugraph 25,0 0000ff 00ff00}
    
    ${color} CPU 1: ${cpu cpu1}% ${color magenta2}   ${cpubar cpu1}
    
    ${color} CPU 2: ${cpu cpu2}% ${color magenta2}   ${cpubar cpu2}
    
    ${color} CPU 3: ${cpu cpu3}% ${color magenta2}   ${cpubar cpu3}
    
    ${color} CPU 4: ${cpu cpu4}% ${color magenta2}   ${cpubar cpu4}
    
    ${color goldenrod} Installed Memory:
    
    ${color DarkOrange1}USED:    ${color}$mem ($memperc%)${color DeepSkyBlue1}  ${membar 11,0}
    ${color DarkOrange1}Total:   ${color}$memmax
    
    $color$hr
    
    ${color}   Processes:$color $processes  ${color grey}Running:$color $running_processes
    
    ${color}   (top 3 sorted by CPU usage)
    
    ${color goldenrod} NAME              PID    CPU%   MEM%
    ${color} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
    ${color} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
    ${color} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
    
    ${color}   (top 3 sorted by MEM usage)
    
    ${color goldenrod} NAME              PID    CPU%   MEM%
    ${color} ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
    ${color} ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
    ${color} ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
    
    
    $color$hr
    $alignc${color}System Uptime:${color DarkOrange1} $uptime
    
    ${GOTO 15}${color goldenrod}Network eth0${color}
    
    ${GOTO 36}${color DarkOrange1}Upspeed:${GOTO 135}${color}${upspeedgraph eth0 10,75 B7B2AD B7B2AD}
    ${GOTO 36}${color DarkOrange1}Downspeed:${GOTO 135}${color}${downspeedgraph eth0 10,75 B7B2AD B7B2AD}
    ${GOTO 36}${color DarkOrange1}Uploaded:${GOTO 135}${color}${totalup eth0}
    ${GOTO 36}${color DarkOrange1}Downloaded:${GOTO 135}${color}${totaldown eth0}
    ${GOTO 36}${color DarkOrange1}Local IP:${GOTO 135}${color}${addr eth0}
    ${GOTO 36}${color DarkOrange1}Public IP:${GOTO 135}${color}${execi 10000 ~/.conky_scripts/ip.sh}
    
    
    ${color goldenrod} Sensors:
    
    ${color DarkOrange1}Core 0: ${color}${freq 0} MHz     ${color DarkOrange1}Core 1: ${color}${freq 1} MHz  
    ${color DarkOrange1}Core 2: ${color}${freq 2} MHz     ${color DarkOrange1}Core 3: ${color}${freq 3} MHz
    
    
    ${color DarkOrange1}Temp1:   ${color}${exec sensors|grep temp1 | tr -s ' ' |cut -d ' ' -f2| cut -d '°' -f1} C     ${color DarkOrange1}Fan1:   ${color}${exec sensors|grep fan1 | tr -s ' ' |cut -d ' ' -f2} RPM
    ${color DarkOrange1}Temp2:   ${color}${exec sensors|grep temp2 | tr -s ' ' |cut -d ' ' -f2| cut -d '°' -f1} C     ${color DarkOrange1}Fan2:   ${color}${exec sensors|grep fan2 | tr -s ' ' |cut -d ' ' -f2} RPM
    ${color DarkOrange1}Temp3:   ${color}${exec sensors|grep temp3 | tr -s ' ' |cut -d ' ' -f2| cut -d '°' -f1} C     ${color DarkOrange1}Fan3:   ${color}${exec sensors|grep fan3 | tr -s ' ' |cut -d ' ' -f2} RPM
    

    I don't know if the above will be of use, but it displays here with transparent background.
    I have included temps and fan speeds, as well as network speeds and traffic data.
    I use colours that are suitable to the background I use, so you will need to change those I guess.

    Some of the info .... like the Public IP address is generated with small scripts which conky accesses.

    I have the conkyrc file under
    /home/user/ .... and do not use a sub folder, so the conky command is simply 'conky'.

    This is what it looks like:-

    2wext93.jpg

    Note: I killed the Public IP address command so it is missing from the pic. ;)
    Two of the temp sensors on this Dell machine give weird readings ..... but I use the same config file on several machines so I just ignore the readings :D

    Hope that helps a bit.


Advertisement