Skip to content

Instantly share code, notes, and snippets.

@theparticleman
Last active October 6, 2017 18:07
Show Gist options
  • Save theparticleman/86425d4a597a312331c541e0e031a288 to your computer and use it in GitHub Desktop.
Save theparticleman/86425d4a597a312331c541e0e031a288 to your computer and use it in GitHub Desktop.
Raspberry Pi robot setup
#!/bin/bash
# Change keyboard layout
#sudo raspi-config, 4 - Localization, 3 - Change keyboard layout,
# Enable SSH
#sudo raspi-config, 5 - Interfacing Options, 2 - SSH
# Enable Camera
#sudo raspi-config, 5 - Interfacing Options, 1 - Camera
# Set up wifi
sudo cp /etc/wpa_supplicant/wpa_supplicant.conf ~/temp.txt
echo -e "\nnetwork={\n\tssid=\"wireless\"\n\tpsk=\"password\"\n}" >> ~/temp.txt
sudo cp ~/temp.txt /etc/wpa_supplicant/wpa_supplicant.conf
# Assign Raspberry Pi static IP address if needed
# Past this point the setup commands can be run remotely
sudo apt-get update
sudo apt-get install git -y
sudo apt-get install python-picamera -y
git clone https://github.com/simonmonk/raspirobotboard3.git
cd raspirobotboard3/python
sudo python setup.py install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment