Google+ Leido en Igoogle (y otros): Conky de puertos abiertos

jueves, 5 de septiembre de 2013

Conky de puertos abiertos

En conky manager instalando el pack deluxe desde su blog ...
Encontraremos el conky modular Metro

El mio lo he modificado un poco a mano

De todos los móduios el que mas gracia me hace es el de puertos abiertos

Es muy sospechoso que entrando a google o facebook nos de una cantidad de unos 30 ¿Que harán todas esas conexiones? si no son necesarias tantas para el servicio que usamos.

Os comparto aqui mi escritorio y mi conky de puertos basado en Metro además de sus acompañantes modulares que coloqué "a mano" con prueba y error en un escritorio XFCE 16:9 a 720p.



omito la autoría dentro de cada archivo pero el encabezado en este aspecto dice
# Name: Metro Style Conky
# Author: Kant-o (feedback via gnome-look).

Al que se le agradece y reconoce desde aqui su trabajo

conky.conf.25 , Puertos Abiertos, el verde oscuro, abajo a la derecha

alignment bottom_right
background yes
border_width 0
cpu_avg_samples 1
default_color ffffff
draw_outline no
draw_borders no
draw_shades no
use_xft yes
xftfont Ubuntu:size=12

# size of text area
minimum_size 260 220
maximum_width 240
max_text_width 240

no_buffers yes
out_to_console no
out_to_stderr no
extra_newline no
own_window yes
own_window_transparent no
own_window_class Conky
own_window_type normal
own_window_hints undecorated,sticky,skip_taskbar,skip_pager,below
stippled_borders 0
update_interval 1.0
uppercase no
use_spacer none
show_graph_scale no
show_graph_range no

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

own_window_colour 136659
update_interval 5

gap_x 0
gap_y 0
own_window_argb_visual no
TEXT
${goto 30}${font Ubuntu:size=14,weight:normal}${color}Open ports : ${color2}${tcp_portmon 1 65535 count}
${goto 40 }${font Ubuntu:size=12,weight:bold}${color}${offset 10}IP${alignr} DPORT

${goto 20}${font Ubuntu:size=10,weight:normal}${color1}${tcp_portmon 1 65535 rip  0}${alignr 1}${tcp_portmon 1 65535 rport  0}
${goto 20}${font Ubuntu:size=10,weight:normal}${color1}${tcp_portmon 1 65535 rip  1}${alignr 1}${tcp_portmon 1 65535 rport  1}
${goto 20}${font Ubuntu:size=10,weight:normal}${color1}${tcp_portmon 1 65535 rip  2}${alignr 1}${tcp_portmon 1 65535 rport  2}
${goto 20}${font Ubuntu:size=10,weight:normal}${color1}${tcp_portmon 1 65535 rip  3}${alignr 1}${tcp_portmon 1 65535 rport  3}
${goto 20}${font Ubuntu:size=10,weight:normal}${color1}${tcp_portmon 1 65535 rip  4}${alignr 1}${tcp_portmon 1 65535 rport  4}
${goto 20}${font Ubuntu:size=10,weight:normal}${color1}${tcp_portmon 1 65535 rip  5}${alignr 1}${tcp_portmon 1 65535 rport  5}
${goto 20}${font Ubuntu:size=10,weight:normal}${color1}${tcp_portmon 1 65535 rip  6}${alignr 1}${tcp_portmon 1 65535 rport  6}
${goto 20}${font Ubuntu:size=10,weight:normal}${color1}${tcp_portmon 1 65535 rip  7}${alignr 1}${tcp_portmon 1 65535 rport  7}
${goto 20}${font Ubuntu:size=10,weight:normal}${color1}${tcp_portmon 1 65535 rip  8}${alignr 1}${tcp_portmon 1 65535 rport  8}
${goto 20}${font Ubuntu:size=10,weight:normal}${color1}${tcp_portmon 1 65535 rip  9}${alignr 1}${tcp_portmon 1 65535 rport  9}

conky.conf.11 Dia hora y fecha, el rojo, arriba a la derecha 

alignment top_right
background yes
border_width 0
cpu_avg_samples 2
default_color ffffff
draw_outline no
draw_borders no
draw_shades no
use_xft yes
xftfont Ubuntu:size=12
gap_x 0
gap_y 0

# size of text area
minimum_size 260 100
maximum_width 240
max_text_width 240

net_avg_samples 2
no_buffers yes
out_to_console no
out_to_stderr no
extra_newline no
own_window yes
own_window_transparent no
own_window_class Conky
own_window_type normal
own_window_hints undecorated,sticky,skip_taskbar,skip_pager,below
stippled_borders 0
update_interval 1.0
uppercase no
use_spacer none
show_graph_scale no
show_graph_range no

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

own_window_colour F64949

