Skip to main content

Install and configure Conky on Ubuntu Linux desktop or server

Install Conky
$ sudo apt-get install conky -y

$ touch /home/user/.conkyrc
$ vi .conkyrc # and add following details in ++++
$ conky &

user@server:~$ cat .conkyrc
##################Start of Config File##############################
background yes
use_xft yes
xftfont 123:size=8
xftalpha 0.1
update_interval 0.5
total_run_times 0
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 250 5
maximum_width 400
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color gray
default_shade_color red
default_outline_color green
alignment top_left
gap_x 10
gap_y 10
no_buffers no
uppercase no
cpu_avg_samples 2
net_avg_samples 1
override_utf8_locale yes
use_spacer right
text_buffer_size 256

TEXT
${font openlogos:size=20}the${font Arial:size=20}${color Tan1}Server${color Ivory}Name${font openlogos:size=20}
${voffset -90}
${color DimGray}
${font}
${font Arial:bold:size=10}${color Tan1}SYSTEM ${color DarkSlateGray} ${hr 2} $font${color DimGray}
#$sysname $kernel $alignr $machine
Processor $alignr${freq_g cpu0}Ghz
Uptime $alignr${uptime}
Load $alignr $loadavg
#File System $alignr${fs_type}
Hostname $alignr $nodename
eth1 $alignr ${addr eth1}

${font Arial:bold:size=10}${color Tan1}PROCESSORS ${color DarkSlateGray}${hr 2} $font${color DimGray}
CPU  ${cpu cpu0}% ${cpubar cpu0}
$color${cpugraph cpu0 000000 0077ff}
#CPU1  ${cpu cpu1}% ${cpubar cpu1}
#CPU2  ${cpu cpu2}% ${cpubar cpu2}
${font Arial:bold:size=10}${color Tan1}MEMORY ${color DarkSlateGray}${hr 2}
$font${color DimGray}MEM $alignc $mem / $memmax $alignr $memperc%
$membar
${memgraph 000000 0077ff}
${font Arial:bold:size=10}${color Tan2}NETWORK ${color DarkSlateGray}${hr 2} $font${color DimGray}
#IP on eth1 $alignr ${addr eth1}
Down: ${downspeed eth1} $alignr Up: ${upspeed eth1}
Downloaded: ${totaldown eth1} $alignr Uploaded: ${totalup eth1}
${downspeedgraph eth1 27,120 000000 0077ff 180} ${upspeedgraph eth1 27,120 000000 0077ff 25}

