Archivo

Upgrading to Ubuntu Hardy Heron 8.04

  • english
  • spanish

I’ve just upgraded the laptop I use at work (a Dell Inspiron 6400) to Ubuntu Hardy Heron 8.04. The upgrade process in itself went like a breeze, but after rebooting I’ve had two issues:

  • The touchpad wouldn’t work. In the end I’ve commented out all the Synaptics configuration from the /etc/X11/xorg.conf file, both the “InputDevice” block and the line on the “ServerLayout” block. I’ve left only the “standard” mouse driver config pointing to /dev/input/mice, that gets all the Touchpad events too (the scrolling wouldn’t work but at least the touchpad itself does… I’ll have to further look into this).
  • The wifi card didn’t work either. I’ve been using it with ndiswrapper, as the old bcm43xx driver gave me problems with some wireless networks. Now neither driver was working, and there were lots of messages from a new “b43” driver complaining that I should go to the LinuxWireless site and download a new firmware from there. So I’ve done it, following the firmware installation instructions there, and now the wireless interface is working again (I still haven’t tested it against some of the networks that gave me problems in the past with the bcm driver).
Enviar a: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • barrapunto
  • meneame
  • Slashdot
  • blogmarks
  • co.mments
  • Technorati
  • YahooMyWeb

Adiós, ¿Navarra?

Al escribir el post anterior me ha surgido la duda (bastante tonta) de si adiós llevaba o no tilde, así que he hecho lo que suelo hacer: lo he buscado en Google. XD ¿Y el primer resultando? ¡¡Un enlace de Google Maps!! :-o Resulta que hay un pueblo en Navarra que se llama así, Adiós.

Enviar a: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • barrapunto
  • meneame
  • Slashdot
  • blogmarks
  • co.mments
  • Technorati
  • YahooMyWeb

Bye bye, mldonkey…

  • english
  • spanish

…hello rTorrent!

In the end mldonkey was too heavy for the slug. While downloading just one or two torrents it behaved quite well, but with some more and one of them big (>1Gb) it started eating up more and more memory and the slug became… sluggish. X-D

So I’m trying with different alternatives. Right now I’m running rTorrent on the server and nTorrent as a GUI on my Mac. Looks promising. :-)

Enviar a: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • barrapunto
  • meneame
  • Slashdot
  • blogmarks
  • co.mments
  • Technorati
  • YahooMyWeb

My new server

  • english
  • spanish

Ladies and gentleman, let me please introduce you to my new server, the one I’ve been blogging about lately:

dscf0042.JPG dscf0044.JPG

What? You don’t see it? Yes! The small grey box on top of the iomega disk, slightly bigger than the Fonera

In case you don’t know it yet, it’s a Linksys NSLU2, a small device around $100 that comes with two USB2 ports and an ethernet connection. Plug an external USB hard drive to it and it’ll become available over the network like a NAS share. And the best part is: you can flash its firmware and install Debian!! :-D

It’s not that powerful, it has an XScale (ARM) processor at 266Mhz and only 32Mb of RAM. There are pages explaining how to install up to 256Mb. Nevertheless, it works and is small, doesn’t make noise, and has a small electrical consumption.

Up to now I’m running the following on it and it works quite well:

top-nslu2.png

# cat /proc/cpuinfo Processor : XScale-IXP42x Family rev 2 (v5l) BogoMIPS : 266.24 Features : swp half fastmult edsp CPU implementer : 0×69 CPU architecture: 5TE CPU variant : 0×0 CPU part : 0×41f CPU revision : 2 Cache type : undefined 5 Cache clean : undefined 5 Cache lockdown : undefined 5 Cache format : Harvard I size : 32768 I assoc : 32 I line length : 32 I sets : 32 D size : 32768 D assoc : 32 D line length : 32 D sets : 32 Hardware : Linksys NSLU2 Revision : 0000 Serial : 0000000000000000 # free total used free shared buffers cached Mem: 29988 28988 1000 0 404 4808 -/+ buffers/cache: 23776 6212 Swap: 979924 41164 938760 # uname -a Linux eliza 2.6.18-6-ixp4xx #1 Tue Feb 12 00:57:53 UTC 2008 armv5tel GNU/Linux # pstree init-+-afpd—afpd |-atalkd |-atd |-avahi-daemon—avahi-daemon |-cnid_metad |-cron |-dbus-daemon |-events/0 |-getty |-khelper |-klogd |-ksoftirqd/0 |-kthread-+-aio/0 | |-kblockd/0 | |-khubd | |-3*[kjournald] | |-kmirrord | |-kpsmoused | |-kseriod | |-kswapd0 | |-2*[pdflush] | |-scsi_eh_0 | `-usb-storage |-mtdblockd |-nmbd |-papd |-portmap |-rpc.statd |-slpd |-smbd—smbd |-sshd—sshd—sshd—bash—su—bash—pstree |-svscanboot-+-readproctitle | `-svscan-+-supervise—dnscache | |-3*[supervise—multilog] | |-supervise—tinydns | `-supervise—mlnet—mlnet—mlnet |-syslogd `-udevd
Enviar a: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • barrapunto
  • meneame
  • Slashdot
  • blogmarks
  • co.mments
  • Technorati
  • YahooMyWeb

Time Machine with netatalk

  • english
  • spanish

After recompiling netatalk the other day in order to get it to work with Leopard, the next step was getting Time Machine to make backups over the network (and a wireless one by the way). :-D

Problem is: despite the netatalk-powered network shares worked great for “regular” files, when Time Machine started preparing the backup it always gave me an error.

Googling about it I’ve found several stories with different soluctions, some of which worked for some people, some others didn’t. The one that did it for me is this one:

