Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I run in Scratchbox binaries that need real root privileges (not just “fakeroot”)?

0
Posted

How do I run in Scratchbox binaries that need real root privileges (not just “fakeroot”)?

0

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

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123