Sunday, November 08, 2015

Raspberry PI Notes

Getting Started

On Windows PC, get the following to connect directly
  1. DHCP server from http://www.dhcpserver.de/
  2. Putty from http://www.putty.org/
  3. TightVNC viewer from http://www.tightvnc.com/download.php

Setting Remote

  1. Telnet connection: follow - 
  2. Remote desktop: follow - https://www.raspberrypi.org/documentation/remote-access/vnc/

Setting WiFi

Reference:
http://www.howtogeek.com/167425/how-to-setup-wi-fi-on-your-raspberry-pi-via-the-command-line/
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
Compare the contents of the file, if it exists, to the following code. If the file is empty, you can use this code to populate it. Take note of the commented lines (indicated by the # marks) to reference which variable you should use based on your current Wi-Fi node configuration.
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="YOURSSID"
psk="YOURPASSWORD"
# Protocol type can be: RSN (for WP2) and WPA (for WPA1)
proto=WPA
# Key management type can be: WPA-PSK or WPA-EAP (Pre-Shared or Enterprise)
key_mgmt=WPA-PSK
# Pairwise can be CCMP or TKIP (for WPA2 or WPA1)
pairwise=TKIP
#Authorization option should be OPEN for both WPA1/WPA2 (in less commonly used are SHARED and LEAP)
auth_alg=OPEN

}

Web server

CherryPy

  1. Commands for installation:
    sudo apt-get install python-pip
    sudo pip install cherrypy
  2. The package will be installed under:  /usr/local/lib/python2.7/dist-packages/cherrypy/

Reference sites:

  • http://docs.cherrypy.org/en/latest/tutorials.html
  • https://raspberrypiwonderland.wordpress.com/tag/cherrypy/


3/6/2020
On Pi 2B , installed the latest Raspbian Full version with Kernel version 4.19.118-v7 #1311
WiFi did not work out of box with the RTL 8188EU dongle.
Installed driver using http://downloads.fars-robotics.net/ script
http://downloads.fars-robotics.net/wifi-drivers/install-wifi


14/6/2020
Pine 64. Xenial
Wifi Driver Update
https://medium.com/@daniel.cohen/setting-up-usb-wifi-dongle-on-pine64-dc41def83c75