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/

Copy files and folders using SCP with spaces in path

Copying data from one system to other with file or folder names that contain spaces in path can be achieved using this guide. In this case I am copying data from Macbook to Windows 10 computer. In order to copy the data easily it is better to use bash commands. Windows computer can support WSL (Windows subsystem for Linux) and you can run one of few linux distributions to use shell commands. I have Ubuntu set up within my Windows 10 using WSL. If you do not have WSL, you can set it up using my guide here . The copy can be performed in two ways: 1) Using SCP Source (MacOs) path: /home/Users/username/Documents/data extract from 2020/ First of all you add escape sequence to the path so it will become:  /home/Users/me/Documents/data\ extract\ from\ 2020/ . While this works on local system for SCP you'll have to double the escape sequences by replacing \ with \\, as below. Figure out your source computer IP address using "ifconfig" command. Now using scp command on target syst...

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