wiki:PiBotOsInstallation

Version 3 (modified by chris, 9 years ago) (diff)

--

  • Install Jessie Lite to your sd card Raspbian Jessie OS
  • Install Bonjour Services from Apple. This allows your windows machine to 'just know' the hostname raspberrypi.local. See Bonjour for Windows
  • Connect your Pi to the computer via a USB 2.0 port. On the Pi use the usb port for data and power, not the one on the end (which is power, no data).
  • Wait a while while the Pi boots and your USB drivers for the Pi are installed. Once the light on the Pi should be solid green after a while and the driver is installed, continue.
  • Set up connection sharing between Windows and the Pi.
    • Go to Control Panel > Network and Sharing Center > Adapter Settings.
    • Identify the name of the network corresponding to the Pi--Its a Unidentified Network, USB Ethernet/RNDIS Gadget. Its probably something generic like "Ethernet 3".
    • Right click on your main ethernet card. Pick Properties > Sharing Tab. Check "Allow other network users to connect through this computer's internet connection, and pick the name of the home networking connection identified in the step above. Click OK.
    • NOTE: on some systems (e.g. a laptop with WiFi? access only), you may not be able to choose the specific network connection you will share your main connection with, you just enable internet sharing. You may also need to manually add the Google name server (8.8.8.8) to the IPv4 properties of the virtual (USB) connection that corresponds to your Pi:
      • Control Panel -> Network and Internet -> Network Connections
      • Right click the connection labeled USB Ethernet/RNDIS Gadget and select Properties
      • Select Internet Protocol Version 4 (TCP/IPv4) and press the Properties button
      • Under Use the Following DNS server addresses, set the preferred DNS server to 8.8.8.8
      • Press OK
  • Connect to Pi: ssh pi@raspberrypi.local (password is raspberry)
  • Configure Pi
    • Setup DNS: sudo nano /etc/resolv.conf .

add: nameserver 8.8.8.8 add: nameserver 8.8.4.4

  • sudo raspi-config
    • Activate the Pi Zero's built-in I2C Interface:
      • Use the down arrow to select 'Advanced Options'
      • Arrow down and select 'I2C'
      • Select 'Yes' to enable the I2C Interface
      • Acknowledge the notification confirming the I2C Interface has been enabled
    • What else should be done in raspi-config? (If its "expand to use the whole sd card", that forces a reboot, and should probably move to the last step.)
    • Navigate out of raspi-config
  • Update to latest software (this will take a while):
      sudo apt-get update
      sudo apt-get upgrade
    
  • Install Oracle Java JDK: sudo apt-get install oracle-java8-jdk . Do not use OpenJDK, its slower.
  • Install git: sudo apt-get install git
  • Install wiringPi:
      mkdir ~/dev;cd ~/dev
      git clone git://git.drogon.net/wiringPi
      cd wiringPi
      ./build  
    
    Then, test by running "gpio -v" and "man gpio"
  • Install Pi4J
  • Do we use Maven?
  • Shutdown your pi with 'sudo halt', disconnect it and reconnect it again to reboot it fully. You may have to reassign Windows Network Sharing connections one more time since the MAC is now constant, but it should stick after that.