Skip to main content

Install and Configure Conky - a stats widget for your Ubuntu desktop

Install Conky
sudo apt-get install conky -y

Configure Conky config file

touch ~/.conkyrc
vi .conkyrc
#Add below to .conkyrc and tweak it where you want or can
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

${font openlogos:size=20}my${font Arial:size=20}${color Tan1}Portal${color Ivory}Server${font openlogos:size=20}
${voffset -90}
${color DimGray}
${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%
${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}

Run Conky from your desktop 
conky &

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  or . 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

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

Running VNC Server as a Service on Ubuntu

Method 1: VNC Server as a Service on Ubuntu desktop similar to Redhat sysconfig sudo apt-get install vncserver sudo mkdir -p /etc/sysconfig sudo touch /etc/sysconfig/vncservers sudo vi /etc/sysconfig/vncservers # Add following VNC Server instances where username and arguments are defined for each session. VNCSERVERS=" 1:user1 2:user2 3:user3 " VNCSERVERARGS[1]=" -geometry 1280x992 -depth 16 " VNCSERVERARGS[2]=" -geometry 800x600 -depth 8 " VNCSERVERARGS[3]=" -geometry 980x720 " sudo vi /etc/init.d/vncserver # Add below to the service script #!/bin/bash # # chkconfig: - 91 35 # description: Starts and stops vncserver. \ # used to provide remote X administration services. # Source function library. # . /etc/init.d/functions # Source networking configuration. # . /etc/sysconfig/network # Check that networking is up. # [ ${NETWORKING} = "no" ] && exit 0 unset VNCSERVERARGS VNC