[@messageCenter]

Raspberry Pi Stuff

Raspberry Pi Code and TricksUpdated 3 years ago

Install a BulletProof Digital Sign:

The Bulletproof Sign System works on most Linux Operating Systems.

We suggest either Raspbian or Ubuntu.

Files are stored locally, but updated from a remote system (as scheduled).

Therefor, all you need to do is run the following code, to get a default screen running.

Next, point it at the server where you store your Playlist + Files, and it will do the rest!

  1. Install your Linux Flavour of Choice:

    To Install Rasbian (Linux) on Raspberry Pi:

    Show Instructions

    To Install Ubuntu (Linux) on Rapsberry Pi:

    Show Instructions

  2. Run the Script Below, which will:
    • Install Linux Updates
    • Install PHP (The Core Programming Langauge)
    • Install CURL (A PHP Extenstion used to download Files Remotely)
    • Install Zip Utility (For Unzipping Files)
    • Install GEdit (For Editing Code Files--if required)
    • Install Samba (For Remoting into this screen--if required)
    • Download the latest Copy of a Bare-Bones version of Bulletproof signs from AdamWithers.ca (~400KB)
    • Create a Folder: /var/www/bulletProof/
    • Extract the code to: /var/www/bulletProof/
    • Cleanup and Delete the Zip File
    • Set File Permissions for your folders
    Show Script

  3. Next, open the settings.php File with the following command:
  4. sudo gedit /var/www/bulletProof/settings.php

    and set:
    • Your Remote Playlist Location
    •   Example: http://adamwithers.ca/bulletProof/remote/bulletProofRemote.php
    • Your Remote File Location
    •   Example: http://adamwithers.ca/bulletProof/remote/
  5. Next, open your /etc/php5/apache2/php.ini or /etc/php/7.0/fpm/php.ini File and add the following line (anywhere) to complete your CURL install:
    extension=php_curl.dll

  6. Finally, run your new sign by going in your browser to: http://localhost/

  7. The first time you run your sign, all the remote files will be downloaded locally.

    If your sign ever looses network connectivity, it will just continue with the last valid playlist instructions it received.

Suggestions:

  • Set your HomePage to your Sign. With Chromium
  • Set your Screen to Never turn off

Videos:

$45 Rock Pi 4K
8-CORE Raspberry Pi Killer

Configuring Samba (For File Sharing):

Show Code

Install Updates:

Show Code

Create a Desktop Icon:

Show Code

Restart Apache:

Show Code

Default Logins + Passwords:

Show Code

Default Logins:

Show Code