Changes between Version 23 and Version 24 of SetupPiZeroSSHOverUSB
- Timestamp:
- Jun 23, 2018, 8:42:37 AM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SetupPiZeroSSHOverUSB
v23 v24 10 10 * Edit [http://elinux.org/RPi_cmdline.txt cmdline.txt]: 11 11 * Insert {{{modules-load=dwc2,g_ether g_ether.dev_addr=5a:77:1e:af:8e:9e g_ether.host_addr=72:8d:1f:c4:e8:ca}}} after rootwait. This will load the IP over USB driver and configure a fixed MAC address (otherwise, the Pi will generate a new random MAC address each boot and Windows will think it is a different Pi). See [http://blog.gbaman.info/?p=791 here] and [https://gist.github.com/Gadgetoid/319ecf8e3c5d3660e298 here] for more info. Use a unique pair of MAC address for each Pi. Note there is exactly one space between each term, and the whole cmdline.txt file is one line. 12 * Remove the command that will automatically resize the partition to fill the disk: {{{init=/usr/lib/raspi-config/init_resize.sh 13 }}} 12 * Remove the command that will automatically resize the partition to fill the disk: {{{init=/usr/lib/raspi-config/init_resize.sh}}} 14 13 * create an empty file named /boot/ssh (so ssh will be enabled) 15 14 * create an empty file named /boot/avahi (to enable mdns/zeroconfig) 15 * if installing on a pi with wifi built-in, add /boot/wpa-supplicant.conf containing: 16 {{{ 17 country=US 18 ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev 19 update_config=1 20 21 network={ 22 ssid="My WiFi 2.4" 23 psk="mypassword123" 24 key_mgmt=WPA-PSK 25 } 26 }}} 16 27 * Install Bonjour on your computer from [https://support.apple.com/downloads/bonjour%2520for%2520windows here] to support automatic discovery of the Pi 17 28 * Connect your Pi to the computer via a USB 2.0 port. On the Pi use the usb port for data and power, that's the one in the middle, not the one on the end (which is power, no data).