Friday, December 5, 2014

Raspberry PI Notes

AdaFruit

  • Raspberry Pi Model B Starter Pack - Includes a Raspberry Pi
    • https://www.adafruit.com/products/1014
  • Connect via the USB Cable:
    • https://learn.adafruit.com/adafruits-raspberry-pi-lesson-4-gpio-setup/the-gpio-connector
  • Connect via SSH
    • https://learn.adafruit.com/raspberry-pi-e-mail-notifier-using-leds/remote-ssh
  • AdaFruit Python sample:
    • https://github.com/adafruit/Adafruit-Raspberry-Pi-Python-Code

Bash Commands

  • Get IP
    • hostname -I
  • Username/password: pi/raspberry
  • Access device configuration
    • sudo rasp-config
  • Get disk usage
    • df -H
    • du -H\
  • How to reboot
    • sudo reboot
    • sudo shutdown -h now
  • Edit Mouse Acceleration (LXTerminal
    • lxinput
  • Change Desktop color and image
    • pcmanfm --desktop-pref
  • Control Panel
    • pcmanfm
  • Extract current ip
    • ifconfig | grep inet.*Bcast

Keyboard

  • Setup US keyboard
    • sudo nano /etc/default/keyboard
    • XKBLAYOUT="us"

Display

  • My hdmi to vga adapter stop working one day. Not sure why. I add to drop to a safer mode. With a real hdmi tv I did not have any problem
    • nano boot/config.txt
    • un comment hdmi_safe=1

Wifi

  • How to setup the wifi
    • https://learn.adafruit.com/adafruits-raspberry-pi-lesson-3-network-setup/setting-up-wifi-with-occidentalis

File Transfert

  • File transfer from and to a Windows machine
    • FileZilla
      • http://trevorappleton.blogspot.com/2014/03/remotely-copy-files-to-and-from-your.html
GPIO Mapping
  • Raspberry pi b+ pin maps

Python

  • Library 
    • Tutorial https://learn.adafruit.com/adafruits-raspberry-pi-lesson-4-gpio-setup/adafruit-pi-code
    • GPIO
      • sudo pip install RPi.GPIO
    • EMail
      • sudo pip install feedparser

No comments:

Post a Comment