Skip to content

Instantly share code, notes, and snippets.

@amstanley
Last active May 4, 2023 11:34
Show Gist options
  • Save amstanley/9da7febc9a3e3c2228ee to your computer and use it in GitHub Desktop.
Save amstanley/9da7febc9a3e3c2228ee to your computer and use it in GitHub Desktop.

Revisions

  1. amstanley revised this gist Feb 15, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    #!/bin/bash

    # STATUS A/O 2016 02 13: tested, works
    # STATUS A/O 2016 02 14: tested, works

    # based on https://barclaysapps.wordpress.com/2014/07/06/openalpr-install-for-rpi-and-udoo-and-tre-and-yun/ ,
    # http://lukagabric.com/raspberry-pi-license-plate-recognition/, and updated for new packages.
  2. amstanley revised this gist Feb 15, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -42,7 +42,7 @@


    # download this tutorial:
    # wget https://gist.github.com/amstanley/9da7febc9a3e3c2228ee/archive/7d19810e396619736105cb8a0ec4789567313c19.zip
    # wget https://gist.github.com/amstanley/9da7febc9a3e3c2228ee/archive/888d43a54c4edee09fc452f8daae593884013245.zip
    # unzip the resulting file, which should give you a doirectory with a file called gistfile1.txt inside it
    # cd to the directory and make gistfile1.txt executable (chmod +x filename) so it can run as a script and then run it.
    # when it is done resume manual entry
  3. amstanley revised this gist Feb 15, 2016. 1 changed file with 3 additions and 4 deletions.
    7 changes: 3 additions & 4 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -42,10 +42,9 @@


    # download this tutorial:
    # wget https://gist.github.com/amstanley/9da7febc9a3e3c2228ee/archive/adaf91953da46498f00c885230d1d198a45370c6.zip
    # unzip 655ca8d3ca8eb17a3376123950de8445fb83a404.zip

    # make it executable (chmod +x filename) so it can run as a script and then run it.
    # wget https://gist.github.com/amstanley/9da7febc9a3e3c2228ee/archive/7d19810e396619736105cb8a0ec4789567313c19.zip
    # unzip the resulting file, which should give you a doirectory with a file called gistfile1.txt inside it
    # cd to the directory and make gistfile1.txt executable (chmod +x filename) so it can run as a script and then run it.
    # when it is done resume manual entry

    # Create a log file of the build as well as displaying the build on the tty as it runs
  4. amstanley revised this gist Feb 14, 2016. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -28,7 +28,7 @@
    # diskutil unmountDisk /dev/disk3
    # sudo dd bs=1m if=/Users/malcolm/Desktop/2016-02-09-raspbian-jessie.img of=/dev/rdisk3

    # then remove fronm the reader, plug the card into the raspberry pi and connect it to your lkaptop using a usb power cord and an ethernet cable.
    # then remove fronm the reader, plug the card into the raspberry pi and connect it to your laptop using a usb power cord and an ethernet cable.
    # be sure to be sharing internet access on the mac for this to work

    # ping raspberrypi.local
    @@ -37,7 +37,7 @@

    # sudo raspi-config
    # expand the memory card in the menu items
    # enbvalke camera support in the menu items
    # enable camera support in the menu items
    # reboot


  5. amstanley revised this gist Feb 14, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -42,7 +42,7 @@


    # download this tutorial:
    # wget https://gist.github.com/amstanley/9da7febc9a3e3c2228ee/archive/cce90783252f766d342b424d63a15777546b88db.zip
    # wget https://gist.github.com/amstanley/9da7febc9a3e3c2228ee/archive/adaf91953da46498f00c885230d1d198a45370c6.zip
    # unzip 655ca8d3ca8eb17a3376123950de8445fb83a404.zip

    # make it executable (chmod +x filename) so it can run as a script and then run it.
  6. amstanley revised this gist Feb 14, 2016. 1 changed file with 21 additions and 1 deletion.
    22 changes: 21 additions & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -21,12 +21,32 @@
    # note that an 8GB card will fill before this tutorial ends, so you will need a card bigger than that.
    # Not tested on a 16GB card so no idea if that will work or not.

    # Alternatively you can do the whole thing without using noobs following these steps:
    # tested using a mac: your mileage on other systems may vary
    # insert the memory card into a reader and plug into your computer usb port
    # diskutil list
    # diskutil unmountDisk /dev/disk3
    # sudo dd bs=1m if=/Users/malcolm/Desktop/2016-02-09-raspbian-jessie.img of=/dev/rdisk3

    # then remove fronm the reader, plug the card into the raspberry pi and connect it to your lkaptop using a usb power cord and an ethernet cable.
    # be sure to be sharing internet access on the mac for this to work

    # ping raspberrypi.local
    # ssh pi@<ipaddfress>
    # pw: raspberry

    # sudo raspi-config
    # expand the memory card in the menu items
    # enbvalke camera support in the menu items
    # reboot


    # download this tutorial:
    # wget https://gist.github.com/amstanley/9da7febc9a3e3c2228ee/archive/cce90783252f766d342b424d63a15777546b88db.zip
    # unzip 655ca8d3ca8eb17a3376123950de8445fb83a404.zip

    # make it executable (chmod +x filename) so it can run as a script and then run it.
    # when it is done resume manual entry at line 112.
    # when it is done resume manual entry

    # Create a log file of the build as well as displaying the build on the tty as it runs
    exec > >(tee build_alpr_pi.log)
  7. amstanley revised this gist Feb 14, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -22,7 +22,7 @@
    # Not tested on a 16GB card so no idea if that will work or not.

    # download this tutorial:
    # wget https://gist.github.com/amstanley/9da7febc9a3e3c2228ee/archive/62c2636facec38187781f610531f3a9e7e41a3c7.zip
    # wget https://gist.github.com/amstanley/9da7febc9a3e3c2228ee/archive/cce90783252f766d342b424d63a15777546b88db.zip
    # unzip 655ca8d3ca8eb17a3376123950de8445fb83a404.zip

    # make it executable (chmod +x filename) so it can run as a script and then run it.
  8. amstanley revised this gist Feb 14, 2016. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -199,6 +199,7 @@ alpr -c us ea7the.jpg
    #upload_address = http://localhost:9000/push/

    #Save the file, exit, and type:
    # sudo service uv4l_raspicam restart
    # alprd -f
    # and see if the daemon connects to the stream.

  9. amstanley revised this gist Feb 14, 2016. 1 changed file with 37 additions and 1 deletion.
    38 changes: 37 additions & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -166,4 +166,40 @@ alpr -c us ea7the.jpg
    # - EA7TBB confidence: 68.2095

    # wget http://plates.openalpr.com/h786poj.jpg
    # alpr -c eu h786poj.jpg
    # alpr -c eu h786poj.jpg

    #edit the alprd daemon config:
    # cd /etc/openalpr
    # sudo nano alprd.conf

    # below the line that says '[daemon]' add or edit the foloowing lines to look like this:

    # ; country determines the training dataset used for recognizing plates. Valid values are us, eu
    # country = us

    #; text name identifier for this location
    # site_id = raspberry_pi

    #; Declare each stream on a separate line
    #; each unique stream should be defined as stream = [url]

    #stream = http://127.0.0.1:8080/stream/video.mjpeg
    #;stream = http://127.0.0.1/example_second_stream.mjpeg
    #;stream = webcam

    #; topn is the number of possible plate character variations to report
    #topn = 10

    #; Determines whether images that contain plates should be stored to disk
    #store_plates = 0
    #store_plates_location = /var/lib/openalpr/plateimages/
    #
    #; upload address is the destination to POST to
    #upload_data = 0
    #upload_address = http://localhost:9000/push/

    #Save the file, exit, and type:
    # alprd -f
    # and see if the daemon connects to the stream.


  10. amstanley revised this gist Feb 14, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -22,7 +22,7 @@
    # Not tested on a 16GB card so no idea if that will work or not.

    # download this tutorial:
    # wget https://gist.github.com/amstanley/9da7febc9a3e3c2228ee/archive/a670894f0c0162c3f2efdcd93e527c59628f6c90.zip
    # wget https://gist.github.com/amstanley/9da7febc9a3e3c2228ee/archive/62c2636facec38187781f610531f3a9e7e41a3c7.zip
    # unzip 655ca8d3ca8eb17a3376123950de8445fb83a404.zip

    # make it executable (chmod +x filename) so it can run as a script and then run it.
  11. amstanley revised this gist Feb 14, 2016. 1 changed file with 2 additions and 3 deletions.
    5 changes: 2 additions & 3 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -29,7 +29,7 @@
    # when it is done resume manual entry at line 112.

    # Create a log file of the build as well as displaying the build on the tty as it runs
    exec > >(tee build_gstreamer.log)
    exec > >(tee build_alpr_pi.log)
    exec 2>&1

    # Set Up the camera to stream mjpeg. to do this follow this tutorial exactly:
    @@ -51,8 +51,7 @@ sudo apt-get install -y --force-yes autoconf build-essential automake libtool g
    libxvidcore-dev libx264-dev libgtk2.0-dev libatlas-base-dev \
    gfortran python2.7-dev python3-dev \
    libcurl4-openssl-dev liblog4cplus-1.0-4 liblog4cplus-dev uuid-dev \
    uv4l uv4l-raspicam uv4l-raspicam-extras uv4l-server uv4l-mjpegstream \
    gstreamer1.0
    uv4l uv4l-raspicam uv4l-raspicam-extras uv4l-server uv4l-mjpegstream

    # Clone openalpr:
    cd /home/pi
  12. amstanley revised this gist Feb 14, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    #!/bin/bash

    # STATUS A/O 2016 02 13: untested, indeterminate
    # STATUS A/O 2016 02 13: tested, works

    # based on https://barclaysapps.wordpress.com/2014/07/06/openalpr-install-for-rpi-and-udoo-and-tre-and-yun/ ,
    # http://lukagabric.com/raspberry-pi-license-plate-recognition/, and updated for new packages.
  13. amstanley revised this gist Feb 14, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -22,7 +22,7 @@
    # Not tested on a 16GB card so no idea if that will work or not.

    # download this tutorial:
    # wget https://gist.github.com/amstanley/9da7febc9a3e3c2228ee/archive/f0b0688f616560a72d29c50c696e60c5cd045203.zip
    # wget https://gist.github.com/amstanley/9da7febc9a3e3c2228ee/archive/a670894f0c0162c3f2efdcd93e527c59628f6c90.zip
    # unzip 655ca8d3ca8eb17a3376123950de8445fb83a404.zip

    # make it executable (chmod +x filename) so it can run as a script and then run it.
  14. amstanley revised this gist Feb 14, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -145,7 +145,7 @@ sed -i '11 i SET(OpenCV_DIR "~/openalpr/libraries/opencv-3.1.0/build")' /home/pi
    cmake ./
    make -j4
    sudo make install
    # sudo cp -r /usr/local/lib/* /lib
    sudo cp -r /usr/local/lib/* /lib
    # sudo cp /home/pi/openalpr/libraries/opencv-2.4.11/release/lib/* /lib
    # note: seems like this last step is just a path issue... surely better way to do this)

  15. amstanley revised this gist Feb 14, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -81,7 +81,7 @@ unzip opencv_contrib.zip
    # clean up the downloads
    rm leptonica-1.71.tar.gz
    # rm opencv-2.4.9.zip
    rm unzip opencv.zip
    rm opencv.zip
    rm opencv_contrib.zip

    # compile leptonica:
  16. amstanley revised this gist Feb 14, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -22,7 +22,7 @@
    # Not tested on a 16GB card so no idea if that will work or not.

    # download this tutorial:
    # wget https://gist.github.com/amstanley/9da7febc9a3e3c2228ee/archive/e83810da8761d2c72938a0241ab5b3753055d017.zip
    # wget https://gist.github.com/amstanley/9da7febc9a3e3c2228ee/archive/f0b0688f616560a72d29c50c696e60c5cd045203.zip
    # unzip 655ca8d3ca8eb17a3376123950de8445fb83a404.zip

    # make it executable (chmod +x filename) so it can run as a script and then run it.
  17. amstanley revised this gist Feb 14, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -139,8 +139,8 @@ cd /home/pi/openalpr/src
    # SET(OpenCV_DIR "/home/pi/openalpr/libraries/opencv-2.4.11/release")
    # SET(Tesseract_DIR "/home/pi/openalpr/libraries/tesseract")
    # do this using sed
    sed -i '11 i SET(Tesseract_DIR "/home/pi/openalpr/libraries/tesseract")' /home/pi/openalpr/src/CMakeLists.txt
    sed -i '11 i SET(OpenCV_DIR "~/openalpr/libraries/opencv-3.1.0/build")' /home/pi/openalpr/src/CMakeLists.txt
    sed -i '12 i SET(Tesseract_DIR "/home/pi/openalpr/libraries/tesseract")' /home/pi/openalpr/src/CMakeLists.txt

    cmake ./
    make -j4
  18. amstanley revised this gist Feb 14, 2016. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -139,8 +139,8 @@ cd /home/pi/openalpr/src
    # SET(OpenCV_DIR "/home/pi/openalpr/libraries/opencv-2.4.11/release")
    # SET(Tesseract_DIR "/home/pi/openalpr/libraries/tesseract")
    # do this using sed
    sed '11 i SET(OpenCV_DIR "~/openalpr/libraries/opencv-3.1.0/build")' /home/pi/openalpr/src/CMakeLists.txt > /home/pi/openalpr/src/CMakeLists.txt
    sed '12 i SET(Tesseract_DIR "/home/pi/openalpr/libraries/tesseract")' /home/pi/openalpr/src/CMakeLists.txt > /home/pi/openalpr/src/CMakeLists.txt
    sed -i '11 i SET(OpenCV_DIR "~/openalpr/libraries/opencv-3.1.0/build")' /home/pi/openalpr/src/CMakeLists.txt
    sed -i '12 i SET(Tesseract_DIR "/home/pi/openalpr/libraries/tesseract")' /home/pi/openalpr/src/CMakeLists.txt

    cmake ./
    make -j4
  19. amstanley revised this gist Feb 14, 2016. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -139,8 +139,8 @@ cd /home/pi/openalpr/src
    # SET(OpenCV_DIR "/home/pi/openalpr/libraries/opencv-2.4.11/release")
    # SET(Tesseract_DIR "/home/pi/openalpr/libraries/tesseract")
    # do this using sed
    sed '11 i SET(OpenCV_DIR "~/openalpr/libraries/opencv-3.1.0/build")' /home/pi/openalpr/src/CMakeLists.txt
    sed '12 i SET(Tesseract_DIR "/home/pi/openalpr/libraries/tesseract")' /home/pi/openalpr/src/CMakeLists.txt
    sed '11 i SET(OpenCV_DIR "~/openalpr/libraries/opencv-3.1.0/build")' /home/pi/openalpr/src/CMakeLists.txt > /home/pi/openalpr/src/CMakeLists.txt
    sed '12 i SET(Tesseract_DIR "/home/pi/openalpr/libraries/tesseract")' /home/pi/openalpr/src/CMakeLists.txt > /home/pi/openalpr/src/CMakeLists.txt

    cmake ./
    make -j4
  20. amstanley revised this gist Feb 14, 2016. 1 changed file with 9 additions and 8 deletions.
    17 changes: 9 additions & 8 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -131,26 +131,27 @@ sudo ldconfig
    cd ~/.virtualenvs/cv/lib/python2.7/site-packages/
    ln -s /usr/local/lib/python2.7/site-packages/cv2.so cv2.so

    ### Can't automate from here down as you need to edit files manually

    # Compile openALPR:
    # cd /home/pi/openalpr/src
    cd /home/pi/openalpr/src

    # nano CMakeLists.txt
    # add the following lines in the section near the top that has SET() statements
    # SET(OpenCV_DIR "/home/pi/openalpr/libraries/opencv-2.4.11/release")
    # SET(Tesseract_DIR "/home/pi/openalpr/libraries/tesseract")
    # do this using sed
    sed '11 i SET(OpenCV_DIR "~/openalpr/libraries/opencv-3.1.0/build")' /home/pi/openalpr/src/CMakeLists.txt
    sed '12 i SET(Tesseract_DIR "/home/pi/openalpr/libraries/tesseract")' /home/pi/openalpr/src/CMakeLists.txt

    # cmake ./
    # make -j4
    # sudo make install
    cmake ./
    make -j4
    sudo make install
    # sudo cp -r /usr/local/lib/* /lib
    # sudo cp /home/pi/openalpr/libraries/opencv-2.4.11/release/lib/* /lib
    # note: seems like this last step is just a path issue... surely better way to do this)

    # test the library (from https://github.com/openalpr/openalpr/wiki/Compilation-instructions-(Ubuntu-Linux)):
    # wget http://plates.openalpr.com/ea7the.jpg
    # alpr -c us ea7the.jpg
    wget http://plates.openalpr.com/ea7the.jpg
    alpr -c us ea7the.jpg

    # result:
    # plate0: 10 results
  21. amstanley revised this gist Feb 14, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -121,7 +121,7 @@ mkdir build
    cd build
    cmake -D CMAKE_BUILD_TYPE=RELEASE \
    -D CMAKE_INSTALL_PREFIX=/usr/local \
    -D INSTALL_C_EXAMPLES=ON \
    -D INSTALL_C_EXAMPLES=OFF \
    -D INSTALL_PYTHON_EXAMPLES=ON \
    -D OPENCV_EXTRA_MODULES_PATH=/home/pi/openalpr/libraries/opencv_contrib-3.1.0/modules \
    -D BUILD_EXAMPLES=ON ..
  22. amstanley revised this gist Feb 14, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -123,7 +123,7 @@ cmake -D CMAKE_BUILD_TYPE=RELEASE \
    -D CMAKE_INSTALL_PREFIX=/usr/local \
    -D INSTALL_C_EXAMPLES=ON \
    -D INSTALL_PYTHON_EXAMPLES=ON \
    -D OPENCV_EXTRA_MODULES_PATH=/home/pi/openalpr/libraries/opencv_contrib-3.1.0 \
    -D OPENCV_EXTRA_MODULES_PATH=/home/pi/openalpr/libraries/opencv_contrib-3.1.0/modules \
    -D BUILD_EXAMPLES=ON ..
    make -j4
    sudo make install
  23. amstanley revised this gist Feb 14, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -123,7 +123,7 @@ cmake -D CMAKE_BUILD_TYPE=RELEASE \
    -D CMAKE_INSTALL_PREFIX=/usr/local \
    -D INSTALL_C_EXAMPLES=ON \
    -D INSTALL_PYTHON_EXAMPLES=ON \
    -D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib-3.1.0/modules \
    -D OPENCV_EXTRA_MODULES_PATH=/home/pi/openalpr/libraries/opencv_contrib-3.1.0 \
    -D BUILD_EXAMPLES=ON ..
    make -j4
    sudo make install
  24. amstanley revised this gist Feb 14, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -123,7 +123,7 @@ cmake -D CMAKE_BUILD_TYPE=RELEASE \
    -D CMAKE_INSTALL_PREFIX=/usr/local \
    -D INSTALL_C_EXAMPLES=ON \
    -D INSTALL_PYTHON_EXAMPLES=ON \
    -D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib-3.0.0/modules \
    -D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib-3.1.0/modules \
    -D BUILD_EXAMPLES=ON ..
    make -j4
    sudo make install
  25. amstanley revised this gist Feb 14, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -22,7 +22,7 @@
    # Not tested on a 16GB card so no idea if that will work or not.

    # download this tutorial:
    # wget https://gist.github.com/amstanley/9da7febc9a3e3c2228ee/archive/f0aa626d86b4dce3059a3b2928f59986bbb7a9e0.zip
    # wget https://gist.github.com/amstanley/9da7febc9a3e3c2228ee/archive/e83810da8761d2c72938a0241ab5b3753055d017.zip
    # unzip 655ca8d3ca8eb17a3376123950de8445fb83a404.zip

    # make it executable (chmod +x filename) so it can run as a script and then run it.
  26. amstanley revised this gist Feb 14, 2016. 1 changed file with 4 additions and 2 deletions.
    6 changes: 4 additions & 2 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -112,9 +112,11 @@ echo 'export WORKON_HOME=$HOME/.virtualenvs' >> ~/.profile
    echo 'source /usr/local/bin/virtualenvwrapper.sh' >> ~/.profile
    source ~/.profile
    mkvirtualenv cv
    pip install numpy
    source ~/.profile
    workon cv
    cd ~/opencv-3.0.0/
    pip install numpy

    cd /home/pi/openalpr/libraries/opencv-3.1.0
    mkdir build
    cd build
    cmake -D CMAKE_BUILD_TYPE=RELEASE \
  27. amstanley revised this gist Feb 14, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -22,7 +22,7 @@
    # Not tested on a 16GB card so no idea if that will work or not.

    # download this tutorial:
    # wget https://gist.github.com/amstanley/9da7febc9a3e3c2228ee/archive/a4ba8757e4216a4a01714dca974b2317aebd1e2c.zip
    # wget https://gist.github.com/amstanley/9da7febc9a3e3c2228ee/archive/f0aa626d86b4dce3059a3b2928f59986bbb7a9e0.zip
    # unzip 655ca8d3ca8eb17a3376123950de8445fb83a404.zip

    # make it executable (chmod +x filename) so it can run as a script and then run it.
  28. amstanley revised this gist Feb 14, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -22,7 +22,7 @@
    # Not tested on a 16GB card so no idea if that will work or not.

    # download this tutorial:
    # wget https://gist.github.com/amstanley/9da7febc9a3e3c2228ee/archive/655ca8d3ca8eb17a3376123950de8445fb83a404.zip
    # wget https://gist.github.com/amstanley/9da7febc9a3e3c2228ee/archive/a4ba8757e4216a4a01714dca974b2317aebd1e2c.zip
    # unzip 655ca8d3ca8eb17a3376123950de8445fb83a404.zip

    # make it executable (chmod +x filename) so it can run as a script and then run it.
  29. amstanley revised this gist Feb 14, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -39,7 +39,7 @@ exec 2>&1
    curl http://www.linux-projects.org/listing/uv4l_repo/lrkey.asc | sudo apt-key add -

    # Add the following line to the file /etc/apt/sources.list (type sudo nano /etc/apt/sources.list) :
    sudo sh -c "echo 'deb http://www.linux-projects.org/listing/uv4l_repo/raspbian/ wheezy main' >> /etc/apt/sources.list"
    sudo -- sh -c "echo deb http://www.linux-projects.org/listing/uv4l_repo/raspbian/ wheezy main >> /etc/apt/sources.list"

    # Update and Upgrade the Pi, otherwise the build may fail due to inconsistencies
    sudo apt-get update && sudo apt-get upgrade -y --force-yes
  30. amstanley revised this gist Feb 14, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -39,7 +39,7 @@ exec 2>&1
    curl http://www.linux-projects.org/listing/uv4l_repo/lrkey.asc | sudo apt-key add -

    # Add the following line to the file /etc/apt/sources.list (type sudo nano /etc/apt/sources.list) :
    sudo echo 'deb http://www.linux-projects.org/listing/uv4l_repo/raspbian/ wheezy main' >> /etc/apt/sources.list
    sudo sh -c "echo 'deb http://www.linux-projects.org/listing/uv4l_repo/raspbian/ wheezy main' >> /etc/apt/sources.list"

    # Update and Upgrade the Pi, otherwise the build may fail due to inconsistencies
    sudo apt-get update && sudo apt-get upgrade -y --force-yes