Raspberry Pi IoT Setup » History » Revision 3
Revision 2 (Spencer Sutterlin, 06/10/2014 01:42 AM) → Revision 3/7 (Spencer Sutterlin, 06/10/2014 01:45 AM)
Raspberry Pi IoT Setup ====================== Cross-compile: * ndn-cxx * NFD On the Pi: ``` nano /etc/network/interfaces # Tweak networking as desired sudo reboot sudo apt-get update sudo apt-get install git vim sudo apt-get install build-essential sudo apt-get install openssl expat libpcap-dev sudo apt-get install libssl-dev libsqlite3-dev libcrypto++-dev libboost-all-dev mkdir ~/ndn cd ~/ndn git clone https://github.com/named-data/PyNDN2.git git clone https://github.com/remap/ndn-pi.git echo "export PYTHONPATH=$PYTHONPATH:$HOME/ndn/PyNDN2/python:$HOME/ndn/ndn-pi" >> ~/.bashrc sudo vim /etc/modules # Add “ipv6” # Copy/install ndn-cxx/NFD from VM to PI sudo visudo # Add “Defaults env_keep += “PYTHONPATH” (Don't clear PYTHONPATH for root since GPIO sensors must be run as root) wget https://bootstrap.pypa.io/get-pip.py sudo python get-pip.py rm get-pip.py sudo pip install pycrypto sudo pip install trollius ``` If HDMI-CEC node: ``` cd ~/ndn git clone https://github.com/Pulse-Eight/libcec sudo apt-get install autoconf libtool pkg-config sudo apt-get install liblockdev1-dev libudev-dev ./bootstrap ./configure --with-rpi-include-path="/opt/vc/include" --with-rpi-lib-path="/opt/vc/lib " --enable-rpi --enable-debug make sudo make install sudo ldconfig ```