Archive

Posts Tagged ‘linux’

Trust TB 5300

July 25th, 2010 linfati.cl No comments

Ahora solo debo aprender a dibujar :P

Me compre esta tableta por 40€ en una Commet

En WIndows 7 y Vista ( no eh probado en XP ) me instala los driver automagicamente desde windows update. Las teclas especiales ( que sospecho que no son teclas ) no funcionan con ese driver, desconozco si funcionan con el driver que venia en el cdrom o funcionan con algun programa especifico

En linux fue necesario instalar el driver wizardpen, esta en el ppa “doctormo/xorg-wizardpen” y funciona de inmediato en Ubuntu 10.04

How to boot a Ubuntu Live iso from grub

April 4th, 2010 linfati.cl 4 comments

Create a directory to copy the Ubuntu Live iso

mkdir /boot/ubuntu-isos/
cp lucid-desktop-i386.iso /boot/ubuntu-isos/

Create a script /etc/grub.d/40_ubuntu-iso to auto-detect the iso image at the directory

#!/bin/sh

set -e

IMAGES=/boot/ubuntu-isos/
. /usr/lib/grub/grub-mkconfig_lib

for isofile in ${IMAGES}*.iso
do
      IMAGEPATH=$( make_system_path_relative_to_its_root "$isofile" )
      echo "Found ubuntu iso image: $IMAGEPATH" >&2
      cat << EOF
menuentry "Bootable iso: $(basename $IMAGEPATH | sed s/.iso//)" {
EOF
      prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | sed -e "s/^/\t/"
      cat << EOF
	loopback loop $isofile
	linux (loop)/casper/vmlinuz boot=casper console-setup/layoutcode=latam locale=es_CL.UTF-8 iso-scan/filename=$isofile quiet splash noeject noprompt --
	initrd (loop)/casper/initrd.lz
}
EOF
done

and run update-grub2

NOTE: the iso boot on SPANISH with a LatinoAmerican keyboard, please change “console-setup/layoutcode=latam locale=es_CL.UTF-8″ or delete it.

Categories: linfati.cl Tags: , ,

Install Maemo4 (diablo) and Maemo5 (freemantle) SDK

February 5th, 2010 linfati.cl No comments
#!/bin/sh

sh /scratchbox/users/rlinfati/home/rlinfati/maemo-sdk-nokia-binaries_4.1.2.sh

newgrp sbox < /bin/cat <<'END'

sb-conf st maemo5 -c cs2007q3-glibc2.5-i486 -d debian-etch:doctools:git:perl:svn -t none -f
sb-conf re maemo5 -f
sb-conf rs maemo5 /scratchbox/users/rlinfati/home/rlinfati/maemo-sdk-rootstrap_5.0_i386.tgz
sb-conf install maemo5 -L --etc --devkits --fakeroot
echo "# maemo5
deb http://repository.maemo.org/ fremantle/sdk free non-free
deb-src http://repository.maemo.org/ fremantle/sdk free non-free
deb http://repository.maemo.org/ fremantle/tools free non-free
deb-src http://repository.maemo.org/ fremantle/tools free non-free
deb http://repository.maemo.org/ fremantle/12345678901234567890 nokia-binaries
# deb http://repository.maemo.org/extras fremantle free non-free
# deb-src http://repository.maemo.org/extras fremantle free non-free
# deb http://repository.maemo.org/extras-testing fremantle free non-free
# deb-src http://repository.maemo.org/extras-testing fremantle free non-free
# deb http://repository.maemo.org/extras-devel fremantle free non-free
# deb-src http://repository.maemo.org/extras-devel fremantle free non-free" > /scratchbox/users/rlinfati/targets/maemo5/etc/apt/sources.list
rm /scratchbox/users/rlinfati/targets/maemo5/opt
mkdir /scratchbox/users/rlinfati/targets/maemo5/opt

