Confirmed users
699
edits
(Created page with "This page describes how to install Firefox OS '''''alongside''''' a Raspberry Pi running Raspbian, without disturbing the main Raspbian installation. The Firefox-OS-on-Raspbe...") |
No edit summary |
||
| Line 18: | Line 18: | ||
sudo apt-get install sshfs | sudo apt-get install sshfs | ||
This guide assumes your RPi has the default user "pi" configured. | |||
You need to be able to ssh into your RPi. This means that | |||
# Your Raspberry Pi must have ssh access enabled | |||
# You need to know either your RPi's hostname or IP address. The default hostname is "raspberrypi". We'll call this address <code>$rpiaddress</code> from here on. | |||
Ensure that the following command, run from your host computer, allows you to log into your RPi | |||
ssh pi@$rpiaddress | |||
(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: [[File:Foxberry-pi-demo-0.0.tar.gz]]. Copy the package to your RPi and then extract it into your home directory with | |||
cd | |||
tar zxvf Foxberry-pi-demo-0.0.tar.gz | |||
This should create a <code>ffos</code> folder in your home directory. | |||
== Set up your host for web development == | |||
Go to a folder you'd like to use for development. We'll refer to that folder as <code>$dev</code>. Run the following commands | |||
cd $dev | |||
mkdir ffos | |||
sshfs pi@$rpiaddress:/home/pi/ffos ffos | |||
This mounts a special filesystem on your host machine's <code>$dev/ffos</code> mount point. The filesystem passes reads and writes through to your ''Raspberry Pi'''s <code>~/ffos</code> 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 <code>$dev/ffos/app/html/app.js</code> in your code editor. If you can't open that file, something has gone wrong in your sshfs or RPi setup. | |||