Update page 'Software (en)'
parent
292e94a055
commit
9ee35c4586
|
@ -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`
|
Loading…
Reference in New Issue