5 | | - Windows 10 |
6 | | - Eclipse Mars 2 (eclipse-java-mars-2) |
7 | | - JDK 8 (jdk-8u102-windows) |
8 | | - Bonjour (used for Pi Zero Ethernet-over-USB support) |
9 | | - Pi4J (pi4j-1.1.zip) |
10 | | http://pi4j.com/install.html |
11 | | - Read the first paragraph (re: Pi .vs. dev host installation) |
12 | | - Follow the 'download' link in the first paragraph |
13 | | - Download pi4j-1.1.zip |
14 | | - Extract zip |
15 | | - Add jar files from extracted lib folder to Eclipse project |
| 5 | Windows 10 |
| 6 | |
| 7 | Eclipse Mars 2 (eclipse-java-mars-2) |
| 8 | |
| 9 | JDK 8 (jdk-8u102-windows) |
| 10 | |
| 11 | Bonjour (used for Pi Zero Ethernet-over-USB support) |
| 12 | |
| 13 | Pi4J (pi4j-1.1.zip) |
| 14 | http://pi4j.com/install.html[[BR]] |
| 15 | - Read the first paragraph (re: Pi .vs. dev host installation)[[BR]] |
| 16 | - Follow the 'download' link in the first paragraph[[BR]] |
| 17 | - Download pi4j-1.1.zip[[BR]] |
| 18 | - Extract zip[[BR]] |
| 19 | - Add jar files from extracted lib folder to Eclipse project |
58 | | Create an LSB style init script for launching a PiBot autonomous startup app. I copied rc.local as a starting point and modified it to run my desired PiBot app as follows: |
59 | | sudo cp /etc/init.d/rc.local /etc/init.d/pibot_auto |
60 | | sudo vi /etc/init.d/pibot_auto |
61 | | Revise the header block to describe PiBot autonomous app |
62 | | Revise the do_start() to launch the PiBot autonomous app |
63 | | Save and exit editor |
64 | | Test/debug the script until it works as desired using these commands: |
65 | | sudo /etc/init.d/pibot_auto start |
66 | | sudo /etc/init.d/pibot_auto stop |
67 | | sudo /etc/init.d/pibot_auto restart |
68 | | When working as desired, register script to run at startup/shutdown: |
69 | | sudo update-rc.d pibot_auto defaults |
70 | | If the script is changed (edited) after registering, a ‘reload’ may be necessary as follows: |
71 | | sudo systemctl daemon-reload |
72 | | To unregister the script (i.e., stop it from running at startup/shutdown): |
73 | | sudo update-rc.d -f pibot_auto remove |
| 62 | Create an LSB style init script for launching a PiBot autonomous startup app.[[BR]] |
| 63 | I copied rc.local as a starting point and modified it to run my desired - PiBot app as follows: |
| 64 | - sudo cp /etc/init.d/rc.local /etc/init.d/pibot_auto |
| 65 | - sudo vi /etc/init.d/pibot_auto |
| 66 | - Revise the header block to describe PiBot autonomous app |
| 67 | - Revise the do_start() to launch the PiBot autonomous app |
| 68 | - Save and exit editor |
| 69 | - Test/debug the script until it works as desired using these commands: |
| 70 | - sudo /etc/init.d/pibot_auto start |
| 71 | - sudo /etc/init.d/pibot_auto stop |
| 72 | - sudo /etc/init.d/pibot_auto restart |
| 73 | When working as desired, register script to run at startup/shutdown: |
| 74 | - sudo update-rc.d pibot_auto defaults |
| 75 | If the script is changed (edited) after registering, a ‘reload’ may be necessary as follows: |
| 76 | - sudo systemctl daemon-reload |
| 77 | To unregister the script (i.e., stop it from running at startup/shutdown): |
| 78 | - sudo update-rc.d -f pibot_auto remove |