From 9ee35c45862f119b617e9c7cc47124f6e5e74f6b Mon Sep 17 00:00:00 2001 From: Seil0 Date: Mon, 18 Jun 2018 23:23:59 +0200 Subject: [PATCH] Update page 'Software (en)' --- Software-%28en%29.md | 84 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 Software-%28en%29.md diff --git a/Software-%28en%29.md b/Software-%28en%29.md new file mode 100644 index 0000000..07ea8e9 --- /dev/null +++ b/Software-%28en%29.md @@ -0,0 +1,84 @@ +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 +3. Copy the [ActionPi_install_offline.zip](https://github.com/Seil0/ActionPi/releases/download/1.02/ActionPi_install_offline.zip) file into ` ~/Downloads/` and unzip it. +`cd ~/Downloads/` +`unzip ActionPi_install_offline.zip` +4. 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 +``` +4. 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 +``` +5. 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 +``` +6. (Optional) Start the ActionPi software automatically on boot up. +`sudo echo "sudo ~/ActionPi./ActionPi" > /etc/rc.local` +7. (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` +8. (Optional) Deactivate dhcpcd, speeds up the boot process, disables DHCP! (Not recommended!) +``` +sudo service dhcpcd stop +sudo systemctl disable dhcpcd +``` +9. Reboot the system (recommended). +`sudo reboot` \ No newline at end of file