A Firefox OS asztali változatának telepítése

Verzióinformációk
  • Verzióazonosító: 52433
  • Létrehozva:
  • Létrehozó: Norbert
  • Hozzászólás: Részleges fordítás magyar nyelvre.
  • Ellenőrzött: Nem
  • Fordításra vár: Nem
Változat forrása
Változat tartalma

A Firefox OS Szimulátor nagyon hasznos lehet fejlesztőknek, barkácsolóknakés kíváncsiaknak, akik ízelítőt szeretnének kapni a Firefox OS működéséből.

Megjegyzés: A Firefox böngésző Firefox OS Szimulátor kiegésszítője korábban r2d2b2g néven volt ismert.

A Firefox OS Szimulátor kiegésszítő működése (javasolt)

A Firefox böngésző Firefox OS Szimulátor kiegésszítőjének futtatása a leggyorsabb és legegyszerűbb mód a működtetésére, és működik Windows, Mac és Linux alatt is.

A Firefox OS Szimulátor telepítése

Kövesse ezeket az egyszerű lépéseket a Firefox OS Szimulátor kiegésszítő telepítéséhez a Firefox böngészőbe:

  1. Nyissa meg a Firefox böngészőjét!
  2. Nyissa meg ezt a linket hogy hozzájusson a Firefox OS Szimulátor kiegésszítőhöz.
  3. Kattintson a + Hozzáadás ehhez: Firefox gombra. A Firefox letölti a kívánt kiegésszítőt, majd a telepítés megerőssítését kéri.
  4. Kattintson a Telepítés gombra – a kiegésszítő telepítve lesz.

A Firefox OS Szimulátor futtatása

  1. A Firefox ablak tetején kattintson a Firefox gombra, A Firefox ablak tetején kattintson az Eszközök menüre, A Firefox ablak tetején kattintson az Eszközök menüre (Ubuntu alatt a menüsávban kattintson az Eszközök menüre), A menüsávban kattintson az Eszközök menüre, ott a Webfejlesztő menüre, majd kattintson a Firefox OS Simulator menüre!
  2. A szimulátor ablak bal oldalán kattintson a Stopped (Leállítva) kapcsolóra, így az átkapcsol Running (Fut) állapotba!

    simulator-fxos
A szimulátor elindul és elkezdhet játszadozni a Firefox OS-szel!
Tipp: Használja a home vagy fn+bal nyíl gombokat a billentyűzetén, hogy az eszköz kezdőképernyőjét szimulálja.
Megjegyzés: Bővebb információkért olvassa el a Firefox OS Szimulátor használata (angol) cikket.

Ha a Firefox OS Szimulátor kiegésszítő valamilyen oknál fogva nem működik, megpróbálhatja kézileg telepíteni a szimulátort, követve az alábi lépéseket:

A Firefox OS Szimulátor kézi telepítése

Íme hogyan futtathatja a Firefox OS Szimulátort kézi fordítással és telepítéssel az asztali gépén. Az útmutató alapjául Staś Małolepszy útmutatója szolgált. Bővebb információkért lásd az ő blogbejegyzését. Frisebb útmutatóért lásd azA Firefox OS építése és telepítése (angol) oldalt a Mozilla Developer Network oldalon.

Prepare your computer

If you don't have these things already installed, you'll need to do this before you can get Firefox OS running.

  1. Install XCode from the Mac App store.
  2. Once it's "installed" from the App store, open the app to finish the installation.
  3. Then, open the XCode preferences and install the Command Line Tools.
    Command line tools
  4. Finally, download and install Git from http://git-scm.com/downloads

Get the Boot2Gecko app

  1. Download the latest nightly build from ftp.mozilla.org. You want the latest mac64.dmg file.
  2. Double-click the .dmg file you just downloaded to open it and then drag the B2G.app to your Applications folder.

Get Gaia

  1. First, create a folder to hold everything. For these instructions, we'll create a "FirefoxOS" folder in your Documents folder.
  2. Open up the Terminal application. You automatically start in your Home folder (username:~).
    Terminal home
  3. In the Terminal window, switch to the FirefoxOS folder you created in step 1 by typing, cd Documents/FirefoxOS and then hit return.
    Terminal FirefoxOS
  4. Next, clone the Gaia repository (in English that means, download a copy to your computer) by typing, git clone https://github.com/mozilla-b2g/gaia gaia and then hit return.
    Tip: You can copy and paste commands from this article into your Terminal.
    • A bunch of stuff will happen and you'll see a download progress. When everything is done and you have a prompt again (username:FirefoxOS username$), continue with the next step.
  5. Now you need to create a profile by typing, DEBUG=1 make -C gaia profile and then hit return.
    • Again, a bunch of stuff will happen. When you have a prompt again you'll be done.

Start Firefox OS

  • To start Firefox OS, open the Terminal and type, /Applications/B2G.app/Contents/MacOS/b2g -profile ~/Documents/FirefoxOS/gaia/profile and hit return.
    Note: Use the home or fn+left arrow buttons on your keyboard to simulate the home button on the device.

Update

This desktop version doesn't auto-update. To update it manually:

  1. Download and install the latest nightly build from ftp.mozilla.org.
  2. Open the Terminal, navigate to the gaia folder inside the FirefoxOS folder by typing, cd ~/Documents/FirefoxOS/gaia
  3. Then type, git pull

Get the Boot2Gecko app

  1. Download the Microsoft Visual C++ 2010 SP1 Redistributable Package (x86).
  2. Start the installer and follow the instructions.
  3. Download the pre-built installer for b2g-desktop with pre-compiled gaia.
  4. Start the installer and follow the instructions. Be sure to leave the two checkboxes checked.

Start Firefox OS

Simply click the b2g-gaia-desktop application shortcut from the Windows Start menu to launch Firefox OS.

Note: Use the home button on your keyboard to simulate the home button on the device.

Auto update

This pre-built installer includes an automatic update feature. The second time you launch the app, it will check for updates and ask you if you want to upgrade. Simply click Yes and follow the instructions. The installer will detect your previous install and ask to remove it before upgrading -- say Yes to that too.