9 Software (en)
Seil0 edited this page 2019-05-13 00:09:52 +02:00

After the hardware is fully assembled, the software can be installed. The recommended method for this is the installation via build-script. It's possible to run the script with and without Internet connection. To get the most up-to-date version of all software components, the installation with Internet connection is recommended!

The script downloads and installs all required programs and libraries. Furthermore, the real-time clock as well as the auto-start of the software are set up on request.

online build-script

  1. Set up a new raspbian lite image.
  2. Install the following programs:
    sudo apt-get install usbmount cmake imagemagick fbi i2c-tools gpac
  3. Now download the ActionPi Software and unzip it.
    cd ~/Downloads/
    git clone https://github.com/Seil0/ActionPi.git
  4. Execute the build script and the ActionPi software and all needed libraries will be installed.
    cd ActionPi/
    ./build.sh

offline build-script

  1. Set up a new raspbian lite image.
  2. Install the following programs, either with the Internet connection described above or via the corresponding packages:
  • usbmount
  • cmake
  • imagemagick
  • fbi
  • i2c-tools
  • gpac
  1. Copy the ActionPi_install_offline.zip file into ~/Downloads/ and unzip it.
    cd ~/Downloads/
    unzip ActionPi_install_offline.zip
  2. Execute the build script and the ActionPi software and all needed libraries will be installed.
    cd ActionPi_install_offline/
    ./build_offline.sh

manuale Installation

The manual installation is only recommended for advanced users!

  1. Set up a new raspbian lite image.
  2. Install the following program:
    sudo apt-get install usbmount cmake imagemagick fbi i2c-tools gpac
  3. Install the raspicam c ++ library.
cd ~/Downloads/
wget -O raspicam_c++-lib.zip https://sourceforge.net/projects/raspicam/files/raspicam-0.1.3.zip/download
unzip raspicam_c++-lib.zip
cd raspicam-0.1.3/
cmake install
mkdir build
cd build/
cmake ..
sudo make install
sudo ldconfig
  1. Install the bcm2835 library.
cd ~/Downloads/
wget -O bcm2835-1.50.tar.gz http://www.airspayce.com/mikem/bcm2835/bcm2835-1.50.tar.gz
tar zxvf bcm2835-1.50.tar.gz
cd bcm2835-1.50/
./configure
make
sudo make check
sudo make install
  1. Install the ActionPi software.
cd ~/Downloads/
git clone https://github.com/Seil0/ActionPi.git
cd ActionPi/
g++ -Wall ActionPi.cpp -oActionPi -l raspicam -l bcm2835 -std=c++0x
mkdir ~/ActionPi
mv -i ActionPi ~/ActionPi/ActionPi
cd ~/ActionPi/
chmod +x ActionPi
  1. (Optional) Start the ActionPi software automatically on boot up.
    sudo echo "sudo ~/ActionPi./ActionPi" > /etc/rc.local
  2. (Optional) Add i2c configuration for the real-time clock.
    sudo i2cdetect -y 1; sudo modprobe rtc-ds1307; sudo echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-1/new_device
  3. (Optional) Deactivate dhcpcd, speeds up the boot process, disables DHCP! (Not recommended!)
sudo service dhcpcd stop
sudo systemctl disable dhcpcd
  1. Reboot the system (recommended).
    sudo reboot