Zapewne na różnych obrazkach ze zrzutami systemu Linux widzieliście bardzo pomocne panele na tapecie gdzie były widoczne wszystkie informacje o systeme jak
- aktulalne obciążenie procesora
- ilość wykorzystanej pamięci RAM
- ilość pobranych danych w aktualnej sesji
- obciążenie łącza internetowego
- temperatura procesora
itp.
Instalacja takiego narzędzia jest bardzo prosta. Należy zainstalować program conky:
1 |
sudo apt-get install conky |
Następnie edytujemy plik konfiguracyjny tego programu:
1 |
gedit ~/.conkyrc |
I zmieniamy domyślny szablon programu. W sieci jest bardzo duża ilość gotowych szablonów.
Poniżej prezentujemy nasz szablon:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 |
background yes use_xft yes xftfont HandelGotD:size=9 xftalpha 0.5 update_interval 1.0 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 200 5 maximum_width 200 draw_shades no draw_outline no draw_borders no draw_graph_borders no default_color white default_shade_color red default_outline_color green alignment top_right gap_x 12 gap_y 48 no_buffers yes uppercase no cpu_avg_samples 2 override_utf8_locale no own_window yes own_window_transparent no own_window_type normal own_window_hints undecorate,sticky,skip_taskbar,skip_pager own_window_title conky TEXT #${offset 240}${color}${font weather:size=26}y ${font}FSB ${i2c temp 1} °C #${offset 240}${color slate grey}Temperature: #${offset 240}${color}${font weather:size=26}z ${font}CPU ${i2c temp 2} °C TEXT ${color slate grey}${time %a, } ${color }${time %e %B %G} ${color slate grey}${time %Z, }${color }${time %H:%M:%S} ${voffset 6}${color}${font OpenLogos:size=30} T ${voffset -20}${color}${font StyleBats:size=12}O ${font}${color slate grey}UpTime: ${color }$uptime ${color}${font StyleBats:size=12}Q ${font}${color slate grey}Kern:${color }$kernel ${color}${font StyleBats:size=12}A ${font}${color slate grey}CPU:${color } $cpu% ${acpitemp}C ${cpugraph 20,140 000000 ffffff} ${color slate grey}Load: ${color }$loadavg ${color slate grey}Processes: ${color }$processes ${color slate grey}Running: ${color }$running_processes ${color}${font Webdings:size=12}i ${font}${color slate grey}Highest CPU: ${color #ddaa00} ${top name 1}${top cpu 1} ${color lightgrey} ${top name 2}${top cpu 2} ${color lightgrey} ${top name 3}${top cpu 3} ${color}${font Webdings:size=12}i ${font}${color slate grey}Highest MEM: ${color #ddaa00} ${top_mem name 1}${top_mem mem 1} ${color lightgrey} ${top_mem name 2}${top_mem mem 2} ${color lightgrey} ${top_mem name 3}${top_mem mem 3} ${color slate grey}MEM: ${color } $memperc% $mem/$memmax ${membar 3,140} ${color slate grey}SWAP: ${color } $swapperc% $swap/$swapmax ${swapbar 3,140} ${color slate grey}ROOT: ${color }${fs_free /}/${fs_size /} ${fs_bar 3,140 /} ${color slate grey}HOME: ${color }${fs_free /home}/${fs_size /home} ${fs_bar 3,140 /home} ${color slate grey}Internet: ${color}${font PizzaDude Bullets:size=12}M${font} Tot.up. ${totalup eth0} Kb/s ${voffset 1}${color}${font PizzaDude Bullets:size=12}v${font} Up: ${color }${upspeed eth0}k/s ${upspeedgraph eth0 20,140 000000 ffffff} ${voffset 6}${color}${font PizzaDude Bullets:size=12}S${font} Tot.dow. ${totaldown eth0} Kb/s ${voffset 1}${color}${font PizzaDude Bullets:size=12}r${font} Down: ${color }${downspeed eth0}k/s ${downspeedgraph eth0 20,140 000000 ffffff} |
W szablonie użytko interfejsu
1 |
eth0 |
jako głównego interfejsu gdzie jest łącze internetowe. Jeśli korzystacie z WIFI – zamieńcie te wystąpienia na
1 |
wlan0 |
Aby ponownie załadować szablon wyłączmy „starą” instancję programu
1 |
killall conky |
i załadujcie program od nowa:
1 |
conky |