Mozilla для raspberry

Foxberry Pi Demo

This page describes how to install Firefox OS inside a Raspberry Pi running Raspbian, without disturbing the main Raspbian installation. The Firefox-OS-on-Raspberry-Pi project is known by the codename «Foxberry Pi».

WARNING : for the time being, this demo software is just that, literally demoware. It has no long-term support plan or API compatibility guarantees, and may eat your homework. This demo is mostly intended for developers who are prepared to deal with bleeding-edge software.

WARNING : this guide has you run large amounts of not-particularly-vetted code as root. Please ensure your Raspberry Pi isn’t visible to the public Internet and is on a secure LAN.

Contents

Acknowledgements

This demo has been assembled from pieces of others’ work. Thanks specifically to romaxa, trouch, and Philipp Wagner for doing the heavy lifting!

Prerequisites

You need a Raspberry Pi, of course. Models B and B+ should work equally well. This guide assumes your Raspberry Pi (here after RPi) is running a recent Raspbian OS. Other distributions will probably work, but haven’t been tested.

Install WebIOPi on your RPi. Be sure to test that WebIOPi is working correctly before proceeding.

This guide assumes your RPi is connected to the host machine via Ethernet. A connection through a wifi dongle or USB networking (or . ) should work fine, but hasn’t been tested.

It’s strongly recommended that you install sshfs on your host machine. On Fedora,

This guide assumes your RPi has the default user «pi» configured.

You need to be able to ssh into your RPi. This means that

  1. Your Raspberry Pi must have ssh access enabled
  2. You need to know either your RPi’s hostname or IP address. The default hostname is «raspberrypi». We’ll call this address $rpiaddress from here on.

Ensure that the following command, run from your host computer, allows you to log into your RPi

(You’ll need to enter the password, which by default is «raspberry». But you changed the password, right? Right??)

Set up Firefox OS inside Raspbian

Download the Firefox OS demo files. Copy the package to your RPi and then extract it into your RPi user’s home directory with

This should create a ffos folder in your RPi’s home directory.

Set up your host for web development

Go to a folder you’d like to use for development on your host machine. We’ll refer to that folder as $dev . Run the following commands on your host machine

This mounts a special filesystem on your host machine’s $dev/ffos mount point. The filesystem passes reads and writes through to your Raspberry Pi’s

/ffos folder. This allows you to develop code using your host computer’s editor and without needing to explicitly synchronize files. This is usually far more convenient than alternatives.

Open the file $dev/ffos/app/html/app.js in your code editor on the host machine. If you can’t open that file, something has gone wrong in your sshfs or RPi setup.

Set up development circuit

This section is optional but strongly recommended. The circuit consists of

  • +5V supply from RPi conneted to breadboard +
  • Ground from RPi connected to breadboard ground
  • Push-button momentary switch connected to GPIO22 , configured with a 10kΩ pull-down resistor
  • LED connected to GPIO25 , with 200Ω load resistor

You can of course use whatever pins and elements you wish. However, the demo code assumes the pin configuration above.

The push-button switch is the most important element, as we’ll see below.

An image of the circuit is included for reference

Run Firefox OS within Raspbian

Now that your host machine, RPi, and development circuits are set up, you can run the demo. Ensure that your RPi’s HDMI out is plugged into a TV or monitor; Firefox OS draws directly to the GPU’s framebuffer, it doesn’t use X11. So currently the Firefox OS display can’t be remoted.

The following commands start FFOS

Firefox OS runs within a chroot environment within your Raspbian installation.

You should see a lot of logging spew written to your console. Finally, Firefox OS will load the demo application. If all goes well, your screen should blink green/black every second, and the LED in your demo circuit should blink on/off approximately in unison with the screen blinking.

Finally, return to your open copy of $dev/ffos/app/html/app.js . Find the string ‘green’ and change it to ‘pink’ . Save the file.

Now we’re going to reload the web app. Foxberry Pi has a «reload button» — the literal, physical button you built for your development circuit! :) Press that button and hold it down for about a second. Your web app should reload and the background start blinking pink/black, instead of green/black.

So yes, Foxberry Pi enables save-reload web development on an embedded device.

