(Cheat Sheet) Developing without a Netbook -- Using the chroot
Submitted by Bob Spencer, updated on 14 Jan 2010 - 0 comments
This is a cheat sheet for Developing without a Netbook -- Using the chroot
- Download Moblin 2.1 development image from moblin.org
- Create chroot using the Moblin 2.1 development image
First time:
$ sudo moblin-chroot -s <destination path> <image file>After first time:$ sudo moblin-chroot <destination path>(Optional) Change color of the chroot prompt - (From desktop) Map desktop dbus to the chroot dbus
$ sudo mount --bind <desktop dbus dir> <chroot dbus dir> - (From chroot, First time only) Create a "src" directory for your application source
$ mkdir /root/src - (From desktop) Mount your source directory into the chroot
$ sudo mount --bind <desktop source dir> <chroot source dir> - (From desktop) Allow applications started in the chroot terminal to display output on the desktop
$ xhost +SI:localuser:root - (From chroot) Build, Run, Debug
$ gcc helloworld.c -o helloworld
$ ./helloworld
$ gdb ...
- Printer-friendly version
- Login or register to post comments