sb-conf st n900 -c cs2007q3-glibc2.5-arm7 -d debian-etch:doctools:git:perl:svn:qemu -t qemu-arm-sb -f
sb-conf re n900 -f
sb-conf rs n900 /scratchbox/users/rlinfati/home/rlinfati/maemo-sdk-rootstrap_5.0_armel.tgz
sb-conf install n900 -L --etc --devkits --fakeroot
echo "export DEB_BUILD_OPTIONS=maemo-launcher,thumb,vfp" > /scratchbox/users/rlinfati/targets/n900.environment
echo "# maemo5
deb http://repository.maemo.org/ fremantle/sdk free non-free
deb-src http://repository.maemo.org/ fremantle/sdk free non-free
deb http://repository.maemo.org/ fremantle/tools free non-free
deb-src http://repository.maemo.org/ fremantle/tools free non-free
deb http://repository.maemo.org/ fremantle/4bc37c7c77ebe90177c050b805a8dc79 nokia-binaries
# deb http://repository.maemo.org/extras fremantle free non-free
# deb-src http://repository.maemo.org/extras fremantle free non-free
# deb http://repository.maemo.org/extras-testing fremantle free non-free
# deb-src http://repository.maemo.org/extras-testing fremantle free non-free
# deb http://repository.maemo.org/extras-devel fremantle free non-free
# deb-src http://repository.maemo.org/extras-devel fremantle free non-free" > /scratchbox/users/rlinfati/targets/n900/etc/apt/sources.list
rm /scratchbox/users/rlinfati/targets/n900/opt
mkdir /scratchbox/users/rlinfati/targets/n900/opt

sb-conf st maemo4 -c cs2007q3-glibc2.5-i486 -d debian-etch:doctools:git:perl:svn -t none -f
sb-conf re maemo4 -f
sb-conf rs maemo4 /scratchbox/users/rlinfati/home/rlinfati/maemo-sdk-rootstrap_4.1.2_i386.tgz
sb-conf install maemo4 -L --etc --devkits --fakeroot
echo "# maemo4
deb http://repository.maemo.org/ diablo/sdk free non-free
deb-src http://repository.maemo.org/ diablo/sdk free
deb http://repository.maemo.org/ diablo/tools free non-free
deb-src http://repository.maemo.org/ diablo/tools free
deb file:/home/rlinfati/maemo-sdk-nokia-binaries_4.1.2 diablo explicit
# deb http://repository.maemo.org/extras diablo free non-free
# deb-src http://repository.maemo.org/extras diablo free non-free
# deb http://repository.maemo.org/extras-devel diablo free non-free
# deb-src http://repository.maemo.org/extras-devel diablo free non-free" > /scratchbox/users/rlinfati/targets/maemo4/etc/apt/sources.list

sb-conf st n8x0 -c cs2007q3-glibc2.5-arm6 -d debian-etch:doctools:git:perl:svn:qemu -t qemu-arm-sb -f
sb-conf re n8x0 -f
sb-conf rs n8x0 /scratchbox/users/rlinfati/home/rlinfati/maemo-sdk-rootstrap_4.1.2_armel.tgz
sb-conf install n8x0 -L --etc --devkits --fakeroot
echo "export DEB_BUILD_OPTIONS=maemo-launcher,thumb,vfp" > /scratchbox/users/rlinfati/targets/n8x0.environment
echo "# maemo4
deb http://repository.maemo.org/ diablo/sdk free non-free
deb-src http://repository.maemo.org/ diablo/sdk free
deb http://repository.maemo.org/ diablo/tools free non-free
deb-src http://repository.maemo.org/ diablo/tools free
deb file:/home/rlinfati/maemo-sdk-nokia-binaries_4.1.2 diablo explicit
# deb http://repository.maemo.org/extras diablo free non-free
# deb-src http://repository.maemo.org/extras diablo free non-free
# deb http://repository.maemo.org/extras-devel diablo free non-free
# deb-src http://repository.maemo.org/extras-devel diablo free non-free" > /scratchbox/users/rlinfati/targets/n8x0/etc/apt/sources.list

