these steps have already been completed for the two pis we have
-
open sd card root on another system
-
append the following to config.txt:
dtoverlay=dwc2
-
put the folling in cmdline.txt after
rootwait
:modules-load=dwc2,g_ether
-
create an empty file named 'ssh' in the root directory.
from https://hacks.mozilla.org/2017/02/headless-raspberry-pi-configuration-over-bluetooth/
- run the following commands (on the pi (somehow))
mv setup/btserial.sh /home/pi/
sudo chmod +755 /home/pi/btserial.sh
-
add
sudo /home/pi/btserial.sh &
to /etc/rc.local -
reboot pi
Installing rmate for remote editing via sublime -- see https://github.com/randy3k/RemoteSubl
- Run the following commands from this directory after copying this repo to a raspberry pi
mv setup/rmate /usr/local/bin/
sudo chmod +x /usr/local/bin/rmate
-
Install sublime text on development machine
-
Install the RemoteSubl package
-
Run
rmate FILE
on the raspberry pi to edit the file in sublime text on the dev machine. Will automatically save to the pi.
- (with rmate enabled)
ssh -R 52698:localhost:52698 pi@<HOSTNAME>.local
- (without rmate port)
ssh pi@<HOSTNAME>.local
<HOSTNAME>
is "raspberrypi0" for the reciever raspberry pi and "raspberrypi1" for the sender.
- Boot the pi
- turn on bluetooth
ls /dev/cu.*
to look for the piscreen /dev/cu.raspberrypi-SerialPort 115200
Tmux -- https://www.hamvocke.com/blog/a-quick-and-easy-guide-to-tmux/ (installed on linux systems, available on homebrew for macos)
- PySerial (pip install pyserial) -- DO NOT INSTALL "serial"
- PyUSB (pip install pyusb)