martes, 7 de mayo de 2013

Slackware x64 / Monitor de red "Conky"



Conky: Es un monitor del sistema operativo, muy liviano desarrollado bajo Software Libre; este se encuentra disponible para Linux, FreeBSD y OpenBSD.  Conky permite monitorear CPU, Memoria ram/swap, Discos, redes, procesos y múltiples estancias como enviar email, y plugins para reproducir música entre otros. 


Hoy vamos a dar una introducción de como instalarlo en Slackware a x64 en nuestro caso en las versiones "13-37 o 14".


Instalación:


Paso #1:

Entrar a SlackBuilds buscar y descargar el paquete conky para la versión del slackware que tengamos instalado, en mi caso tengo un 13-37 "Me parece mas estable que el 14.0"


Paso #2

Logearce como root en una terminal "su -" luego ubicarse una carpeta que no comprometa al sistema o que sea de total control libre para manejar paqueteria; en mi caso " cd /usr/local/src"

Allí descargar el SlackBuild del conky:

#wget http://slackbuilds.org/slackbuilds/13.37/system/conky.tar.gz

Descomprimir ese paquete descargado:

#tar xvfz conky.tar.gz

Ingresar al directorio descomprimido:

#cd conky

Descargar el Source del conky:

#wget http://downloads.sourceforge.net/conky/conky-1.9.0.tar.bz2


Paso #3:

Instalar el SlackBuild.
Dentro del directorio conky ejecutar:

#./conky.SlackBuild

Esto al final de la ejecución, informara que creo un paquete en /tmp llamado conky-1.9.0-x86_64-1_SBo.tgz    "/tmp/conky-1.9.0-x86_64-1_SBo.tgz"

Paso #4:

Instalar el paquete tgz:

#installpkg /tmp/conky-1.9.0-x86_64-1_SBo.tgz

Con este paso la instalación de conky queda completa.



Configuración de Conky:


Conky tiene miles de configuraciones, hackers en el mundo han realizado distintas y fantásticas configuraciones ...

En mi caso yo solo tengo la mas simple:

Tengo un usuario en mi sistema que se llama "user", con este usuario es que yo inicio sesión en KDE. En el $home de este usuario, se debe crear un archivo de configuración llamado .conkyrc y en el meter algunas variables para que conky trabaje de una manera predeterminada cada vez que inicie el conky.


En mi caso voy a dejar un pantallazo de como se ve mi escritorio con conky, y que lineas existen dentro de mi .conkyrc




$cat /home/user/.conkyrc

background yes                                                                                                                                                                                                                                                                
use_xft yes                                                                                                                                                                                                                                                                   
xftfont Sans:size=8                                                                                                                                                                                                                                                           
xftalpha 1                                                                                                                                                                                                                                                                    
update_interval 1.0                                                                                                                                                                                                                                                           
total_run_times 0                                                                                                                                                                                                                                                             
own_window yes                                                                                                                                                                                                                                                                
own_window_transparent yes                                                                                                                                                                                                                                                    
#own_window_type desktop                                                                                                                                                                                                                                                      
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager                                                                                                                                                                                                             
double_buffer yes                                                                                                                                                                                                                                                             
minimum_size 200 200                                                                                                                                                                                                                                                          
maximum_width 200                                                                                                                                                                                                                                                             
draw_shades yes                                                                                                                                                                                                                                                               
draw_outline no                                                                                                                                                                                                                                                               
draw_borders no                                                                                                                                                                                                                                                               
draw_graph_borders yes                                                                                                                                                                                                                                                        
default_color white                                                                                                                                                                                                                                                           
default_shade_color black                                                                                                                                                                                                                                                     
default_outline_color white                                                                                                                                                                                                                                                   
alignment top_right                                                                                                                                                                                                                                                           
gap_x 10                                                                                                                                                                                                                                                                      
gap_y 45                                                                                                                                                                                                                                                                      
no_buffers yes                                                                                                                                                                                                                                                                
uppercase no                                                                                                                                                                                                                                                                  
cpu_avg_samples 2                                                                                                                                                                                                                                                             
override_utf8_locale no                                                                                                                                                                                                                                                       
own_window_argb_visual yes                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                              
TEXT                                                                                                                                                                                                                                                                          
${alignc 42}${font Arial Black:size=16}MyMachine${font}                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                              
DATE ${hr 2}                                                                                                                                                                                                                                                                  
${alignc 35}${font Trebuchet MS:size=26}${time %H:%M}${font}
${alignc}${time %a %d %b %Y}


${font sans-serif:bold:size=8}SYSTEM ${hr 2}
${font OpenLogos:size=16}t${font} Kernel:  ${alignr}${kernel}
Host:$alignr$nodename
Uptime:$alignr$uptime
File System: $alignr${fs_type}

${font sans-serif:bold:size=8}PROCESSORS ${hr 2}
${font sans-serif:normal:size=8}${cpugraph cpu1}
CPU1: ${cpu cpu1}% ${cpubar cpu1}
${font sans-serif:normal:size=8}${cpugraph cpu2}
CPU2: ${cpu cpu2}% ${cpubar cpu2}

${font sans-serif:bold:size=8}MEMORY ${hr 2}
${font sans-serif:normal:size=8}RAM $alignc $mem / $memmax $alignr $memperc%
$membar

${font sans-serif:bold:size=8}DISKS ${hr 2}
${font sans-serif:normal:size=8}/ $alignc ${fs_used /} / ${fs_size /} $alignr ${fs_used_perc /}%
${fs_bar /}

${font sans-serif:normal:size=8}/home $alignc ${fs_used /home} / ${fs_size /home} $alignr ${fs_used_perc /home}%
${fs_bar /home}

SWAP $alignc ${swap} / ${swapmax} $alignr ${swapperc}%
${swapbar}

${font sans-serif:bold:size=8}TOP PROCESSES ${hr 2}
${font sans-serif:normal:size=8}${top_mem name 1}${alignr}${top mem 1} %
${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 sans-serif:bold:size=8}NETWORK ${hr 2}
${font sans-serif:normal:size=8}IP address: $alignr ${addr eth0}
ESSID: $alignr ${wireless_essid eth0}
Connection quality: $alignr ${wireless_link_qual_perc eth0}%
${downspeedgraph eth0}
DLS:${downspeed eth0} kb/s $alignr total: ${totaldown eth0}
${upspeedgraph eth0}
ULS:${upspeed eth0} kb/s $alignr total: ${totalup eth0}



Para ejecutar "conky" solo basta con ejecutar en una terminal o en "Ejecutar"  la palabra "conky"

NOTA: Realizando una búsqueda de aproximadamente 2 horas en google, aprenderán a saber que hace cada variable o linea de este archivo.



Espero les guste, espero lo prueben es totalmente genial .. :P


No hay comentarios:

Publicar un comentario