Rpi-hw 0.7.3
https://github.com/Wicker25/Rpi-hw
Boost 1.49.0
sudo apt-get install libboost-all-dev
MySQL connector
sudo apt-get install libmysqlcppconn-dev
C 6.1.2
C++ 1.1.3
sudo bash -c "echo /usr/local/lib/ > /etc/ld.so.conf.d/local.conf"
sudo /sbin/ldconfig
sudo chown root ./DeltaPi
sudo chmod 4755 ./DeltaPi
$ vim ~/startup.sh
#!/bin/sh
sleep 5
/usr/local/DeltaPi
sleep 2
/usr/local/EpsilonPi
shutdown -h now
$ chmod 771 startup.sh
$ sudo chown root:USERNAME /sbin/shutdown && sudo chmod 4770 /sbin/shutdown
$ vim ~/.bashrc
Run the startup bash script:
echo starting DeltaPi
bash startup.sh
sudo vim /etc/inittab
comment out line:
"1:2345:respawn:/sbin/ getty 115200 tty1" => "#1:2345:respawn:/sbin/ getty 115200 tty1"
add:
1:2345:respawn:/bin/login -f USERNAME tty1\</dev/tty1 >/dev/tty1 2>&1
sudo addgroup www-data
sudo adduser www-data www-data
sudo mkdir /var/www
sudo chown -R www-data:www-data /var/www
sudo apt-get install apache2
sudo chown 640 "FILE"
Web port: 80
DNS port: 53
Place database.conf in same run directory as DeltaPi. (in ~/ following the setup.sh)
The syntax is as follows:
decrypted
'Host'
'User'
'Password'
'Database'