31 enero, 2009

mi conkyrc

background yes
cpu_avg_samples 2
net_avg_samples 2
out_to_console yes
use_xft yesf
xftfont matrix :size=6
own_window yes
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_type normal
xftalpha 0.8
update_interval 1.0
double_buffer yes
minimum_size 10 10
maximum_width 320
draw_shades yes
draw_outline yes
draw_borders yes
stippled_borders 2
border_width 0
alignment bottom_left
use_spacer yes
no_buffers yes
uppercase no

${color green}${hr}$color
TEXT
${color purple}La tostadora de Neo: $kernel
${color green}${hr}$color
${color red}CPU $color ${cpu cpu1}% ${color yellow}Uptime:$color $uptime ${color red} Temp: $color ${acpitemp}cº
${color green}${cpugraph cpu1 78af78 a3a3a3}
${color green}Procs:$color $processes ${color green}Running:$color $running_processes
${color green}Ram:
$color $mem/$memmax - ${color white}$memperc% $membar
${color #00ff00}Swap Usado:
$color $swap/$swapmax - ${color red}$swapperc% ${swapbar}
${color red}Espacio libre:
${color}Raiz ${color}${fs_used /}/${fs_size /}${alignr}${color green}${fs_bar 5,120 /}
${color}/home ${color}${fs_used /home}/${fs_size /home}${alignr}${color green}${fs_bar 5,120 /home}
${color green}${hr}$color
${color yellow}CPU Activos:
${color green}Name PID CPU% MEM%
$color ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
$color ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
$color ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
$color ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
$color ${top name 5} ${top pid 5} ${top cpu 5} ${top mem 5}
${color yellow}${hr}$color
${color #00ff00}RAM Activos:
$color ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
$color ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
$color ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
$color ${top_mem name 4} ${top_mem pid 4} ${top_mem cpu 4} ${top_mem mem 4}
$color ${top_mem name 5} ${top_mem pid 5} ${top_mem cpu 5} ${top_mem mem 5}
${color green}${hr}$color
${color green}Ethernet: eth0 - ${addr eth0}
${color red}Net Down: ${downspeed eth0} k/s${color green} ${offset 62}Net Up:$color ${upspeed eth0} k/s
${color purple}${downspeedgraph eth0 22,150 104E8B 0077ff} $alignr${color #0077ff}${upspeedgraph eth0 22,150 104E8B 0077ff}
${color green}Wifi: eth1 - ${addr eth1}
${color yellow}Net Down:$color ${downspeed eth1} k/s${color red} ${offset 62}Net Up:$color ${upspeed eth1} k/s
${color brown}${downspeedgraph eth1 22,150 104E8B 0077ff} $alignr${color green}${upspeedgraph eth1 22,150 104E8B 0077ff}
${color purple}${hr}$color
${color yellow}Port(s)${alignr}#Connexiones
$color ALL: ${alignr}$color ${tcp_portmon 1 65535 count}
${color orange}Port(s)${alignr}#INPUT
${color purple}Remote Address ${alignr} Local Service/Port$color
${tcp_portmon 1 65535 rhost 0} ${alignr} ${tcp_portmon 1 65535 lservice 0}
${tcp_portmon 1 65535 rhost 1} ${alignr} ${tcp_portmon 1 65535 lservice 1}
${tcp_portmon 1 65535 rhost 2} ${alignr} ${tcp_portmon 1 65535 lservice 2}
${tcp_portmon 1 65535 rhost 3} ${alignr} ${tcp_portmon 1 65535 lservice 3}
${tcp_portmon 1 65535 rhost 4} ${alignr} ${tcp_portmon 1 65535 lservice 4}
${tcp_portmon 1 65535 rhost 5} ${alignr} ${tcp_portmon 1 65535 lservice 5}
${color red}Port(s)${alignr}#OUTPUT
${color purple}${hr}$color
${color green}Remote Address ${alignr} Local Service/Port$color
${tcp_portmon 1 65535 rhost 0} ${alignr} ${tcp_portmon 1 65535 rservice 0}
${tcp_portmon 1 65535 rhost 1} ${alignr} ${tcp_portmon 1 65535 rservice 1}
${tcp_portmon 1 65535 rhost 2} ${alignr} ${tcp_portmon 1 65535 rservice 2}
${tcp_portmon 1 65535 rhost 3} ${alignr} ${tcp_portmon 1 65535 rservice 3}
${tcp_portmon 1 65535 rhost 4} ${alignr} ${tcp_portmon 1 65535 rservice 4}
${tcp_portmon 1 65535 rhost 5} ${alignr} ${tcp_portmon 1 65535 rservice 5}
${color orange}${hr}$color
${color red}Wifi$color
${color green}ESSID: ${color orange}$alignr${wireless_essid eth1}
${color blue}link quality max $alignr${wireless_link_qual_max eth1}
${color purple}AP's MAC $alignr${wireless_ap eth1}
${color yellow}Quality: $alignr${color red}${wireless_link_qual_perc eth1}% (${wireless_bitrate eth1})
${wireless_link_bar eth1}
${color orange}${hr}$color
${color red}battery:$alignr ${battery}
${color blue}batetery time: $alignr${battery_time}
${color yellow}battery percent: $alignr${battery_percent}%

30 enero, 2009

screenshot usando la consola (por que mi plug in no servia -.-)

see queria tomar un screenshot en xfce y tomalas.. que no habia con que -.- y segun eso el plug in estaba instalado pero ah que mas da.

instalar imagemagick

y se usa algo asi

import -window root imagen.png y ya hahaha

28 enero, 2009

Mi sources.list

deb http://mmc.igeofcu.unam.mx/debian/ lenny main contrib non-free
deb-src http://mmc.igeofcu.unam.mx/debian/ lenny main contrib non-free
deb http://security.debian.org/ lenny/updates main contrib non-free
deb-src http://security.debian.org/ lenny/updates main contrib non-free

#para que chin.. quiero mas? son de la unam =)

24 enero, 2009

color prompt

bueno ahi tengo una vieja pc sin X y el blanco y negro me daba hueva y mire como cambiar el color y ahora es verde modificando el $HOME/.bashrc al final le puse esta exprecion que encontre en la red no se el autor o.O

PS1="\[\e[32m\]\u@\h:\w\$\[\e[m\] "

y en root

PS1="\[\e[31m\]\h:\w#\[\e[m\] "


uno verde el otro rojo xD chevere

02 enero, 2009

Debian. compilar kernel debian a la manera mas huevona (haragan o sin esfuerzo para los que no sean de Mèxico)

instalamos estos paquetes que son necesarios:

build-essential
linux-headers-$(uname -r)
libncurses5-dev
kernel-package

entramos en

www.kernel.org
y bajamos el source
wget ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.27.8.tar.gz

ya que lo bajas lo descomprimes
tar -zvxf linux-2.6.28.tar.gz

entra en el directorio que te creo y pon
make clean
make menuconfig

si tienes un .config lo puedes cargar si no configura tu kernel ahi mismo

compilalo asi

make-kpkg --initrd kernel_image kernel_headers

el --initrd te crea una imagen initrd en el pakage que se va a guardar en /boot kernel_image kernel_headers crean dos paquetes .deb uno es el kernel y otro son los headers estos los crea en el directorio superior

lo instalas con
dpkg -i paquete.deb

y ya =) enjoy

(lo hice con una p3 a 800 mhz y 64 en ram tardo 2 dias -.-)