echo export DISPLAY=:2 > /scratchbox/users/rlinfati/home/rlinfati/.bashrc

END
Categories: linfati.cl Tags: , ,

Boot a floppy image from grub2

February 5th, 2010 linfati.cl 1 comment

Create a directory for the boot image and copy memdisk to /boot

mkdir /boot/images/
aptitude install syslinux
cp /usr/lib/syslinux/memdisk /boot

Create a script /etc/grub.d/40_custom to auto-detect the floppy image at the directory

#!/bin/sh

set -e

IMAGES=/boot/images
. /usr/lib/grub/grub-mkconfig_lib
if test -e /boot/memdisk ; then
  MEMDISKPATH=$( make_system_path_relative_to_its_root "/boot/memdisk" )
  echo "Found memdisk: $MEMDISKPATH" >&2
  find $IMAGES -name "*.img" | sort |
  while read image ; do
      IMAGEPATH=$( make_system_path_relative_to_its_root "$image" )
      echo "Found floppy image: $IMAGEPATH" >&2
      cat << EOF
menuentry "Bootable floppy: $(basename $IMAGEPATH | sed s/.img//)" {
EOF
      prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | sed -e "s/^/\t/"
      cat << EOF
        linux16 $MEMDISKPATH bigraw
        initrd16 $IMAGEPATH
}
EOF
  done
fi

# exec tail -n +3 $0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.

and call update-grub2

Categories: linfati.cl Tags: , ,

pbuilder and chroot

February 5th, 2010 linfati.cl No comments

Build a Chroot with debootstrap, example a Ubuntu lucid

sudo debootstrap lucid /opt/chroots/lucid.linfati.cl/

now, create a /usr/local/bin/go-chroot file with

#/bin/sh

case "$1" in
  sethost)
	echo virtu-$2 | sudo tee /opt/chroots/$2.linfati.cl/etc/debian_chroot
	;;
  run)
	sudo pbuilder --execute \
	--aptcache "" \
	--no-targz \
	--buildplace /opt/chroots/$2.linfati.cl \
	-- /bin/su -
	;;
  *)
	$0 sethost $1
	$0 run $1
	;;
esac

exit 0

and run

go-chroot lucid
Categories: linfati.cl Tags: , , , , ,

Nokia actualiza el firmware de N900 a PR 1.1 !

January 14th, 2010 linfati.cl No comments

Por fin salio el BIG update… la lista de nuevas caracteristicas esta en el wiki y la discucion en tmo

La actualizacion se transmite via OTA (via aire) o pueden usar el NokiaSoftwareUpdater o las imagenes FIASCO

Categories: linfati.cl Tags: , , , ,

Nokia actualiza el firmware de N900 a PR 1.0.1 !

January 11th, 2010 linfati.cl No comments

La version PR 1.0.1 es la 2009.44-1, la cual es solo un minor bugfix para poder actualizar a la version PR 1.1 ( aka 2009.51-1 ) que saldra a fin de mes.

Los cambios segun comento konttori_nokia en #maemo son:

  1. Nuevo kernel que aumenta el nivel de compresion para hacer espacio para el siguiente version
  2. Eliminado el soporte para icon cache que nos comia espacio en cada nuevo programa que se instalaba
  3. Muchos fix (37) en el Administrador de Aplicaciones (h-a-m), nueva interface, soporte para la ovi store

Lo mas importante de esta actualizacion es la posibilidad de actualizar ( en un futuro muy cercano ) a la version PR1.1 ( aka 2009.51-1 ) que traera muchas novedades.

Onformacion original :

konttori_nokia: kernel contains one fix, which is allowing HAM to trigger ubifs to higher compression level for the SSU update.
konttori_nokia: browser contains one fix, which is browser UA string to say that it’s pr1.0.1 device.
konttori_nokia: GTK contains one fix, which is dropping the icon cache support.
konttori_nokia: application manager contains 37 fixes, mostly related to SSU stability
konttori_nokia: And a bit related to the new look of the app grid.

