Confirmed users, Bureaucrats and Sysops emeriti
969
edits
(header tweak) |
(Cleanup of the section Running the Application to make it clearer when commands are run from the host and when they're run from the target, while also allowing easy copying and pasting of the commands) |
||
| Line 110: | Line 110: | ||
</pre></code> | </pre></code> | ||
==Running | ==Running your Build== | ||
To run your build in scratchbox, you'll need to install xephyr from your host machine. Fortunately if you are on a Debian based system | To run your build in scratchbox, you'll need to install xephyr from your host machine (i.e. outside scratchbox). Fortunately, if you are on a Debian based system such as Ubuntu, this couldn't be easier. Just run: | ||
<code><pre>sudo apt-get install xserver-xephyr</pre></code> | <code><pre>sudo apt-get install xserver-xephyr</pre></code> | ||
To start the xephyr server, run the following from the host machine: | To start the xephyr server, run the following from the host machine (outside scratchbox): | ||
<code><pre>Xephyr :2 -host-cursor -screen 800x480x16 -dpi 96 -ac -extension Composite</pre></code> | <code><pre>Xephyr :2 -host-cursor -screen 800x480x16 -dpi 96 -ac -extension Composite</pre></code> | ||
Once the xephyr xserver is running, it will open a window that can be used to display your build. Run your build by logging into scratchbox and then running the following commands: | |||
<code><pre> | <code><pre> | ||
sb-conf select CHINOOK_X86 | |||
export DISPLAY=:2 | |||
af-sb-init.sh start | |||
cd moz1.9/mozilla/obj-dir-browser-chinook-armel/dist/bin | |||
GRE_HOME=. ./run-mozilla.sh ./TestGtkEmbed # this is not yet runnable | |||
or | or | ||
GRE_HOME=. ./run-mozilla.sh ./firefox | |||
</pre></code> | </pre></code> | ||