[FAIRWIND] How to setup the FairWind system on UDOO (or Ubuntu system)
Finally it was time to try the system really FairWind!
This tutorial explains how to prepare the operating system and install the system on our FairWind Udoo (or any version of operating system Ubuntu-like).
Obviously, the steps may seem a bit difficult and not available to everyone.
If you fail don't despair! A day will come out a image for Udoo ready to use!
For those who do not want to wait or want to challenge themselves in this tutorial follow the steps:
1) Open the Terminal
2) Install the dependencies:
sudo apt-get install mercurial wmctrl python-bs4 libgtk2.0-dev gettext git-core cmake gpsd gpsd-clients libgps-dev build-essential wx-common libwxgtk2.8-dev libglu1-mesa-dev libgtk2.0-dev wx2.8-headers libbz2-dev libtinyxml-dev libportaudio2 portaudio19-dev synaptic
3) Make a folder opt and move in it:
mkdir opt
cd opt
4) Download the FairWind environment from the official BitBucket repository:
hg clone https://bitbucket.org/montella/fairwind/
5) Install the dependencies necessary for python:
sudo pip install bottle sudo pip install PIL sudo pip install cherrypy sudo pip install requests sudo pip install sqlalchemy sudo pip install fabric sudo pip install pygeocoder sudo pip install xmltodict sudo pip install python-ifconfig
6) Install OpenCPN as tutorial http://osp.uniparthenope.it/?q=node/27
7) Enable hardware acceleration in OpenCPN settings:
8) Add the Plugin for return to Home from OpenCPN:
cd OpenCPN/plugins git clone https://github.com/nohal/launcher_pi.git cd ../build cmake .. make sudo make install
9) Open OpenCPN -> Options -> Plugins -> Enable Launcher -> Preferences Launcher -> add --> Label=Home -> Command= wmctrl -r "OpenCPN 3.3.2316" -b toggle,hidden
10) Install firefox:
sudo apt-get install firefox
11) Enable the installation of old version of add-ons:
open browser -> url= "about:config" -->allow warning-> right click mouse -> new -> boolean -> extensions.checkCompatibility.<versione_corrente> --> false --> restart browser
12) Add add-ons to firefox: fxKeyboard & R-Kiosk (find on Google and download from firefox)
13) Delete the loading bar of the browser:
mkdir /home/ubuntu/.mozilla/firefox/*.default/chrome echo "@namespace xul url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);#statusbar-display { display: none !important; }" >> /home/ubuntu/.mozilla/firefox/*.default/chrome/userChrome.css
14) Install kplex:
wget http://www.stripydog.com/download/kplex-1.1.1.tgz
tar zxf kplex-1.1.1.tgz
cd kplex-1.1.1
make
make install
And now we are finally ready to launch the FairWind environment!
Change to the directory fairwind (cd /opt/fairwind from terminal) and issue the command:
./run.sh
if you have a Udoo 7" monitor or
./developer-run.sh
if you are testing on full screen or another type of board.
Don't forget to throw (every day) hg pull from the directory fairwind to receive the latest updates in real time!
In case of difficulties or errors in some step contact me and I will try to answer you quickly!
At the next tutorial!
Ferraro Carmine
Core and Gui Developer - Hardware expert - OSP Team
Comments
Massimo Rossi
Wed, 11/26/2014 - 17:09
Permalink
commento
Wow!!! Grazie Carmine. Non vedo l'ora di provarlo!!! Per collegarlo tramite usb alla mia rete nmea devo ricompilare il kernel a ggiungendo qualcosa? Oppure va gia bene cosi?
Massimo Rossi
Sat, 11/29/2014 - 11:35
Permalink
Errore durante l'installazione
Ciao Carmine, ho provato a fare l'installazione di fairwind ed è andato quasi tutto bene, per essere piu preciso, sono arrivato fino all'installazione di firefox senza errori.
poi...
Innanzi tutto il plugin vkKeyboard non sono riuscito a trovarlo in alcun modo, a quel punto ne ho installato un altro che si chiama FXKeyboard (o nome simile) e che sembrerebbe andare in quanto su firefox mi appare la tastiera touch.
poi proseguendo nell' installazione ho però avuto degli errori e ti copio qui la fideata del terminale:
--------------
ubuntu@udoobuntu: ~ $ mkdir /home/ubuntu/.mozilla/firefox/*.default/chrome
ubuntu@udoobuntu: ~ $ echo "@namespace xul url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);#statusbar-display { display: none !important; }" >> /home/ubuntu/.mozilla/firefox/*.default/chrome/userChrome.css
ubuntu@udoobuntu: ~ $ cd kplex-1.1.1
ubuntu@udoobuntu: ~/kplex-1.1.1 $ make
make: `kplex' is up to date.
ubuntu@udoobuntu: ~/kplex-1.1.1 $ sudo make install
test -d "//usr/bin" || install -d -g root -o root -m 755 //usr/bin
install -g root -o root -m 755 kplex //usr/bin/kplex
ubuntu@udoobuntu: ~/kplex-1.1.1 $
--------------------
Come noterai stamattina ho cercato di ricomilare Kplex che è quello che mi aveva dato l'errore ieri sera, e mi da la stessa risposta. non ne comprendo però il significato.
sono comunque andato avanti ed ho provato ad avviare Fairwind ( uso un monitor HDMI) mi si è effettivamente aperto, però si chromium e non su firefox, e nonostante OpenCPN sia installato e funzionante, non me lo avvia....
Aiutooooooo!