Escucha música
un pequeño regalito, viene bien para satisfacer todos los gustos en una fiesta.
Feliz 2009!!!!!!
http://songza.com/
un pequeño regalito, viene bien para satisfacer todos los gustos en una fiesta.
Feliz 2009!!!!!!
http://songza.com/
Posted by Dani 0 comments
Bueno, pues eso, que espero que paséis unas felices navidades y una muy buena entrada de año rodeados de aquellos que más os quieren.
Playing for change: Song around the world "Stand by me"
Posted by Dani 0 comments
Si eres legal, comparte..
http://siereslegalcomparte.com/
Posted by Dani 0 comments
Posted by Dani 1 comments
Posted by Dani 0 comments
Para hacer funcionar el mando a distancia de esta peacho tarjeta,sudo apt-get install lirc lirc-x
configura: (fuente linuxtv.org)Debian: edit /etc/lirc/hardware.conf
DRIVER="dev/input"
DEVICE="/dev/input/eventX"
y para que funcionen las teclas para el kaffeine(gran programa) edita:/etc/lirc/lircd.conf (Works)
con la siguiente información:
begin remote
name Hauppauge-HVR4000-Remote
bits 16
eps 30
aeps 100
one 0 0
zero 0 0
pre_data_bits 16
pre_data 0x8001
gap 133325
toggle_bit_mask 0x8001001C
begin codes
Power 0x0074
Go 0x0161
TV 0x0179
Video 0x0189
Music 0x0188
Pictures 0x016F
Guide 0x016D
Radio 0x0181
Up 0x0067
Down 0x006C
Left 0x0069
Right 0x006A
OK 0x001C
Back/Exit 0x00AE
Menu 0x008B
PrevCh 0x019C
Mute 0x0071
Vol+ 0x0073
Vol- 0x0072
Ch+ 0x0192
Ch- 0x0193
Rec 0x00A7
Stop 0x0080
Play 0x00CF
Pause 0x0077
Rewind 0x00A8
Forward 0x00D0
Replay 0x00A5
Skip 0x00A3
1 0x0002
2 0x0003
3 0x0004
4 0x0005
5 0x0006
6 0x0007
7 0x0008
8 0x0009
9 0x000A
0 0x000B
Text 0x0184
Sub/CC 0x0172
Red 0x018E
Green 0x018F
Yellow 0x0190
Blue 0x0191
end codes
end remote
Para que todo se inicie al arranque del ordenador necesitarás iniciar lircd con permisos de root, para ello edita el fichero /etc/rc.local, añade la carga del demonio lirc allí.
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
logger "iniciando lircd"
sudo lircd --driver=dev/input --device=/dev/input/eventX
exit 0
mira dentro de dmesg para asignar el número X concreto al event del device.
También son necesarios los procesos irxec e irxevent lanzados como demonios -d, para ello yo he creado un script con permisos de ejecución en init.d. Probé a iniciarlos con el aranque mediante un update-rc.d defaults, pero necesitan tener cargadas las X de Ubuntu primero para funcionar, lógico, vienen del paquete lirc-x. Así que dentro de System-Preferences-Sessions de tu Ubuntu añade la ejecución de /etc/init.d/lircinit
chmod +x /etc/init.d/lircinit
more /etc/lircinit
#!/bin/bash
#echo "iniciando lircd"
logger "iniciando irexec"
irexec -d
logger "iniciando irxevent"
irxevent -d
Reinicia tu ordenador y comprueba que se han arrancado
tail -n 100 /var/log/messages
....
yo@peachomaquina:/$ ps aux | grep ir
root 7124 0.0 0.0 2932 552 ? Ss 20:06 0:00 lircd --driver=dev/input --device=/dev/input/event5
yo 7305 0.0 0.0 1716 332 ? Ss 20:06 0:00 irexec -d
yo 7310 0.0 0.0 2936 644 ? Ss 20:06 0:00 irxevent -d
yo 11837 0.0 0.0 4068 788 pts/1 S+ 23:15 0:00 grep ir
ps: no me hago responsable del aumento de peso de los lectores ;-)
Posted by Dani 4 comments
Labels: wintv ubuntu linux hvr 4000 ir mando distancia remote control lirc
otra de las mejores películas de la historia de las películas...
Youtube link: http://www.youtube.com/watch?v=U8z_i3NAxbM
Posted by Dani 0 comments
Para ello sólo debes descargar la imagen de satélite desde una dirección concreta, y hacer esto cada hora. Para ello crea una nueva entrada en tu cron del estilo de esta:
5 0-23 * * * wget -N http://static.die.net/earth/mercator/1600.jpg >/dev/null 2>&1
y luego en tu linux seleccióna que la imagen de tu escritorio sea 1600.jpg que seguramente estará en tu directorio /home/
Por cierto la redirección >/dev/null 2>&1 sirve para hacer que la descarga no produzca mensajes y sea una descarga discreta.
Posted by Dani 3 comments
Vuelta de nuevo al trabajo y también a estas pequeñas notas del blog.
Epson Stylus DX3850 - CUPS+Gutenprint v5.0.2 Simplified, el que te dice recomended.
"Use the new PPD (Postscript Printer Description) as is.
This way all current option settings will be lost. The default settings of the new PPD will be used."
iscan-2.10.0-1.c2.i386.rpm
iscan-plugin-cx4400-2.0.0-0.c2.i386.rpm
sudo apt-get install alien
sudo alien --scripts -d iscan-2.10.0-1.c2.i386.rpm
sudo alien --scripts -d iscan-plugin-cx4400-2.0.0-0.c2.i386.rpm
Posted by Dani 1 comments
Posted by Dani 0 comments
apt-get install build-essential
mkdir -p /package
chmod 1755 /package
cd /package
wget http://cr.yp.to/daemontools/daemontools-0.76.tar.gz
gunzip daemontools-0.76.tar
tar -xpf daemontools-0.76.tar
rm daemontools-0.76.tar
cd admin/daemontools-0.76
touch /etc/inittab
package/install
"extern int errno;"
sustituyéndola por "#include <errno.h>"
Después de ésto ya podrás ejecutar sin errores package/install. Una vez instalado dentro del directorio /service/ deberás crear un directorio por cada proceso que necesites supervisar y dentro del mismo crear un fichero ./run donde indicar el proceso a ejecutar. Puedes incluir también variables de entorno creando un subdirectorio ./env y también generar logs.Posted by Dani 1 comments
Labels: daemontools, linux, sistemas, supervise, svscan, unix
mencoder -tv norm=PAL:driver=v4l2:width=720:height=576:input=1:fps=25 tv:// -oac lavc -ovc lavc -of mpeg -mpegopts format=dvd -vf pp=lb/ha/va/dr,hqdn3d,harddup -srate 48000 -af lavcresample=48000 -lavcopts vcodec=mpeg2video:vrc_buf_size=1500:vrc_maxrate=8000:vbitrate=7000:keyint=15:acodec=mp2:abitrate=192:aspect=4/3 -o capture.mpg
Posted by Dani 3 comments
# Command to be executed when an event starts. (default: none)
# An event starts at first motion detected after a period of no motion defined by gap
on_event_start java /home/daniel/java/gdata/java/src/EnviaSMS usuario password "http://miservidor.es/micarpetasegura/"
# Command to be executed when an event ends after a period of no motion
# (default: none). The period of no motion is defined by option gap.
; on_event_end value
# Command to be executed when a picture (.ppm|.jpg) is saved (default: none)
# To give the filename as an argument to a command append it with %f
on_picture_save /home/daniel/motion/base/usr/bin/upload-pictures.sh %f
# Command to be executed when a motion frame is detected (default: none)
; on_motion_detected value
# Command to be executed when a movie file (.mpg|.avi) is created. (default: none)
# To give the filename as an argument to a command append it with %f
; on_movie_start value
# Command to be executed when a movie file (.mpg|.avi) is closed. (default: none)
# To give the filename as an argument to a command append it with %f
on_movie_end /home/daniel/motion/base/usr/bin/upload-videos.sh %f
#!/bin/sh
FILE=`echo $1 | awk '{print substr($1,19,17)}'`
ffmpeg -i "/home/daniel/motion/$FILE.avi" -ar 128000 -ac 1 -acodec aac -vcodec mpeg4 -s 352x288 -r 24 -b 350 -ab 32 "/home/dani/motion/$FILE.3gp"
#upload ftp
HOST='ftp.tuservidor.es'
USER='*********'
PASSWD='***********'
echo $1 | awk '{print substr($1,19,23)}'
echo "el nombre del file es: "
echo $FILE
cd /home/daniel/motion/
ftp -n $HOST <<END_SCRIPT
quote USER $USER
quote PASS $PASSWD
cd /www/tucarpetasegura/videos
put $FILE.3gp
quit
END_SCRIPT
#move to uploaded
mv /home/dani/motion/$FILE.avi /home/daniel/motion/uploaded/videos
mv /home/dani/motion/$FILE.3gp /home/daniel/motion/uploaded/videos
echo "$FILE moved to the ftp server"
exit 0
Posted by Dani 2 comments
Posted by Dani 0 comments
Posted by Dani 1 comments
sudo apt-get install mercurial patch
Instalación del Firmware:
*************************
1) Primero guardamos el archivo : "wget ftp://167.206.143.11/outgoing/Oxford/88x_2_119_25023_WHQL.zip"
2) Descomprimimos lo necesario : "unzip -jo 88x_2_119_25023_WHQL.zip Driver88/hcw88bda.sys"
3) Ponemos el firmware en su sitio : "dd if=hcw88bda.sys of=/lib/firmware/tukernel/dvb-fe-cx24116.fw skip=81768 bs=1 count=32522"
Instalación del Driver:
***********************
En este caso yo he utilizado los de tipo multifrontend, que son los que nos permitiran seleccionar canales tanto de tdt como de satélite.
#puede que los modulos cx88 que vienen por defecto en ubuntu sirvan para otro modelo de tarjeta, ahora, lo que sé seguro es que para la hvr4000 no funcionan. Por eso borramos a continuación.
sudo rm -r /lib/modules/tukernel/ubuntu/media/cx88
#No todas las versiones de los drivers v4l-dvb funcionan a la hora de compilarlos para esta tarjeta, la versión que si funciona en Ubuntu Hardy 8.04 es la siguiente:
cd /usr/src/
hg clone -r 127f67dea087 http://linuxtv.org/hg/v4l-dvb
# nos bajamos el ultimo parche estable para el driver
wget http://dev.kewl.org/hauppauge/mfe-7285.diff
#aplicamos el parche
patch -d v4l-dvb -p1 <>
He probado con Kaffeine y funciona perfectamente tanto en tdt como en satélite, lastima que Hispasat no emita ningún canal abierto en HD. Todo será cuestión de buscar otro satélite ;-)
Actualización:
1.- Los soft links que creamos en el paso final, desaparecerán si reiniciamos, así que lo mejor es crearlos cuando nuestro linux se carga, para ello nk82 explica en los comentarios cómo crear un script de inicio en /etc/init.d/
2.- Si decides instalar Mythtv y añades todas las sintonizadoras de la tarjeta (tv analogica, tdt y satélite) cuando ubuntu carga el mythbackend dedsde /etc/init.d/ produce que nuestro kernel de errores con el firmware, puede que mythtv esté intentando acceder al firmware antes de que se haya cargado correctamente, no estoy seguro. El error es del estilo " kernel: [ 5001.194966] cx24116_readreg: reg=0x9d (error=-121)". Para pasarlo por alto lo que he hecho yo de primeras ha sido un sudo update-rc.d -f /etc/init.d/mythtv-backend remove , así no se cargará al inicio. Deberemos ejecutarlo manualmente.
3. Debido a las incompatibilidades de este driver con las webcam usb, de primeras no podrás hacer funcionar tu webcam y la tarjeta al mismo tiempo. Hace algún tiempo públique esta incompatibilidad en la lista de distribución de linuxtv-dvb y hasta la fecha nadie ha contestado. Parece que hay gente que lo ha conseguido, pero ha tenido que compilar de nuevo el kernel y hacer un make-kernel links, si quieres más información lee la información que envié a la lista de distribución de linux-tv.
También gracias a nk82 que me dió la idea, puedes salvar este pequeño inconveniente si utilizas la entrada analógica de la propia tarjeta!!, así deberás utilizar el cable conversor de s-video a RCA que viene con la propia tarjeta, no utilices otro porque puede que no te funcione y te vuelvas loco pensando cual es el problema. Este conector de s-video tiene 7 pines y captura en color, con uno de 4 pines conseguirás capturar en blanco y negro.
Busca alguna cámara que tenga salida de rca de vídeo y cuando configures tu programa con webcam configúralo con la entrada Composite, si no te funciona prueba con s-video.
Agradecimientos a:
Ian Bonham, Hagen Schöbel, nk82 y demás colaboraciones de la lista de distribución linux-dvb at linuxtv.
También a la documentación existente en el wiki de linuxtv.org
y a lo que fue mis inicios y peleas con esta tarjeta en el post de Vicente Navarro sobre la hvr-3000
Posted by Dani 46 comments
y como ya no tenemos stage 6 y estos programas requieren un poquito de calidad, que mejor manera de compartir aquello que nos es imposible ver los Lunes en su madrugrada.
Torrent - Redes nº 449 - "Toda vivencia implica un cambio en el cableado de nuestro cerebro"
http://torrents.thepiratebay.org/4151605/Redes-449-Xvid_-_Toda_vivencia_implica_un_cambio_en_el_cableado_.4151605.TPB.torrent
Posted by Dani 0 comments
así se llama este vídeo colgado en youtube.
Posted by Dani 0 comments
Labels: windows vista sp1 video
El pasado fin de semana tuve despedida de soltero, os dejo la foto que tomé del amanecer de Benidorm.
Posted by Dani 0 comments
Posted by Dani 0 comments
Labels: cursos gratis madrid baleares
# Genero las claves
dani@madrid:~$ ssh-keygen -t rsa -b 1024
#Con esto se generará en ~/.ssh/ dos ficheros, id_rsa(clave privada) y id_rsa.pub(clave pública)
# Copio la clave pública del cliente a la máquina destino.
dani@madrid:~$ssh dani@alicante "cat >>~/.ssh/authorized_keys" <~/.ssh/id_rsa.pub
#Realizar un ssh para comprobar que accedemos sin que nos pida la clave
dani@madrid:~$ ssh dani@alicante
rem Script graba.bat
Set hora=%time:~0,2%
Set Year=%date:~8,2%
Set Month=%date:~3,2%
Set Day=%date:~0,2%
rem Renombramos los ficheros para tener su fecha en el nombre
cd C:\Documents and Settings\Daniel\Mis documentos\My Recordings
mv Telecinco*.dvr-ms Telecinco%hora%_%Day%_%Month%_%Year%.dvr-ms
cd C:\Archivos de programa\DVRMSToolbox
rem Realizamos conversión a MPEG
DVRMStoMPEG.exe /if="C:\Documents and Settings\Daniel\Mis documentos\My Recordings\Telecinco%hora%_%Day%_%Month%_%Year%.dvr-ms"
/OF="C:\Documents and Settings\Daniel\Mis documentos\My Recordings\Telecinco%hora%_%Day%_%Month%_%Year%.mpg" /act=dvrmstompg
cd C:\Archivos de Programa\DivX\Dr. DivX 2.0 OSS\
rem Realizamos conversión a DivX
cli -i "C:\Documents and Settings\Daniel\Mis documentos\My Recordings\Telecinco%hora%_%Day%_%Month%_%Year%.mpg"
-o "C:\Documents and Settings\Daniel\Mis documentos\My Recordings\Telecinco%hora%_%Day%_%Month%_%Year%.divx"
cd C:\Documents and Settings\Daniel\Mis documentos\My Recordings
rem Copiamos mediante copia segura
scp Telecinco%hora%_%Day%_%Month%_%Year%.divx dani@miserver.homeip.net:"/cygdrive/c/Documents\ and\ Settings/Daniel/Mis\ documentos/Serie/"
echo "TRANSMISIÓN FINALIZADA"
rem Muevo el fichero pesado a la partición donde tengo más espacio
mv Telecinco%hora%_%Day%_%Month%_%Year%.dvr-ms H:\dani\MyRecordings
echo "ARCHIVO DVR-MS MOVIDO AL ALMACEN"
#la opción --rsh nos permite especificar un puerto de ssh distinto del estandard como necesitaba en mi caso ;-)
rsync -av --partial --stats --progress --delete --rsh='ssh -p1234' dirA dani@alicante:/cygdrive/c/dirB
Posted by Dani 2 comments
Posted by Dani 1 comments
sudo apt-get install motion sendmail mutt
sh /home/daniel/src/ejecuta_motion_retardo.sh
killall motion
daniel@miequipo:~/src$ more ejecuta_motion_retardo.sh
sleep 60s
motion -c /home/daniel/src/motioncas.conf -n
daniel@miequipo:/$ more /home/daniel/src/motioncas.conf
# Minimal motion example config file provided by the
# Debian motion package - for basic webcam operation.
#
# You most certainly want to investigate
# /usr/share/doc/motion/examples/motion-dist.conf.gz
# for further configuration options. Also, refer to the
# motion man page and /usr/share/doc/motion/motion_guide.html
# for detailed information on configuration options.
daemon on
quiet on
# You may very well need to change this (check with 'dmesg'
# after plugging in your webcam).
videodevice /dev/video1
# Image size in pixels (valid range is camera dependent).
width 640
height 480
framerate 25
quality 85
auto_brightness off
# General threshold level and noise threshold
# level (for distinguishing between noise and motion).
threshold 4500
noise_level 64
# Initial brightness, contrast, hue (NTSC), and saturation.
# 0 = disabled (valid range 0-255).
brightness 0
contrast 0
saturation 0
hue 0
# Encode movies in real-time (install ffmpeg before enabling).
ffmpeg_cap_new on
# Codec to be used by ffmpeg for the video compression.
# Supported formats: mpeg4, msmpeg4.
ffmpeg_video_codec msmpeg4
# Target base directory for pictures and films (you may need
# to change this (or change its permissions) depending on
# which system user runs motion).
target_dir /home/daniel/Desktop/Video_vigilancia
# Define a port number (e.g. 8000) to enable the mini-http server.
# 0 = disabled.
webcam_port 4000
# Set to 'off' to allow anybody (not just localhost) to view the
# webcam via the mini-http server (http://hostname:port).
webcam_localhost on
webcam_quality 50
webcam_maxrate 8
#time between to generate new event and new video
gap 20
on_event_start sh /home/daniel/src/control.sh
daniel@miequipo:/$ cat /home/daniel/src/control.sh
#!/bin/bash
sh /home/daniel/src/enviaSMS.sh micorreo@gmail.com miclave "INTRUSO EN CASA,llama al 112" &
vlc /home/daniel/Music/sirena_policia.mp3 &
date > /home/daniel/Desktop/Video_vigilancia/snapshot.txt
sleep 8
tar -cvvf /home/daniel/Desktop/pillado_imagen.tar /home/daniel/Desktop/Video_vigilancia/*.jpg --after-date /home/daniel/Desktop/Video_vigilancia/snapshot.txt
tar -cvvf /home/daniel/Desktop/pillado_video.tar /home/daniel/Desktop/Video_vigilancia/*.avi --after-date /home/daniel/Desktop/Video_vigilancia/snapshot.txt
date > /home/daniel/Desktop/Video_vigilancia/snapshot.txt
mutt -a /home/daniel/Desktop/pillado_imagen.tar -s "Imagenes del intruso" micorreo@gmail.com < /dev/null
mutt -a /home/daniel/Desktop/pillado_video.tar -s "Video del intruso" micorreo@gmail.com < /dev/null
Posted by Dani 1 comments
English and Spanish version follows...
Svenska
--------------
Här har ni ett väldigt gott och enkelt recept på hur man gör en lyckad Paella...
För 4 personer.
Ingredienser:
En hel kyckling
En röd paprika
Vårlökar (8)
Vitlök (2 klyftor)
En Purjolök
Ris (för paella)
En morot eller annan rotfrukt.
Höns buljong
En Kronärtskocka
Stora bönor (Ungefär 2 dl)
En halv burk passerade tomater
Persilja
Salt
Oliv olja
Gult färgämne för Paella
gröna bönor (valfritt)
Posted by Dani 2 comments
Posted by Dani 1 comments
Posted by Dani 0 comments
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.