Congratulations! You’re ready to develop apps for Foxberry Pi.

Follow-up projects

  • Extend the navigator.mozGpio polyfill shim in ffos/app/html/foxberry-pi.js with APIs for
    • outputting PWM signal
    • outputting single pulses
    • SPI communication
    • i2c communication
    • serial (UART) communication
  • Build a demo circuit that includes other devices

(At this point, it’s not worth trying to debug problems in the Firefox OS build itself. The code is most likely a dead end.)

Build from source

Follow the instructions here to build Firefox OS (a very old version) for Raspberry Pi. You can also download a pre-built pure-FFOS disk image from that site, if you have no need to run Raspbian.

The navigator.mozGpio API shim and example web app are hosted in this repository (along with some helper scripts for FFOS-in-Raspbian). If you take the challenge of extending the navigator.mozGpio as described above, please open pull requests at that repo to have your patches merged back! :)

The FFOS-in-Raspbian image hosted on this page was assembled by hand from Philipp’s FFOS system image and the Foxberry Pi demo code.

Источник

Установите Firefox на Raspberry Pi

Firefox не установлен по умолчанию в операционной системе Raspbian. Но он доступен в официальном репозитории пакетов Raspbian. Таким образом, его очень легко установить.

Сначала обновите кеш репозитория пакетов APT с помощью следующей команды:

Кэш репозитория пакетов APT должен быть обновлен .

Теперь выполните следующую команду, чтобы установить Firefox на Распбиан:

Теперь нажмите y , а затем нажмите , чтобы продолжить.

Firefox должен быть установлен.

Запуск Firefox на Raspbian:

Firefox на Raspbian помечен как Firefox ESR . Вы можете найти Firefox ESR в меню приложений Raspbian. Чтобы запустить Firefox, щелкните значок Firefox ESR , как отмечено на скриншоте ниже.

Когда вы впервые запускаете Firefox, Firefox должен спросить вас, хотите ли вы импортировать закладки из других браузеров или нет. Как видите, здесь указан Chromium. Если вы хотите импортировать закладки из Chromium (браузер по умолчанию в Raspbian), выберите его и нажмите Далее , как отмечено на скриншоте ниже.

Если вы этого не сделаете. Если вы не хотите импортировать закладки из других браузеров, просто выберите Ничего не импортировать , а затем нажмите Далее . Я продолжу импортировать закладки из Chromium. Это будет очень полезно.

Как видите, закладки импортируются…

После импорта закладок , Firefox должен запуститься, как вы можете видеть на снимке экрана ниже.

Как видите, я использую 32-разрядную версию Firefox ESR 52.9.0.

Установка Firefox в качестве браузера по умолчанию в Raspbian:

Chromium установлен в качестве браузера по умолчанию в Raspbian. Итак, когда вы щелкаете значок веб-браузера, как отмечено на скриншоте ниже, открывается браузер Chromium.

Если вы хотите установить Firefox в качестве браузера по умолчанию в Raspbian, выполните следующую команду:

Firefox находится в списке, а номер выбора Firefox — 4, как вы можете видеть в отмеченном разделе на скриншоте ниже. Ваш может отличаться в зависимости от того, какие браузеры вы установили. Теперь введите номер выбора (в моем случае 4) и нажмите .

Firefox должен быть установлен в качестве браузера по умолчанию в Raspbian.

Мои мысли о Firefox в Raspberry Pi:

Я давно использую одноплатный компьютер Raspberry Pi 3 Model B. Это хорошо. Имеет хорошую аппаратную спецификацию. Но Firefox немного отстает от Raspberry Pi 3 Model B. Если вы используете старую версию Raspberry Pi, она может вообще не работать. Я предпочитаю браузер Chromium по умолчанию для Raspberry Pi 3 Model B. Он также немного отстает, но не так сильно, как Firefox.

Итак, вот как вы устанавливаете Firefox на Raspberry Pi с установленным Raspbian. Спасибо, что прочитали эту статью.

Источник

Mozilla для raspberry

Whilst the Mozilla project does not provide downloads for Firefox or Thunderbird for the Raspberry Pi that does not mean you can’t install them! The trick is knowing what the unbranded Open Source versions of these applications are called, these versions are available in the repositories of most Linux distributions including Raspbian (Jessie).