${font Arial:bold:size=10}${color Tan1}HDD ${color DarkSlateGray}${hr 2}
$font${color DimGray}/ $alignc ${fs_used /} / ${fs_size /} $alignr ${fs_free_perc /}%
${fs_bar /}
HD IO: ${color lightgrey}${diskio} ${alignr}
${color #0077ff}${diskiograph 000000 0077ff}
#/disk $alignc ${fs_used /media/disk} / ${fs_size /media/disk} $alignr ${fs_free_perc /media/disk}%
#${fs_bar /media/disk}
#/disk-1 $alignc ${fs_used /media/disk-1} / ${fs_size /media/disk-1} $alignr ${fs_free_perc /media/disk-1}%
#${fs_bar /media/disk-1}
#Inbound: ${downspeed eth1} $alignr ${upspeed eth1}:Outbound
${font Arial:bold:size=10}${color Tan1}TOP PROCESSES ${color DarkSlateGray}${hr 2} $font${color DimGray}
#$font${top_mem name 2}${alignr}${top mem 2} %
#$font${top_mem name 3}${alignr}${top mem 3} %
#$font${top_mem name 4}${alignr}${top mem 4} %
#$font${top_mem name 5}${alignr}${top mem 5} %
#$font${top_mem name 6}${alignr}${top mem 6} %
NAME $alignr PID    CPU   MEM
$font${top name 1} $alignr ${top pid 1} ${top cpu 1} ${top mem 1}
$font${top name 2} $alignr ${top pid 2} ${top cpu 2} ${top mem 2}
$font${top name 3} $alignr ${top pid 3} ${top cpu 3} ${top mem 3}
$font${top name 4} $alignr ${top pid 4} ${top cpu 4} ${top mem 4}
$font${top name 5} $alignr ${top pid 5} ${top cpu 5} ${top mem 5}
$font${top name 6} $alignr ${top pid 6} ${top cpu 6} ${top mem 6}

#${font Arial:bold:size=10}${color Tan2}WEATHER ${color DarkSlateGray}${hr 2} ${font}${color DimGray}

#${voffset -25}${font Weather:size=45}${execi 1800 conkyForecast –location=BEXX0008 –datatype=WF}
#${alignc 22}${voffset -60}${font Arial:bold:size=10}${color DimGray}${execi 1800 conkyForecast –location=BEXX0008 –datatype=HT}
#$font${voffset -55}${alignr}${color DimGray}Wind: ${execi 1800 conkyForecast –location=BEXX0008 –datatype=WS}
#${alignr}${color DimGray}Humidity: ${execi 1800 conkyForecast –location=BEXX0008 –datatype=HM}
#${alignr}${color DimGray}Precipitation: ${execi 1800 conkyForecast –location=BEXX0008 –datatype=PC}

#${color DimGray}Sunrise: $alignr${execi 1800 conkyForecast –location=BEXX0008 –datatype=SR}${alignr}
#Sunset: $alignr${execi 1800 conkyForecast –location=BEXX0008 –datatype=SS}$color

#${font Arial:bold:size=10}${color Tan2}MUSIC ${color DarkSlateGray}${hr 2} ${color DimGray}
#$font${if_running mpd}

#${font Arial:bold:size=10}${color Tan2}TIME ${color DarkSlateGray}${hr 2}

#${color DarkSlateGray} ${font :size=30}$alignc${time %H:%Mh}
#${voffset -30}${font :bold:size=10}$alignc${time %d %b. %Y}
#${font :bold:size=8}$alignc${time %A}
#$endif
############################END Config##############################

See latest updates to conky config on below blog.
http://blog.kamranshah.com/2011/09/install-and-configure-conky-stats.html

Popular posts from this blog

TrueCrypt on macOS X Mojave 10.14

If you have updated your macOS recently to Mojave otherwise known as verison 10.14 you may not be able to install the last version of Truecrypt in order to access your old volumes encrypted with Truecrypt software. This article will guide you to get this working on your MacOS v10.14 (Mjoave) . Download the package from  https://truecrypt.ch/downloads/  or  https://www.truecrypt71a.com/downloads/ . Find downloaded package using Finder in your HDD/Users/username/Downloads folder and will look like  TrueCrypt 7.1a Mac OS X.dmg . Open file location in Finder and open or double click on  TrueCrypt 7.1a Mac OS X.dmg . This will mount Truecrypt 7.1a and will have Truecrypt 7.1a.mpkg in it. Drag the package T rueCrypt 7.1a.mpkg and drop in your Downloads folder. From Locations in Finder you can eject your TrueCrypt mount. Now go to your Downloads location, find the file  TrueCrypt 7.1a.mpkg , right click and select Show Package Contents . Find the file Contents/distribution.di

Starting with Python

New to Python, don't feel behind and get started now, it is never too late. Here we have some useful links you will need to get you going. https://realpython.com/start-here/ https://www.anaconda.com/distribution/ https://jupyterlab.readthedocs.io/en/stable/ Install Python 3 # sudo apt-get install python3 Change Default binary from v2.x to v3.x sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 10 Install Jupyterlab #pip install jupyterlab

CoVid-19 Statistics and Charts

Statistics based on some specific metrics are listed below. The data is based on daily information from Worldometer and updated manually. Charts will update automatically. Please use links below to get to individual charts and feel free to bookmark this page but do not bookmark direct chart link as it may change. These charts compare statistics for countries including China, Italy, UK, US, Pakistan & India. (Does not work in Safari Mobile) Please click on links below for specific chart, more to come. Death Doubling Rate Chart showing death rate doubling in x number of days. Survival Rate This chart shows trend of patients successfully recovered vs total closed cases. Death rate comparison Comparison of deaths per cases every day showing trend comparison and days behind. Cases reported No of cases reported, how far they are behind each other and trend. Deaths reported No of deaths reported with trend comparison betwee