own_window_argb_visual no
TEXT
${font Ubuntu:size=18}Hoy es ${time %A}$font
${voffset 10}#
${font Ubuntu:size=14}${time %H:%M}${font Ubuntu:size=10}${time %S}$font
${time %d de %B del %Y}
#${voffset -33}${offset 147}${execbar /etc/conky/./bar.sh %H 23}
#${voffset -13}${offset 147}${execbar /etc/conky/./bar.sh %M 59}
#${voffset -13}${offset 147}${execbar /etc/conky/./bar.sh %S 59}
#${offset 2}${time %A}
#${offset 2}${time %B} ${time %d}, ${time %Y}
#${voffset -5}${execbar /etc/conky/./bar.sh %w 7}
#${voffset -13}${execbar /etc/conky/./bar.sh %W 56}
#${voffset -13}${execbar /etc/conky/./bar.sh %m 12}
#${offset 2}Computer info $hr
#${offset 2}CPU${top cpu 1}% ${top name 1}
#${voffset -5}$cpubar
#${offset 2}RAM${top mem 1}% ${top_mem name 1}
#${voffset -5}$membar
#${offset 2}Swap
#${voffset -5}$swapbar
#${offset 2}HD   ${fs_used /}/${fs_size /}
#${offset 2}HD   ${fs_used /media/Media}/${fs_size /media/Media}
#${voffset -5}$fs_bar
#${offset 2}Networking
#${voffset -5}${downspeedgraph enp2s0 6,120}${upspeedgraph enp2s0 6,119}

#${voffset -13}${downspeedgraph enp2s0 6,120}${upspeedgraph enp2s0 6,119}

conky.conf.12  Procesos en uso, el azul claro, el segundo a la derecha

alignment top_right
background yes
border_width 0
cpu_avg_samples 1
default_color ffffff
draw_outline no
draw_borders no
draw_shades no
use_xft yes
xftfont Ubuntu:size=12

# size of text area
minimum_size 260 220
maximum_width 240
max_text_width 240

no_buffers yes
out_to_console no
out_to_stderr no
extra_newline no
own_window yes
own_window_transparent no
own_window_class Conky
own_window_type normal
own_window_hints undecorated,sticky,skip_taskbar,skip_pager,below
stippled_borders 0
update_interval 1.0
uppercase no
use_spacer none
show_graph_scale no
show_graph_range no

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

own_window_colour 00B4DF
update_interval 5

gap_x 0
gap_y 130
own_window_argb_visual no
TEXT
${font Ubuntu:size=18}${top name 1}$font
using${top cpu 1}% CPU
     ${top mem_res 1} of RAM
${voffset 12}
${font Ubuntu:size=8}$alignr CPU  ..  Memory$font
${top name 2}${font Ubuntu:size=8:bold}$alignr ${top cpu 2}% .. ${top mem_res 2}
$stippled_hr
${top name 3}${font Ubuntu:size=8:bold}$alignr ${top cpu 3}% .. ${top mem_res 3}
$stippled_hr
${top name 4}${font Ubuntu:size=8:bold}$alignr ${top cpu 4}% .. ${top mem_res 4}
$stippled_hr

${top name 5}${font Ubuntu:size=8:bold}$alignr ${top cpu 5}% .. ${top mem_res 5}

conky.conf.13 Uso de procesadores memoria y temperatura, naranja, el penúltimo a la derecha

alignment top_right
background yes
border_width 0
cpu_avg_samples 2
default_color ffffff
default_outline_color black
default_shade_color black
draw_outline no
draw_borders no
draw_shades no
use_xft yes
xftfont Ubuntu:size=12
gap_x 0
gap_y 360

# size of text area
minimum_size 260 100
maximum_width 240
max_text_width 240

net_avg_samples 2
no_buffers yes
out_to_console no
out_to_stderr no
extra_newline no
own_window yes
own_window_transparent no
own_window_class Conky
own_window_type normal
own_window_hints undecorated,sticky,skip_taskbar,skip_pager,below
stippled_borders 0
update_interval 1.0
uppercase no
use_spacer none
show_graph_scale no
show_graph_range no

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

own_window_colour E19E19

own_window_argb_visual no
TEXT
${font Ubuntu:size=18}CPU & Memory$font
#----------------------------------------------------------------------------------------------------------------------------------------
#           CPU usage
#----------------------------------------------------------------------------------------------------------------------------------------
FREQ:${freq}MHz TEMP ${hwmon temp 1 }º Celsius
CPU${goto 50}${cpu cpu1}% ${goto 120}${cpu cpu2}% ${goto 190}${cpu cpu3}%
RAM ${membar 10, 161}$alignr$memperc%
$alignr  $mem of $memmax

${goto 4}DISK: ${diskio}${alignr}${diskiograph 8,60 e19e19 ffffff}

conky.conf.14   Red, en azul marino  

# en este caso Manjaro llama a mi habitual eth0,  enpS0 y pueden darse otros casos, cambiad esto si es así además hay veces que no sale pero la puedes reactivar desde el conky manager

