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

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

Run Conky from your desktop 
conky &

Popular posts from this blog

Useful website performance and load testing tools

http://tsung.erlang-projects.org/ http://httpd.apache.org/docs/2.0/programs/ab.html http://phantomjs.org/ https://developers.google.com/speed/pagespeed/ http://servermonitoringhq.com/blog/how_to_quickly_stress_test_a_web_server https://code.google.com/p/httperf/ http://loadimpact.com/ http://www.paessler.com/webstress http://loaduiweb.org/ http://en.wikipedia.org/wiki/Web_server_benchmarking http://en.wikipedia.org/wiki/Load_testing http://www.loadui.org/ http://www.loadtestingtool.com/index.shtml http://www.appdynamics.com/blog/devops/load-testing-tools-explained-the-server-side/

VMWare ESXi 6.5 HP Custom Image Upgrade to v6.5U3

I had been escaping the Unhandled Exception error every time I log into my ESXi standalone server running v6.5 on N54L and can't be upgraded to v6.7 due to process compatibility. I have finally found the HP Custom image updated to v6.5U3 which appeared to have the fix built into it. It was quite straightforward update using the l latest 6.5 HP image so as habit I am making notes here for myself and everyone else who may find it useful. First of all I downloaded HP Custom v6.5U3 image  by selecting Offline Bundle. I then placed it in my datastore e.g. ds001. Once copied I ran following command line after I was connected to ESXi using ssh. # esxcli software vib update -d /vmfs/volumes/ds001/VMware-ESXi-6.5.0-Update3-14990892-HPE-preGen9-650.U3.9.6.10.1-Dec2019-depot.zip This command took few seconds or may be minutes but confirmed that updates have been installed and will take effect after reboot. So I rebooted the host and it worked like magic. # reboot I did not place host in main...

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