bgoodwine / SeniorDesign

Code for Senior Design II
0 stars 1 forks source link

Install OS on Pi Zero W 2 w/ microSD Card #3

Closed bgoodwine closed 1 year ago

bgoodwine commented 1 year ago
bgoodwine commented 1 year ago

What not to do because it didn't work

Insitalled Raspbian using the Raspberry Pi Imager Video tutorial - I did almost exactly this Imager doesn't support passwordless wifi

However, if you take the Imager created card and edit wpa_supplicant.conf and remove the psk= line and add instead: key_mgmt=NONE The Pi connects to the network. But someone using a Mac or Windows can't edit the wpa_supplicant.conf file. Setup wifi on Pi via command line - added lines to sudo vim /etc/wpa_supplicant/wpa_supplicant.conf:

network={
ssid="ND-guest"
key_mgmt=NONE
}

Configured ssh: pi@hal9000 with typical irishsat pi password

bgoodwine commented 1 year ago

Install via command line

Cute medium article Actual wiki NOTE: sudo dd bs=1m if=2022-09-22-raspios-bullseye-armhf-lite.img of=/dev/disk3 NOT of=/dev/disk3/s1; this will cause the image to be written to a partition instead (seriously don't do it)

Enable wifi PING will work with this wpa_supplicant.conf file in /Volumes/boot

country=US
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
       ssid=""
       key_mgmt=NONE
    }

NOTE: file will be moved after boot

bgoodwine commented 1 year ago

Try next...

Try:

network={
ssid="SDNet"
psk="Your Wifi Password"
}

Or: Try next to enable SSH

  1. Write with imager
  2. Modify wifi?
bgoodwine commented 1 year ago
  1. Connected to SDNet
  2. Ran the Raspberry Pi Imager to configure the wifi to run off SDNet (instructions)
  3. Ran dns-sd -G v4 hal.local to find IP Address 192.168.10.239
  4. ssh pi@192.168.10.239 with normal IrishSat password
bgoodwine commented 1 year ago

Get Pi to act as USB serial device

bgoodwine commented 1 year ago

ND-guest

Request timeout for icmp_seq 5
36 bytes from man-jbr-0.gw.nd.edu (172.21.254.24): Communication prohibited by filter
Vr HL TOS  Len   ID Flg  off TTL Pro  cks      Src      Dst
 4  5  00 5400 bbdd   0 0000  3d  01 d2a0 10.7.25.141  192.168.10.239 

Router configured to not allow ping :/

How to SSH outside of home network!!!

Try this :)

bgoodwine commented 1 year ago

Solution

  1. User Raspberry Pi Imager to install Raspberry Pi OS (32 bit) on Pi
  2. Preconfig (CTRL + SHIFT + X) Wifi: SDNet, User: pi, Name: hal, etc. for all preconfig options (NOTE: must be a wifi with a password!!!)
  3. Turn on by connecting microUSB PWR IN on Pi to laptop
  4. Wait a bit and test with dns-sd -G v4 PI_NAME.local to get IP address assigned to Pi by SDNet
  5. ssh pi@IP_ADDR and enter password
  6. Enable VNC viewer