How do I run in Scratchbox binaries that need real root privileges (not just “fakeroot”)?
If you’ve e.g. compiled X server for ARM, and would like to run it as root on the target (because it doesn’t run/work correctly without root privileges), you can: • login to the ARM sbrsh device as root: $ ssh root@arm.device • chroot to the Scratchbox NFS mount in your ARM device home directory: # chroot /home/username/[IP-number]-[target name] /bin/sh (note that this requires that you’ve compiled shell for the target in Scratchbox) Now that you’ve been chrooted to Scratchbox directory, you can run as root any software you’ve cross-compiled in Scratchbox: # Xfbdev -screen 320x240x16@90 -ac :1 & Note that not all of the Scratchbox contents are NFS mounted onto target device, only the relevant directories (see your ~/.sbrsh file for the details). Also, you should keep an sbrsh session open inside Scratchbox so that the NFS mounts won’t expire while you’re working in the other session. Alternatively, you can start the sbrsh daemon with the –mount-expiration none option so that it never