Changes between Version 19 and Version 20 of PiBotOsInstallation


Ignore:
Timestamp:
Sep 27, 2016, 11:40:49 PM (9 years ago)
Author:
chris
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PiBotOsInstallation

    v19 v20  
    3939     }}}
    4040
    41 
    42 * Run a program at startup of Pi/Raspian:
    43 
    44     Check out the following URLs for examples and reference information:
    45 
    46     http://www.mikeslab.net/?p=176
    47     http://wiki.debian.org/LSBInitScripts
    48 
    49     Highlights from this page:
    50 
    51         NOTE: Use ‘sudo’ to perform these operations as root in a Raspbian shell…
    52 
    53     Create an LSB style init script for launching a PiBot autonomous startup app.[[BR]]
    54 *   I copied rc.local as a starting point and modified it to run my desired - PiBot app as follows:
    55   * sudo cp /etc/init.d/rc.local /etc/init.d/pibot_auto
    56   * sudo vi /etc/init.d/pibot_auto
    57   * Revise the header block to describe PiBot autonomous app
    58   * Revise the do_start() to launch the PiBot autonomous app
    59   * Save and exit editor
    60   * Test/debug the script until it works as desired using these commands:
    61   * sudo /etc/init.d/pibot_auto start
    62   * sudo /etc/init.d/pibot_auto stop
    63   * sudo /etc/init.d/pibot_auto restart
    64     When working as desired, register script to run at startup/shutdown:
    65   * sudo update-rc.d pibot_auto defaults
    66     If the script is changed (edited) after registering, a ‘reload’ may be necessary as follows:
    67   * sudo systemctl daemon-reload
    68     To unregister the script (i.e., stop it from running at startup/shutdown):
    69   * sudo update-rc.d -f pibot_auto remove
     41* [wiki:SetupPiZeroSSHOverUSB Setup SSH over USB for the Pi Zero]
     42* [wiki:SetupPiZeroWiFi Setup WiFi for the Pi Zero] 
     43* [wiki:HowToRunProgramAtStartupPiZero How to run a program at startup on the Pi Zero]
    7044
    7145
    72 * [wiki:SetupPiZeroSSHOverUSB Setup SSH over USB for the Pi Zero]
    73 * [wiki:SetupPiZeroWiFi Setup WiFi for the Pi Zero] 
    74 
    75