The Firefox browser gets renamed Iceweasel and the Thunderbird mail client gets renamed Icedove, so once you know this installing them is quite straight forward. Obviously you need to be running either the MATE of XFCE desktop.

Update Current Packages

Before downloading and installing anything we need to be running as root and it is a good idea to make sure that your system is up to date.

Installing Firefox

The current version of Iceweasel is 31.8 which corresponds to the last extended support release (ESR) of Firefox.

Note – Unfortunately since support for Adobe Flash depends on a browser plugin that requires an x86 processor it isn’t available on the Raspberry Pi.

To keep the number of installed packages to a minimum I’ve chosen not to install the recommended packages.

One installed you can start it from the application menu. It is going to seem a little slower than on a desktop PC, particularly when starting up, but given the small size and low power of the Raspberry Pi it works surprisingly well.

Installing Thunderbird

Thunderbird is an e-mail client produced by the Mozilla foundation that is not quite as well known as the Firefox browser. It does share quite a lot of common code with Firefox since both the browser and mail client need to be able to render HTML, so the version of Icedove in the repository is linked to the same ESR version of Firefox as Iceweasel.

It uses a databae of known service providers to make it as easy as possible to configure for different service providers and supports POP, SMTP, and IMAP.

Configuring Thunderbird

To configure Thunderbird to use an existing mail account click on ‘Skip this and use my existing email’.

Then enter you name, email address and password.

Thunderbird will then try to determine your mail providers supported protocols and correct settings from your email address.

It correctly detects that my mail provider supports both POP3 and IMAP and allows me to select which one I want to use — in this case POP3.

Clicking on done completes the process.

Provided you entered the correct password you will have successfully configured Thunderbird on your Raspberry Pi.

One of the features I like about Thunderbird is that it allows you to use multiple email accounts, with each one getting its own folder.

Raspberry Pi is a trademark of the Raspberry Pi Foundation

Источник

Как установить Firefox на Raspberry Pi

Многие из нас, кто использует Raspberry Pi в качестве мини-контроллера, будут иметь Raspbian, установленный на Raspberry Pi. Мощная операционная система, которая очень хорошо адаптируется к Raspberry Pi, но имеет свои недостатки. Один из них — это программное обеспечение, которое уже установлено.

Веб-браузер Raspbian — это Google Chromium, хороший браузер, но не Mozilla Firefox, который многие из нас используют ежедневно.. Вот почему мы собираемся рассказать вам, как установить последнюю версию Mozilla Firefox на ваш Raspbian.

Установка Mozilla Firefox 52 ESR

Установить Firefox на Raspbian просто, нам просто нужно откройте терминал и введите следующее:

Установка Mozilla Firefox 57 на Raspbian

Но это установит версию ESR, очень стабильную версию с длинной поддержкой, но не так быстро, как Firefox 57, знаменитый Firefox Quantum. Если нам нужна последняя версия, мы должны сделать следующее. Сначала открываем терминал и пишем следующее:

В открывшийся файл добавляем следующее:

Сохраняем, закрываем файл и пишем следующее:

После установки этой версии, то есть Mozilla Firefox 57, мы снова пишем в терминале следующее:

и мы оставляем добавляемую строку следующим образом:

Сохраняем изменения и выходим из файла. Теперь у нас есть Mozilla Firefox 57, не последняя версия, но самая стабильная и самая быстрая из существующих.

Установка Mozilla Firefox 58

И если мы хотим установить Mozilla Firefox 58, нам просто нужно перейти к сайт загрузки, скачайте пакет с последней версией. Мы распаковываем этот пакет и создаем прямой доступ к файлу «Firefox», мы дважды щелкаем по этому прямому доступу, и у нас будет последняя версия Firefox, работающая на нашем Raspbian.

Содержание статьи соответствует нашим принципам редакционная этика. Чтобы сообщить об ошибке, нажмите здесь.

Полный путь к статье: Бесплатное оборудование » Raspberry Pi » Как установить Firefox на Raspberry Pi

Источник

Adblock
detector