Basically it consists in creating a “sparse bundle” disk image on the local hard drive using MacOS X’s Disk Utility, giving it a specific name, moving it to the network share and then configure Time Machine to use that share.

Worked for me. :-)

Enviar a: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • barrapunto
  • meneame
  • Slashdot
  • blogmarks
  • co.mments
  • Technorati
  • YahooMyWeb

El cómic de Ender

ender_poster_colfin.jpgVía Es La Hora de las Tortas!!! me entero de que Marvel está preparando dos series de seis cómics cada una basadas en El Juego de Ender y La Sombra de Ender, de Orson Scott Card.

Para quien no conozca la saga, el primer libro (el juego) nos sitúa en un futuro en el que la Tierra está en guerra contra una raza alienigena, y la única forma de derrotarlos consiste en entrenar desde niño al futuro comandante de la flota para que sea un estratega perfecto. El protagonista (Ender) es un niño que ingresa en ésta escuela de futuros líderes militares, y la historia va avanzando según va cambiando de un escuadrón a otro y participando en una serie de juegos de equipo, entrenamientos físicos, juegos de estrategia y videojuegos que van formándole para su futuro papel en la guerra, y según se va relacionando con el resto de niños de la academia.

A partir de aquí salen dos series de varios libros cada una:

  • la de La Sombra de Ender, que relata en el primer libro la misma historia que en El Juego pero desde el punto de vista de otro de los niños, y en los otros dos los años sucesivos a la guerra. El tono y tipo de esta serie es muy similar al del libro original.
  • y la de La Voz de los Muertos, que salta varios siglos en el futuro hasta el segundo encuentro con una raza alienigena: si en el primero sin llegar a mediar palabra se desencadena una guerra que acaba con la exterminación de las dos especies (no desvelaré detalles….), en éste segundo encuentro se establece una colonia mínima en el planeta natal de la otra raza para estudiarse mutuament, llegar a comprenderse, etc.

Personalmente, los únicos tres libros que recomendaría son el original (El Juego), que es de éstos que te enganchan y te lo acabas en pocas sesiones porque tienes que leer más; y el primero de cada serie, La Sombra y La Voz de los Muertos. El resto me parecen un rollo y más de lo mismo. Y de los tres, sin lugar a dudas mi preferido es La Voz de los Muertos: no tiene nada (pero NADA) que ver con los demás, los otros son de aventuras/acción/ciencia-ficción, éste es más de ciencia-ficción dura tirando a filosófica-profunda, sobre los problemas de entendimiento que habría en un primer contacto con una raza alienígena que lo que nosotros veamos blanco ellos igual lo ven negro, que azul, que tal vez no lo ven y por lo tanto no le dan importancia aunque para nosotros sea vital. Es un libro que me toca la fibra sensible, no sabría decir cómo ni por qué pero me atrapa de una forma muy distinta a los otros dos. Y desde luego, cuando palme no quiero un funeral al uso: quiero un portavoz que me ponga de vuelta y media. :-D

Y nada, no me enrollo más. A ver si sacan pronto los cómics porque el material es bueno y puede quedar muy bien. Y por otra parte puede ser un primer paso hacia la película que hace la tira de años que se rumorea que van a hacer…

Enviar a: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • barrapunto
  • meneame
  • Slashdot
  • blogmarks
  • co.mments
  • Technorati
  • YahooMyWeb

MacOS X Leopard and Debian’s netatalk

  • english
  • spanish

I’m installing a new fileserver at home (more on this one of these days…) and after installing the netatalk package I wasn’t able to connect to it from MacOS X Leopard, it returned an error after the user/pass prompt.

Googling about it I’ve found that you need to recompile the netatalk package, more info on this and a detailed step-by-step here: Make Netatalk talk to Leopard (Mac OS X 10.5)

Enviar a: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • barrapunto
  • meneame
  • Slashdot
  • blogmarks
  • co.mments
  • Technorati
  • YahooMyWeb

tac

  • english
  • spanish

A reverse cat!

# cat file 1st line 2nd line 3rd line # tac file 3rd line 2nd line 1st line

Sometimes you need to process a file starting at the end, case in point a log file and you want to go from the last lines up. I remember programming something like this in C some years ago because I didn’t knew this command existed…

Enviar a: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • barrapunto
  • meneame
  • Slashdot
  • blogmarks
  • co.mments
  • Technorati
  • YahooMyWeb

rsync –partial

  • english
  • spanish

Everybody knows the rsync command. It’s very useful when you need to keep two machines in sync over the network, minimizing the bandwidth used.

The only problem lies when running it for the first time, or when a new file appears and it’s newly uploaded to the other end: if the network connection is unstable and goes down, rsync deletes the partially uploaded file and it needs to be uploaded again. In other words, when copying new files instead of syncing existing ones, rsync only copies full files.

Luckily there’s a command line parameter to avoid this behaviour and, in the event of a network failure, force rsync to leave the partially-uploaded file as-is and continue syncing it from there on the next run:

# rsync –help …   –partial keep partially transferred files
Enviar a: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • barrapunto
  • meneame
  • Slashdot
  • blogmarks
  • co.mments
  • Technorati
  • YahooMyWeb

Llueve

Joer…

Dos semanas o así haciendo un buen tiempo que te cagas, y he estado haciendo más horas que un reloj con un proyecto en el trabajo, sin nada de tiempo libre y currando dos fines de semana seguidos. Este es el primero que tengo libre del todo (¡espero!) y amanece lloviendo.

La vida no es justa. :-(

Enviar a: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • barrapunto
  • meneame
  • Slashdot
  • blogmarks
  • co.mments
  • Technorati
  • YahooMyWeb