mozilla

Revision 299189 of Introduction to Firefox OS

  • Revision slug: Mozilla/Boot_to_Gecko/Introduction
  • Revision title: Introduction to Firefox OS
  • Revision id: 299189
  • Created:
  • Creator: Sheppy
  • Is current revision? No
  • Comment

Revision Content

Firefox OS (also referred to by its codename "Boot to Gecko" or "B2G") is Mozilla's open source mobile operating system based on Linux and Mozilla's Gecko technology. The idea is essentially to have all user-accessible software running on the phone be a Web app that uses advanced HTML5 techniques and device APIs to access the phone's hardware directly via JavaScript.

For Web developers, the most important part to understand is that the entire user interface is a Web app, one that is capable of displaying and launching other Web apps. Any modifications you make to the user interface and any applications you create to run on Firefox OS are Web pages, albeit with enhanced access to the mobile device's hardware and services.

You can learn how to build and install Firefox OS by following our handy guide.

Usage tips

This section provides some tips that will help you actually use Firefox OS. This is something of a placeholder until we have real usage documentation.

Unlocking the phone

If your build of Firefox OS starts up asking for a pass code to unlock the device, the default code is 0000. Some builds will do this while we develop and test the lock screen.

Capturing a screenshot

Currently there is no on-device support for screenshot capture. However, you can do it from the terminal on the Linux or Mac OS X computer that has a Firefox OS build system installed.

  1. Make sure you have ffmpeg installed.
    1. On Mac, if you use MacPorts, you can do this with sudo port install ffmpeg. For homebrew, do brew install ffmpeg.
    2. On Linux (Ubuntu/Debian), use sudo apt-get install ffmpeg.
  2. Connect your phone to the computer using a USB cable.
  3. Navigate your phone into whatever situation you want to screenshot.
  4. cd into the B2G/gaia directory
  5. make screenshot
  6. You now have a screenshot called screenshot.png.

Revision Source

<p><strong>Firefox OS</strong> (also referred to by its codename "Boot to Gecko" or "B2G") is Mozilla's open source mobile operating system based on Linux and Mozilla's Gecko technology. The idea is essentially to have all user-accessible software running on the phone be a Web app that uses advanced HTML5 techniques and device APIs to access the phone's hardware directly via JavaScript.</p>
<p>For Web developers, the most important part to understand is that the entire user interface is a Web app, one that is capable of displaying and launching other Web apps. Any modifications you make to the user interface and any applications you create to run on Firefox OS are Web pages, albeit with enhanced access to the mobile device's hardware and services.</p>
<p>You can learn how to build and install Firefox OS by <a href="/en/Mozilla/Boot_to_Gecko/Building_and_installing_Boot_to_Gecko" title="en/Mozilla/Boot_to_Gecko/Building_and_installing_Boot_to_Gecko">following our handy guide</a>.</p>
<h2 id="Usage_tips">Usage tips</h2>
<p>This section provides some tips that will help you actually use Firefox OS. This is something of a placeholder until we have real usage documentation.</p>
<h3 id="Unlocking_the_phone">Unlocking the phone</h3>
<p>If your build of Firefox OS starts up asking for a pass code to unlock the device, the default code is 0000. Some builds will do this while we develop and test the lock screen.</p>
<h3 id="Capturing_a_screenshot">Capturing a screenshot</h3>
<p>Currently there is no on-device support for screenshot capture. However, you can do it from the terminal on the Linux or Mac OS X computer that has a Firefox OS build system installed.</p>
<ol>
  <li>Make sure you have ffmpeg installed.
    <ol>
      <li>On Mac, if you use MacPorts, you can do this with <code>sudo port install ffmpeg</code>. For homebrew, do <code>brew install ffmpeg</code>.</li>
      <li>On Linux (Ubuntu/Debian), use&nbsp;<code>sudo apt-get install ffmpeg</code>.</li>
    </ol>
  </li>
  <li>Connect your phone to the computer using a USB cable.</li>
  <li>Navigate your phone into whatever situation you want to screenshot.</li>
  <li><code>cd</code> into the <code>B2G/gaia</code> directory</li>
  <li><code>make screenshot</code></li>
  <li>You now have a screenshot called <code>screenshot.png</code>.</li>
</ol>
Revert to this revision