-
Notifications
You must be signed in to change notification settings - Fork 0
Software (en)
Jannik edited this page Jul 30, 2017
·
2 revisions
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.
- Set up a new raspbian lite image.
- Install the following programs:
sudo apt-get install usbmount cmake imagemagick fbi i2c-tools gpac
- Now download the ActionPi Software and unzip it.
cd ~/Downloads/
git clone https://github.com/Seil0/ActionPi.git
- Execute the build script and the ActionPi software and all needed libraries will be installed.
cd ActionPi/
./build.sh
- Set up a new raspbian lite image.
- Install the following programs, either with the Internet connection described above or via the corresponding packages:
- usbmount
- cmake
- imagemagick
- fbi
- i2c-tools
- gpac
- Copy the ActionPi_install_offline.zip file into
~/Downloads/
and unzip it.
cd ~/Downloads/
unzip ActionPi_install_offline.zip
- Execute the build script and the ActionPi software and all needed libraries will be installed.
cd ActionPi_install_offline/
./build_offline.sh
The manual installation is only recommended for advanced users!
- Set up a new raspbian lite image.
- Install the following program:
sudo apt-get install usbmount cmake imagemagick fbi i2c-tools gpac
- 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
- 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
- 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
- (Optional) Start the ActionPi software automatically on boot up.
sudo echo "sudo ~/ActionPi./ActionPi" > /etc/rc.local
- (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
- (Optional) Deactivate dhcpcd, speeds up the boot process, disables DHCP! (Not recommended!)
sudo service dhcpcd stop
sudo systemctl disable dhcpcd
- Reboot the system (recommended).
sudo reboot