For reference, this was done using Ubuntu 14.10. If it works for you on other versions, please let me know! First off, make sure to familiarize yourself with the official instructions for building Firefox OS, as we’ll be following them. Start off by following the prerequisites for Ubuntu 13.10 on the MDN site sudo dpkg --add-architecture i386 sudo apt-get update sudo apt-get install --no-install-recommends autoconf2.13 bison bzip2 ccache curl flex gawk gcc g++ g++-multilib gcc-4.6 g++-4.6 g++-4.6-multilib git lib32ncurses5-dev lib32z1-dev zlib1g:amd64 zlib1g-dev:amd64 zlib1g:i386 zlib1g-dev:i386 libgl1-mesa-dev libx11-dev make zip libxml2-utils sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 1 sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 2 sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.6 1 sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 2 sudo update-alternatives --set gcc "/usr/bin/gcc-4.6" sudo update-alternatives --set g++ "/usr/bin/g++-4.6" You’ll also need various Android tools as well, so make sure they are installed.
On occasion, or perhaps even more frequently, you may want to use GulpJS in combination with a remote server. Watching local changes and uploading them is thankfully very easy. We’re going to focus on the most secure option - using SSH over FTP. Setup Install gulp-sftp locally. It’s as simple as: npm install --save-dev gulp-sftp After that, you can load it with a simple: var sftp = require("gulp-sftp"); The Task Here’s a sample Gulp task to get us started.