Commits

Sebastian Bub committed 243a6f0

minor update

Comments (0)

Files changed (1)

 4. Go on with **7. Getting Started (from Source)**
 
 
-## Getting Started (from Source)
+## Getting Started (from Source) - PREFERRED METHOD!
 
 1. Install Java, e.g. `sudo apt-get install openjdk-6-jdk`
 
 
 5. Get the project `hg clone https://bitbucket.org/sbub/raspberry-pi-gpio-web-control`
 
-6. Build the project `mvn package` (It takes about 3-7 minutes to build on Raspberry Pi).
+6. Change working directory to raspberry-pi-gpio-web-control with `cd raspberry-pi-gpio-web-control`
 
-7. **Get [Winstone Servlet Container at http://winstone.sourceforge.net/](http://winstone.sourceforge.net/)** and put the jar in the same directory as the start.sh.
+7. Build the project `mvn package` (It takes about 3-7 minutes to build on Raspberry Pi).
 
-8. Check the location and name of WINSTONE_JAR in start.sh
+8. **Get [Winstone Servlet Container at http://winstone.sourceforge.net/](http://winstone.sourceforge.net/)** and put the jar in the same directory as the start.sh.
 
-9. **Copy gpio.conf.MUST_BE_CHANGED** to gpio.conf and configure it.
+9. Check the location and name of WINSTONE_JAR in start.sh
 
-10. Start the servlet container `sudo ./start.sh`. You may have to mark the scripts executable `chmod a+x start.sh stop.sh` first.
+10. **Copy gpio.conf.MUST_BE_CHANGED** to gpio.conf and configure it.
 
-11. Make a request, e.g. **[http://raspberrypi:8080/handle?g0=1&g1=0](http://raspberrypi:8080/handle?g0=1&g1=0)**
+11. Start the servlet container `sudo ./start.sh`. You may have to mark the scripts executable `chmod a+x start.sh stop.sh` first.
+
+12. Make a request, e.g. **[http://raspberrypi:8080/handle?g0=1&g1=0](http://raspberrypi:8080/handle?g0=1&g1=0)**
 
     It will return {"g1":0,"g0":1}.
   
-12. Read the log file logs/raspberry-pi-gpio-web-control.log
+13. Read the log file logs/raspberry-pi-gpio-web-control.log
     
-13. Stop the servlet container `sudo ./stop.sh`. Make sure that there are no old Winstone processes running with old configurations! You can check that with `ps -ef| grep java`. In case you can not stop the process and you have to stop it with kill -9, you may consider rebooting as the GPIOs are still exported and the next start may fail.
+14. Stop the servlet container `sudo ./stop.sh`. Make sure that there are no old Winstone processes running with old configurations! You can check that with `ps -ef| grep java`. In case you can not stop the process and you have to stop it with kill -9, you may consider rebooting as the GPIOs are still exported and the next start may fail.
 
-14. To enable cronjobs, you need to copy cron.conf.MAY_BE_CHANGED to cron.conf and configure it
+15. To enable cronjobs, you need to copy cron.conf.MAY_BE_CHANGED to cron.conf and configure it
 
 
 ## Going Productive