Categories: linfati.cl Tags: , , ,

auto-connect to ssh vpn using upstart

December 19th, 2009 linfati.cl No comments

if you have a ssh keys configured to root user in a ssh-server, you can do a vpn over ssh using a tun interface

copy the text to /etc/init/vpn2ssh.conf, change 1.2.3.4 for the ip of the vpn server and do “start vpn2ssh”

# vpn2ssh - vpn over ssh to ssh server manager
#
# vpn over ssh to ssh server manager

description "vpn over ssh to va.linfati.cl manager"
author "Rodrigo Linfati <rodrigo@linfati.cl>"
version "0.1"

start on started gdm
stop on stopping gdm

respawn
expect fork

env vpnserver=1.2.3.4
env idtun=309
env iplocal=172.30.9.2
env ipremote=172.30.9.1

pre-start exec sleep 60
exec ssh -C -f -w $idtun:$idtun $vpnserver ifconfig tun$idtun $ipremote pointopoint $iplocal  up
post-start exec                            ifconfig tun$idtun $iplocal  pointopoint $ipremote up

Note: on ssh server need “PermitTunnel=yes” on sshd_config

Categories: linfati.cl Tags: , ,

Nokia N900

December 13th, 2009 linfati.cl 7 comments

Me compre mi nokia N900 en un tiempo record… ordenado un dia 20 de Noviembre, despachado el lunes 23 y recibido el dia 24 en la mañana! Genial! ( en el primer lote de entrega ) con un descuento de un 25%… lo cual lo hizo mas genial aun ( precio de mercado 600€ )

Solo dos cosas hecho de menos de mi BlackBerry 8100
1.- Poder usarla con una sola mana para chat, sms, navegar, al ser horizontal para esas tareas, llamar se puede verticalmente
2.- La tecnologia Push, que los mensajes los envia el servidor a mi celular a penas estan disponibles ( sms, email, chat ) y no debe estar cada x minutos revisando si existe algo nuevo… lo que se refleja en la duracion de la bateria.

DSCN7875 (by Rodrigo Linfati)

DSCN7876 (by Rodrigo Linfati)

DSCN7879 (by Rodrigo Linfati)

DSCN7880 (by Rodrigo Linfati)

DSCN7882 (by Rodrigo Linfati)

Bonus: bicicleta dali….
20091202_002.jpg (by Rodrigo Linfati)

UserScripts.org para Greasemonkey

July 23rd, 2009 linfati.cl 2 comments

Que es Greasemonkey?
Greasemonkey es una extensión para el navegador Mozilla Firefox que permite, por medio de pequeñas porciones de código creadas por usuarios, modificar el comportamiento de páginas web específicas. Con esta extensión es posible mejorar la experiencia de lectura de un sitio, hacerlo más usable, añadir nuevas funciones a páginas web, corregir errores, mejorar servicios de búsquedas y muchas otras cosas más.

Que usa Internet Explorer? Que odia Firefox? use ie7pro para cargar los script

Script Recomendados

Youtube Enhancer
Permite bajar videos, seleccionar la calidad, activar/desactivar el autoinicio, etc.

Free Youtube
Permite usar un visor de videos para ver los videos, por ejemplo VLC o Totem

Youtube without flash
Otro script que permite usar un visor de videos para ver los videos, por ejemplo VLC o Totem

Facebook Purify
Oculta los mensajes de la pagina principal de los cuestionarios, aplicaciones, juegos, etc

Facebook Fixer
Ver album facilmente, bajar los videos, ver la edad y el signo zodiacal de cada persona, ver todas las fotos del album en una sola pagina, etc.

TwittSeven
Permite hacer Re-tweet, Ver los link acortados, ver el ultimo tweet leido, automaticamente cargar nuevos mensajes, etc

Nested Twitter Replies
Permite ver los mensajes junto a sus respuestas

twitter (by Rodrigo Linfati)

Y tu, que script usas?