I want to configure my raspberry pi zero w as a headless device so I don't have to buy keyboards, mice, and adapters. To do so I want to ssh into it, turn on vnc server so I can control it from where I fancy at a time.
I have read many tutorials, forums, and questions here; basically this is where I got so far:
- Flashed raspbian stretch in the sd.
- Edited cmdline.txt and config.txt.
- Created a blank ssh file with no extension.
- Plugged the pi into my tv to check if it boots, which it does.
The problem is that when I plug the raspberry into my PC (running windows 10, up to date). When I plug it, a message appears that an RNDIS/ ethernet device is being installed, but when it's done, another message tells me that the USB COM device is ready. In the device manager it doesn't appear as an RNDIS device either (see the screenshot below). And I tried anyway to connect to the Raspberry via ssh but the host doesn't exist.
I connect the RPi with two usb, one for power and one for data (I read somewhere that windows might give up recognizing the device if it hasn’t booted up when plugged). First I connect the power USB and when the led does not blink I connect the data USB. Windows is supposed to recognize the RPi as an RNDIS Ethernet device, and people seem to succeed, but I can’t. I have tried different computers, even a Mac, and different RPis with the same luck. Can anyone help me?
Thank you
Update:
The output of dmesg on Ubuntu (what changed after rpi was plugged):
[ 1003.463748] usb 1-2: new full-speed USB device number 3 using ohci-pci
[ 1003.955907] usb 1-2: config 2 interface 1 altsetting 0 endpoint 0x81 has invalid maxpacket 512, setting to 64
[ 1003.955909] usb 1-2: config 2 interface 1 altsetting 0 endpoint 0x1 has invalid maxpacket 512, setting to 64
[ 1003.967644] usb 1-2: config 1 interface 1 altsetting 1 endpoint 0x81 has invalid maxpacket 512, setting to 64
[ 1003.967646] usb 1-2: config 1 interface 1 altsetting 1 endpoint 0x1 has invalid maxpacket 512, setting to 64
[ 1003.991203] usb 1-2: New USB device found, idVendor=0525, idProduct=a4a2
[ 1003.991206] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 1003.991207] usb 1-2: Product: RNDIS/Ethernet Gadget
[ 1003.991208] usb 1-2: Manufacturer: Linux 4.9.80+ with 20980000.usb
[ 1004.826953] cdc_subset: probe of 1-2:1.0 failed with error -22
[ 1004.835520] cdc_subset 1-2:1.1 usb0: register 'cdc_subset' at usb-0000:00:06.0-2, Linux Device, 5e:d1:97:be:10:65
[ 1004.836005] usbcore: registered new interface driver cdc_subset
[ 1004.875153] cdc_ether: probe of 1-2:1.0 failed with error -16
[ 1004.875166] usbcore: registered new interface driver cdc_ether
[ 1004.932576] cdc_subset 1-2:1.1 enp0s6u2i1: renamed from usb0
[ 1005.496548] IPv6: ADDRCONF(NETDEV_UP): enp0s6u2i1: link is not ready
[ 1005.496800] cdc_subset 1-2:1.1 enp0s6u2i1: kevent 12 may have been dropped
[ 1022.527364] sched: RT throttling activated
USB to ethernet adapter
. Isn't it possible to use wifi?