Scratchbox info

Posted on 2010-05-28

This is just a bunch of info around scratchbox


In order to disable VSDO on debian lenny AMD 64:

sudo sysctl abi.vsyscall32=2


sudo sysctl abi.vsyscall32=0

Both work, but when changint the vsdo to 2 i belieave its called compat mode, I have no idea what that actually is but I think i read somewhere that its a bit better in some ways than 0.

It might be possible that changing the mmap_min_addr also is nescesary:

sudo sysctl vm.mmap_min_addr=65536

I read somewhere that 4096 should suffice, but I have as of yet not run into any problems with the mmap_min_addr at 65536.


To start xehpyr

Xephyr :2 -host-cursor -screen 800x480x16 -dpi 96 -ac have -kb & at the end, however -kb doesn’t exist in the version provided with lenny

And in scratchbox, set the right display

export DISPLAY=:2


Starting the maemo environment inside scratchbox/xephyr start

Other Issues

Had some troubles connecting to the internet through scratchbox, found out it was related to me not using my normal configuration (I’m tethering instead of using my wlan). When running ifconfig I got this error:

SIOCGIFCONF: Bad address

Through some IRC-logs (thx Lateralus for having the same issue :)) i found out resolv.conf in scratchbox used the wrong nameserver. I corrected the following three files to get it to work:


Where xun is my scratchbox user, ofc.