uninstallation help
This commit is contained in:
@@ -36,6 +36,10 @@ Make sure you have your USB cable plugged into the left port **USB** and not the
|
|||||||
```
|
```
|
||||||
1. Install the systemd script
|
1. Install the systemd script
|
||||||
`cp serial-ether-gadget.service /lib/systemd/system/.`
|
`cp serial-ether-gadget.service /lib/systemd/system/.`
|
||||||
|
1. Enable the service
|
||||||
|
```
|
||||||
|
systemctl enable serial-ether-gadget.service
|
||||||
|
```
|
||||||
1. Enable the getty (which connects a login terminal to the serial port)
|
1. Enable the getty (which connects a login terminal to the serial port)
|
||||||
```
|
```
|
||||||
systemctl enable serial-getty@ttyGS0.service
|
systemctl enable serial-getty@ttyGS0.service
|
||||||
@@ -72,3 +76,30 @@ This is similar to the procedure for accessing an Arduino.
|
|||||||
` sudo screen /dev/ttyUSB0 115200
|
` sudo screen /dev/ttyUSB0 115200
|
||||||
```
|
```
|
||||||
1. Press enter and you will be prompted to log in to the Pi with default credentials. User: pi - PW: raspberry
|
1. Press enter and you will be prompted to log in to the Pi with default credentials. User: pi - PW: raspberry
|
||||||
|
|
||||||
|
# Disabling the OTG mode to use a keyboard and mouse again
|
||||||
|
|
||||||
|
**WARNING: Untested**
|
||||||
|
1. Comment out the dwg2 line in `/boot/firmware/config.txt` using a `#` in front of the line
|
||||||
|
```
|
||||||
|
[all]
|
||||||
|
#dtoverlay=dwg2
|
||||||
|
```
|
||||||
|
1. Comment out the dwg2 line in `/etc/modules` using a `#` in front of the line
|
||||||
|
```
|
||||||
|
#dwg2
|
||||||
|
```
|
||||||
|
1. Disable the gadget service
|
||||||
|
```
|
||||||
|
systemctl disable serial-ether-gadget.service
|
||||||
|
```
|
||||||
|
1. Disable the getty
|
||||||
|
```
|
||||||
|
systemctl disable serial-getty@ttyGS0.service
|
||||||
|
```
|
||||||
|
|
||||||
|
# Connecting over the USB ethernet to ssh into your Pi
|
||||||
|
|
||||||
|
I have not tested this procedure because the serial console and normal network connection is sufficient for me --foley
|
||||||
|
|
||||||
|
https://www.raspberrypi.com/news/usb-gadget-mode-in-raspberry-pi-os-ssh-over-usb/
|
||||||
|
|||||||
Reference in New Issue
Block a user