-
download and install SD cardFormatter for Mac (or windows) https://www.sdcard.org/downloads/formatter_4/index.html
-
download NOOffBS https://www.raspberrypi.org/downloads/noobs/
-
Format the SDcard
-
Extract the NOOBS zipfile and copy the contents to the SDcard (1.83GB)
-
Eject the SDcard
-
Put in the raspberry pi connect keyboard monitor, mouse and power
-
On the installation menu choose Raspbian (debian)
-
Launch the terminal on the raspberry and:
-
sudo apt-get install apache2
-
sudo pip install flask
-
sudo apt-get install git-core
-
cd /home/Pi
-
git clone git://git.drogon.net/wiringPi
-
cd wiringPi
-
./build
-
cd /var
-
sudo chown pi:pi www
-
cd /var/www
-
mv /var/www/raspberry_pi3_arcade /var/www/app
-
test with python /var/www/app/python/app.py & open the browser to http://localhost:5000
-
-
Start the pythonscript at boot
- sudo chmod 755 /var/www/app/boot.sh
- sudo mkdir var/log/cron
- sudo chmod 777 var/log/cron/
- sudo crontab -e Add: @reboot sh /var/www/app/boot.sh > /var/log/cron/cronlog 2>&1
- sudo nano /etc/rc.local
before exit 0 add:
python /var/www/app/python/app.py
-
Start the browser at boot
- Open the teminal and type: sudo nano /home/pi/.config/lxsession/LXDE-pi/autostart
#@xscreensaver -no-splash # comment this line out to disable screensaver @xset s off @xset -dpms @xset s noblank @chromium-browser --incognito --kiosk http://localhost:5000
- save and reboot
- Note: crtl W will close the browser!
sudo python python/emulateKeyBoard.py
- key 1 = game
- key 2 = movie
- key 3 = quiz
- key q = option 1
- key w = option 2
- key e = option 3
- key r = option 4