alignment top_middle
background yes
border_width 0
cpu_avg_samples 2
default_color ffffff
draw_outline no
draw_borders no
draw_shades no
use_xft yes
xftfont Ubuntu:size=12
gap_x -250
gap_y 340

# size of text area
minimum_size 260 140
maximum_width 240
max_text_width 240

net_avg_samples 2
no_buffers yes
out_to_console no
out_to_stderr no
extra_newline no
own_window yes
own_window_transparent no
own_window_class Conky
own_window_type normal
own_window_hints undecorated,sticky,skip_taskbar,skip_pager,below
stippled_borders 0
update_interval 1.0
uppercase no
use_spacer none
show_graph_scale no
show_graph_range no

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

own_window_colour 034C93

own_window_argb_visual no
TEXT
${font Ubuntu:size=15}Hostname: $nodename$font

${if_up enp2s0}#
${font Ubuntu:size=8}${addr enp2s0} (WAN) ${pre_exec wget -O - http://ip.tupeux.com | tail} (MAN)
$font
Download ${font Ubuntu:size=10}$alignr Total: ${totaldown enp2s0}
${downspeed enp2s0}/s$font$alignr${color 034c93}${downspeedgraph enp2s0 15,150 034c93 ffffff -l}$color
Upload ${font Ubuntu:size=10}$alignr Total: ${totalup enp2s0}
${upspeed enp2s0}/s$font$alignr${color 034c93}${upspeedgraph enp2s0 15,150 034c93 ffffff -l}$color
$else#

${if_up eth0}#
${font Ubuntu:size=8}${addr eth0} (LAN) ${pre_exec wget -O - http://ip.tupeux.com | tail} (MAN)
$font
Download ${font Ubuntu:size=10}$alignr Total: ${totaldown eth0}
${downspeed eth0}/s$font$alignr${color 034c93}${downspeedgraph eth0 15,150 034c93 ffffff -l}$color
Upload ${font Ubuntu:size=10}$alignr Total: ${totalup eth0}
${upspeed eth0}/s$font$alignr${color 034c93}${upspeedgraph eth0 15,150 034c93 ffffff -l}$color

$else#

No network.
$endif#
$endif#

conky.conf.21 Nucleo y procesos activos - y actualizaciones en deb - ,en verde claro

alignment top_middle
background yes
border_width 0
cpu_avg_samples 2
default_color ffffff
draw_outline no
draw_borders no
draw_shades no
use_xft yes
xftfont Ubuntu:size=12
gap_x -250
gap_y 0

# size of text area
minimum_size 260 80
maximum_width 240
max_text_width 240

no_buffers yes
out_to_console no
out_to_stderr no
extra_newline no
own_window yes
own_window_transparent no
own_window_class Conky
own_window_type normal
own_window_hints undecorated,sticky,skip_taskbar,skip_pager,below
stippled_borders 0
update_interval 1.0
uppercase no
use_spacer none
show_graph_scale no
show_graph_range no

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

own_window_colour 5DB80F

own_window_argb_visual no
TEXT

${font Ubuntu:size=20}$sysname$font $kernel
${font Ubuntu:size=10}${pre_exec cat /etc/issue.net}  $machine
Uptime: $uptime
${color }${font caviar dreams:size=8}Process: ${alignr}$processes ($running_processes running)

${color }${font caviar dreams:size=8}Updates: ${execi 360 aptitude search "~U" | wc -l | tail} Packs



conky.conf.23 Sistema de archivos, en morado

alignment top_middle
background yes
border_width 0
cpu_avg_samples 2
default_color ffffff
draw_outline no
draw_borders no
draw_shades no
use_xft yes
xftfont Ubuntu:size=12
gap_x -250
gap_y 130

# size of text area
minimum_size 260 100
maximum_width 240
max_text_width 240

net_avg_samples 2
no_buffers yes
out_to_console no
out_to_stderr no
extra_newline no
own_window yes
own_window_transparent no
own_window_class Conky
own_window_type normal
own_window_hints undecorated,sticky,skip_taskbar,skip_pager,below
stippled_borders 0
update_interval 1.0
uppercase no
use_spacer none
show_graph_scale no
show_graph_range no

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

own_window_colour 6652A2
update_interval 600

own_window_argb_visual no
TEXT
${font Ubuntu:size=16}FileSystem$font
${voffset 3}
Root ${fs_used /} out of ${fs_size /}
${fs_bar 10, 200 /}$alignr$fs_used_perc%
home ${fs_used /home} out of ${fs_size /home}
${fs_bar 10, 200 /home}$alignr${fs_used_perc /home}%
home2 ${fs_used /home2} out of ${fs_size /home2}

${fs_bar 10, 200 /home2}$alignr${fs_used_perc /home2}%





No hay comentarios:

Publicar un comentario

Muchas gracias por comentar