Changes between Version 3 and Version 4 of RaspberryPi


Ignore:
Timestamp:
02/04/14 00:10:46 (6 years ago)
Author:
tim
Comment:

Updated for Pidora 18

Legend:

Unmodified
Added
Removed
Modified
  • RaspberryPi

    v3 v4  
    11= Setting up a Raspberry Pi for Fawkes= 
    2 This document describes how to get a [http://www.raspberrypi.org Raspberry Pi] (raspi) board up and running for use with Fawkes. We will go with the Fedora ARM Remix installation, as we use that system on the other robot and desktop machines as well. We recommend to use an 8GB or larger SD card. 
     2[[TOC(RaspberryPi,notitle,depth=3)]] 
     3This document describes how to get a [http://www.raspberrypi.org Raspberry Pi] (raspi) board up and running for use with Fawkes. We will use [http://www.pidora.ca Pidora 18], as we use Fedora on the other robot and desktop machines for development. We recommend to use an 8GB or larger SD card. 
    34 
    45== Raspberry Pi Installation - Laptop == 
    56We chose to go with the easy route through the graphical installer [https://fedoraproject.org/wiki/Fedora_ARM_Installer Fedora ARM Installer], but you can choose any installation method, for example the ones described on the [https://fedoraproject.org/wiki/Raspberry_Pi Fedora Raspberry Pi wiki page]. The catch with the graphical installer is that it must be run with the English locale. If you use a different default locale, for example German, run the installer with (on your laptop/desktop): 
    67{{{ 
    7 LANG=C fedora-arm-installer 
     8LANG=C LC_NUMERIC=C fedora-arm-installer 
    89}}} 
    9 Update the list of images, choose the SD card device (unmount the drive if it was automatically mounted on insertion), and start the writing process. Then you are done. 
     10Update the list of images, choose the SD card device (unmount the drive if it was automatically mounted on insertion, not via the graphical tools, because they will also remove the device files, but through the command line), and start the writing process. 
    1011 
    1112== Raspberry Pi Installation - On the raspi == 
     
    119120 
    120121=== Setting up the Firewall === 
    121 The firewall should be enabled to prevent ports from leaking to the outside. The following configuration allows SSH, mDNS-SD service discovery (Avahi), and access to Fawkes (1910, 2208, and 8088). 
     122The firewall should be enabled to prevent ports from leaking to the outside. The following configuration allows SSH, mDNS-SD service discovery (Avahi), and access to Fawkes (1910, 2208, and 8088). Pidora 18 uses firewalld, which was problematic for us because it did not find any zones after a {{{yum upgrade}}}. Therefore we disable it an use the iptables scripts. First, add the following to the iptables configurations: 
    122123 
    123 IPv4 ({{{/etc/sysconfig/iptables}}}) 
    124124{{{ 
     125# IPv4 /etc/sysconfig/iptables 
    125126 *filter 
    126127:INPUT ACCEPT [0:0] 
     
    140141}}} 
    141142 
    142 IPv6 ({{{/etc/sysconfig/ip6tables}}}) 
    143143{{{ 
     144# IPv6 /etc/sysconfig/ip6tables 
    144145*filter 
    145146:INPUT ACCEPT [0:0] 
     
    160161}}} 
    161162 
     163Then disable firewalld and enable the iptables scripts: 
     164{{{ 
     165systemctl stop firewalld.service 
     166systemctl disable firewalld.service 
     167systemctl enable iptables.service 
     168systemctl start iptables.service 
     169systemctl enable ip6tables.service 
     170systemctl start ip6tables.service 
     171}}} 
     172 
     173 
    162174== Getting and Compiling Fawkes == 
    163175First you need to install the required software development tools and libraries. 
    164176{{{ 
    165 yum groupinstall "Development Tools" 
    166 yum install sqlite-devel openssl-devel libxml++-devevel avahi-devel yaml-cpp-devel \ 
     177yum groupinstall --skip-broken "Development Tools" 
     178yum install sqlite-devel openssl-devel libxml++-devel avahi-devel yaml-cpp-devel \ 
    167179  lua-devel libjpeg-devel libpng-devel opencv-devel SDL-devel libmicrohttpd-devel \ 
    168180  flite-devel asciidoc doxygen graphviz graphviz-devel rrdtool-devel bullet-devel \ 
    169181  eigen3-devel bluez-libs-devel libudev-devel urg-devel readline-devel file-devel \ 
    170   clipsmm-devel xmlrpc-c-devel 
     182  clipsmm-devel xmlrpc-c-devel clipsmm-devel protobuf-devel libdaemon-devel 
    171183}}} 
    172 On ARM tolua++ is currently broken and should hence not be installed. 
     184On ARM tolua++ is currently broken and hence should not be installed.  
    173185 
    174186Finally, you can get and compile Fawkes using the following: 
     
    179191}}} 
    180192Afterwards, you may want to read on in the [wiki:GettingStartedGuide#RunningFawkes GettingStartedGuide] on running Fawkes and the DeveloperGettingStartedGuide. 
    181