Changes between Version 2 and Version 3 of RaspberryPi


Ignore:
Timestamp:
01/12/13 23:55:55 (7 years ago)
Author:
tim
Comment:

Added note about configuring the firewall and compiling Fawkes

Legend:

Unmodified
Added
Removed
Modified
  • RaspberryPi

    v2 v3  
    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. 
     2This 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. 
    33 
    44== Raspberry Pi Installation - Laptop == 
     
    117117systemctl start avahi-daemon.service 
    118118}}} 
     119 
     120=== Setting up the Firewall === 
     121The 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). 
     122 
     123IPv4 ({{{/etc/sysconfig/iptables}}}) 
     124{{{ 
     125 *filter 
     126:INPUT ACCEPT [0:0] 
     127:FORWARD ACCEPT [0:0] 
     128:OUTPUT ACCEPT [0:0] 
     129-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT 
     130-A INPUT -p icmp -j ACCEPT 
     131-A INPUT -i lo -j ACCEPT 
     132-A INPUT -m state --state NEW -m udp -p udp --dport 5353 -d 224.0.0.251 -j ACCEPT 
     133-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT 
     134-A INPUT -m state --state NEW -m tcp -p tcp --dport 1910 -j ACCEPT 
     135-A INPUT -m state --state NEW -m tcp -p tcp --dport 2208 -j ACCEPT 
     136-A INPUT -m state --state NEW -m tcp -p tcp --dport 8088 -j ACCEPT 
     137-A INPUT -j REJECT --reject-with icmp-host-prohibited 
     138-A FORWARD -j REJECT --reject-with icmp-host-prohibited 
     139COMMIT 
     140}}} 
     141 
     142IPv6 ({{{/etc/sysconfig/ip6tables}}}) 
     143{{{ 
     144*filter 
     145:INPUT ACCEPT [0:0] 
     146:FORWARD ACCEPT [0:0] 
     147:OUTPUT ACCEPT [0:0] 
     148-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT 
     149-A INPUT -p ipv6-icmp -j ACCEPT 
     150-A INPUT -i lo -j ACCEPT 
     151-A INPUT -m state --state NEW -m udp -p udp --dport 546 -d fe80::/64 -j ACCEPT 
     152-A INPUT -m state --state NEW -m udp -p udp --dport 5353 -d ff02::fb -j ACCEPT 
     153-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT 
     154-A INPUT -m state --state NEW -m tcp -p tcp --dport 1910 -j ACCEPT 
     155-A INPUT -m state --state NEW -m tcp -p tcp --dport 2208 -j ACCEPT 
     156-A INPUT -m state --state NEW -m tcp -p tcp --dport 8088 -j ACCEPT 
     157-A INPUT -j REJECT --reject-with icmp6-adm-prohibited 
     158-A FORWARD -j REJECT --reject-with icmp6-adm-prohibited 
     159COMMIT 
     160}}} 
     161 
     162== Getting and Compiling Fawkes == 
     163First you need to install the required software development tools and libraries. 
     164{{{ 
     165yum groupinstall "Development Tools" 
     166yum install sqlite-devel openssl-devel libxml++-devevel avahi-devel yaml-cpp-devel \ 
     167  lua-devel libjpeg-devel libpng-devel opencv-devel SDL-devel libmicrohttpd-devel \ 
     168  flite-devel asciidoc doxygen graphviz graphviz-devel rrdtool-devel bullet-devel \ 
     169  eigen3-devel bluez-libs-devel libudev-devel urg-devel readline-devel file-devel \ 
     170  clipsmm-devel xmlrpc-c-devel 
     171}}} 
     172On ARM tolua++ is currently broken and should hence not be installed. 
     173 
     174Finally, you can get and compile Fawkes using the following: 
     175{{{ 
     176git clone git://git.fawkesrobotics.org/fawkes.git 
     177cd fawkes 
     178make 
     179}}} 
     180Afterwards, you may want to read on in the [wiki:GettingStartedGuide#RunningFawkes GettingStartedGuide] on running Fawkes and the DeveloperGettingStartedGuide. 
     181