Monthly Archives: November 2010

Installing IETF MIB files in ubuntu 10.10

Ubuntu 10.10 (and I assume other Debian based distributions too) come without the IETF MIB files installed with the default Net-SNMP package. This means you can’t query OIDs directly by name anymore, such as “system.sysUpTime.0″. The easiest way to install … Continue reading

Posted in linux, minipost | Tagged , , | 4 Comments

php gettext problems on ubuntu server

I have gone crazy until I found this… to have gettext functions working in ubuntu server you need to add the proper locales to the system first, for example, to translate text in spanish: # cat /usr/share/i18n/SUPPORTED |grep -i “es_ES” … Continue reading

Posted in linux, minipost | Tagged | Leave a comment

Hint: take screenshot on Google Nexus One

As simple as this (needs a rooted phone): $ adb pull /dev/graphics/fb0 screenshot.raw $ dd bs=1920 count=800 if=screenshot.raw of=image.rgb32 $ ffmpeg -vframes 1 -vcodec rawvideo -f rawvideo -pix_fmt rgb32 -s 480×800 -i image.rgb32 -f image2 -vcodec png screenshot.png

Posted in HTC, linux | Tagged , , | Leave a comment