Android Development x64 Ubuntu 12.10 (Quantal Quetzal)

The android developer guide suggests you install ia32-libs when developing on a 64bit platform. However this installs some 242 packages. A much more sensible option is to only install the 32bit libraries that are actually needed and then you only have to install 57 new packages. Additionally Quantal Quetzal comes with an up to date version of eclipse (3.8) so you can install this via the package manager as well instead of downloading 3.7 as the guide suggests.

To install the packages simply run the following command:

sudo apt-get install eclipse libgl1-mesa-dev:i386 libsdl1.2debian:i386

The installation of eclipse will also provide a compatible Java runtime required for building android apps.

Advertisement

Mplayer on Tom Tom

I am now trying to run Mplayer on Tom Tom so that I can watch videos and drive anyone reading this to drink. I found however that Mplayer requires a lot of system resources that are being used by the Navigation application (ttn) So I needed a way to free up the memory and resources being used by the application. This should be as simple as just killing the application using

killall ttn

But the problem is that the ttn application is responsible for petting the dog. That is to say that there is a WatchDog Timer which resets the device after 15 seconds unless something continuously resets the timer.
All that was needed was a script to reset the timer instead, So here is my solution:

#!/bin/sh
killall ttn &&
while(true) do
echo '' > /dev/watchdog
sleep 10
done

The trick is to kill the ttn but also keep the Watchdog from reseting the device. The script also has to be invoked as a background job, so I used an ‘&’ after the command.

./free.sh &

Password recovery

This morning one of my colleague’s phoned me telling me that he had forgotten his password. I advised him to download and use the Offline NT Password & Registry Editor I recalled the last time I used it being incredibly non user friendly and also because of the bad NTFS write support. The experience of having to run chkdsk on reboot made me feel very uneasy. When I get time I would like to make a Slax based LiveCD that uses the new NTFS user mode mount tool which has better write support, and perhaps a nice curses based menu system that steps you through the process.