Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
raspberry:zero_over_usb [2020/02/26 22:21] admin [Desktop Resolution] |
raspberry:zero_over_usb [2021/05/31 22:55] (current) admin [on Arch Linux] |
||
---|---|---|---|
Line 2: | Line 2: | ||
This is a manual for connecting a Raspberry Pi Zero to your computer via USB. | This is a manual for connecting a Raspberry Pi Zero to your computer via USB. | ||
- | After burning the image on your SD card one has to add the USB driver on startup. | + | After burning the image on your SD card one has to add the USB driver on startup. |
+ | |||
+ | Enable SSH on the Raspberry Pi in:\\ | ||
+ | $ sudo raspi-config | ||
+ | or create a new file named " | ||
+ | |||
+ | To change the DesignWare Core to 2 write in / | ||
dtoverlay=dwc2 | dtoverlay=dwc2 | ||
- | and in / | + | and in / |
modules-load=dwc2, | modules-load=dwc2, | ||
- | Create a new file named " | + | |
- | \\ | + | |
Connect the Pi Zero with an USB cable or an [[https:// | Connect the Pi Zero with an USB cable or an [[https:// | ||
$ ssh pi@raspberrypi.local | $ ssh pi@raspberrypi.local | ||
Line 13: | Line 18: | ||
---- | ---- | ||
- | ==== .local host on Arch Linux ==== | + | ==== on Arch Linux ==== |
[[https:// | [[https:// | ||
Line 19: | Line 24: | ||
$ sudo pacman -S avahi nss-mdns | $ sudo pacman -S avahi nss-mdns | ||
Start the avahi-daemon.service | Start the avahi-daemon.service | ||
- | $ systemctl start avahi-daemon.service | + | |
+ | $ sudo systemctl start avahi-daemon.service | ||
Edit the edit the file / | Edit the edit the file / | ||
$ sudo nano / | $ sudo nano / | ||
Line 31: | Line 37: | ||
in IPv6: " | in IPv6: " | ||
\\ | \\ | ||
+ | Activate the network connection: | ||
+ | | ||
+ | |||
+ | ---- | ||
+ | ==== VNC ==== | ||
+ | |||
For a VNC connection install the Real VNC on your host computer, then enable VNC on the Raspberry Pi Zero in the raspi-config | For a VNC connection install the Real VNC on your host computer, then enable VNC on the Raspberry Pi Zero in the raspi-config | ||
$ sudo raspi-config | $ sudo raspi-config | ||
Line 36: | Line 48: | ||
---- | ---- | ||
- | ==== Desktop Resolution ==== | + | ==== Set the Desktop Resolution ==== |
For a HDMI size desktop one can uncomment in: | For a HDMI size desktop one can uncomment in: |