Conky system monitor
After google-ing a little bit for a system monitor solution I have decided to go with conky. The installation, on my FreeBSD 6.3 desktop, was as simple as :
cd /usr/ports/sysutils/conky/ && make install clean
After the port was installed all I needed to to was to edit .conkyrc as following :
# A comprehensive conky script, configured for use on
# Ubuntu / Debian Gnome, without the need for any external scripts.
#
# Based on conky-jc and the default .conkyrc.
# INCLUDES:
# – tail of /var/log/messages
# – netstat connections to your computer# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type override
own_window_transparent no
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes# fiddle with window
use_spacer yes
use_xft no# Update interval in seconds
update_interval 3.0# Draw shades?
draw_shades no# Text stuff
draw_outline no # amplifies text if yes
draw_borders no
font arial
uppercase no # set to yes if you want all text to be in uppercase# Stippled borders?
stippled_borders 3# border margins
border_margin 9# border width
border_width 10# Default colors and also border colors, grey90 == #e5e5e5
default_color e5e5e5own_window_colour brown
own_window_transparent yes# Text alignment, other possible values are commented
alignment top_right# Gap between borders of screen and text
gap_x 10
gap_y 10
# stuff after ‘TEXT’ will be formatted on screen
TEXT
$color
${color blue}SYSTEM ${hr 2}$color
$nodename $sysname on $machine Up: ${uptime}${color blue}CPU ${hr 2}$color
Freq : ${freq}MhZ Load: ${loadavg}
$cpubar
${cpugraph 990033 cc3300}
NAME PID CPU% MEM%
${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
${top name 5} ${top pid 5} ${top cpu 5} ${top mem 5}${color blue}MEMORY / DISK ${hr 2}$color
RAM: $memperc% ${membar 6}$color
Swap: $swapperc% ${swapbar 6}$color${color blue}HDD usage ${hr 2}$color
Root : ${fs_free_perc /}% ${fs_bar 6 /}$color
Store: ${fs_free_perc /home/store}% ${fs_bar 6 /home/store}$color
Stuff: ${fs_free_perc /home/stuff}% ${fs_bar 6 /home/stuff}
/var : ${fs_free_perc /var}% ${fs_bar 6 /var}
/tmp : ${fs_free_perc /tmp}% ${fs_bar 6 /tmp}
/usr : ${fs_free_perc /usr}% ${fs_bar 6 /usr}${color blue}NETWORK (${addr eth0}) ${hr 2}$color
rl0 ${alignr}${addr rl0}
down: ${downspeedf rl0}k/s ${alignr}up: ${upspeedf rl0}k/s
${downspeedgraph rl0 20,148 990033 cc3300} ${alignr}${upspeedgraph rl0 20,148 000000 00ff00}
Total: ${totaldown rl0} ${alignr}Total: ${totalup rl0}${color blue}LOGGING ${hr 2}$color
${execi 30 tail -n3 /var/log/messages | fold -w50}${color blue}Calendar ${hr 2}$color
${color lightgrey}${execi 1 ~/scripts/calendar.sh first_part}${color red}${execi 1 ~/scripts/calendar.sh today }${color }${execi 1 ~/scripts/calendar.sh second_part}${color blue}Weather ${hr 2}$color
${color lightgrey}${execi 1 ~/scripts/weather/weather.sh ROXX0003}${color blue}FORTUNE ${hr 2}$color
${execi 120 fortune /usr/local/share/games/fortune/bofh | fold -w50}
In order to be able to see the calendar and weather sections you need to create a folder scripts in your home dir and follow the next steps :
mkdit ~/scripts
cd ~/scripts
wget http://blog.new-order.org/files/caledar.sh
wget http://blog.new-order.org/files/weather.tar.bz2 && tar jxvf weather.tar.bz2
This is what it cammed out. Now all you have to do is start conky by opening a terminal and typing :
conky &
or you can make it start automatically when you login into your preferred WM.
You can read the man pages or google a little bit in order to personalize it as much as you want. Happy monitoring

