usb pi zero dongle and ndis networking
Notes here about setting up forwarding on the windows box, and route add on the pi zero to get out to the internet.
Another guys blog post on the subject.
--30--
Boot error discussion for Raspberry Pi 2,3 and 4, zero.
https://www.raspberrypi.org/forums/viewtopic.php?p=437084#p437084
Scroll down, search for zero discussion below.
--copied-- Raspberry pi 2,3,4


Code: Select all
Long flashes Short flashes Status
0 3 Generic failure to boot
0 4 start*.elf not found
0 7 Kernel image not found
0 8 SDRAM failure
0 9 Insufficient SDRAM
0 10 In HALT state
2 1 Partition not FAT
2 2 Failed to read from partition
2 3 Extended partition not FAT
2 4 File signature/hash mismatch - Pi 4
4 4 Unsupported board type
4 5 Fatal firmware error
4 6 Power failure type A
4 7 Power failure type B
--30--
#!/usr/bin/env python
import tornado.ioloop
import tornado.web
import os
class MainHandler(tornado.web.RequestHandler):
def getCPUtemperature( self ):
res = os.popen('vcgencmd measure_temp').readline()
return(res.replace("temp=","").replace("'C\n",""))
def get(self):
self.write( "Temperature: %s" % ( self.getCPUtemperature() ) )
application = tornado.web.Application([
(r"/", MainHandler),
])
if __name__ == "__main__":
application.listen(8888)
tornado.ioloop.IOLoop.instance().start()
using RRD tool
http://lazydroid.com/2013/05/raspberry-pi-monitoring-cpu-temperature-with-rrdtool/
vcgencmd measure_tempMonitor loopwatch -n 1 vcgencmd measure_temp--30--
bcm2835-v4l2 to /etc/modules to get /etc/wpa_supplicant/wpa_supplicant.conf:ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="YOUR_SSID_HERE"
psk="YOUR_SECRET_PASSPHRASE_HERE"
id_str="SOME_DESCRIPTIVE_NAME"
}
Another page setup
https://www.instructables.com/id/How-to-Make-Raspberry-Pi-Webcam-Server-and-Stream-/
Maximum resolutions
V12592 × 1944 pixels
V23280 × 2464 pixels
--30--
sudo apt-get install wicd-curses
wget -O raspbian-lite-latest.zip https://downloads.raspberrypi.org/raspbian_lite_latestdd bs=4M if=2017-08-16-raspbian-stretch-lite.img of=/dev/sdbcd etc/network/interfaces.d/
vim wlan0.confauto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.confvim etc/wpa_supplicant/wpa_supplicant.confcountry=AU
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="SSID"
psk=HASHED_PSK_VALUE
}
country=US
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="your_real_wifi_ssid"
scan_ssid=1
psk="your_real_password"
key_mgmt=WPA-PSK
}
sudo vim etc/resolv.conf# Google's public DNS servers
nameserver 8.8.8.8
nameserver 8.8.4.4cd boot/
sudo touch sshsudo nmap -p22 -sV 10.1.1.0/24sudo iw dev wlan0 set power_save offRaspberry Pi forum entry link for headless setuphttps://www.raspberrypi.org/forums/viewtopic.php?t=191252 --30--