Windows next cable play to Raspberry Pi Zero (w)

Source: Internet
Author: User
Tags download vnc viewer win32diskimager

Bought a Raspberry Pi zero W, thinking of using a common micro data line to achieve the SSH Raspberry Pi + network + Remote Desktop target, toss for a long time finally success, words not much to start the whole.

This article mainly deals with how to connect to the Raspberry Pi Zero (w) using the data cable SSH and Remote Desktop, and the network is included with the WINDOWS10

Required Hardware:

    • Raspberry Pi Zero (w)
    • A networked PC (Win10 used here)
    • Micro Data cable (normal line for transmitting data)
    • Card reader and 8G capacity above the TF card

Software that needs to be downloaded in advance

    • Bonjour (https://support.apple.com/kb/DL999) PS: computer with itunes skip this one
    • Win32diskimager or similar software that can be written to a USB stick
    • Raspberry Pi Official firmware (https://www.raspberrypi.org/downloads/raspbian/) PS: Here is a desktop version

Install Benjour,win32diskimager (if required)

[*] Pre-insertion preparation [*]

First download the firmware and unzip, read the TF card with the card reader on the computer, write the firmware to the TF card with Win32diskimager, the TF card will be divided into two zones after writing, and Windows can only read one (boot)

Under the boot root directory:

Edit config.txt write dtoverlay=dwc2 on the last new line

Edit cmdline.txtd find rootwite in the back join modules-load=dwc2,g_ether Note that there is only one space between the newly added field and the field before and after it

Create a new file in the root directory and rename it to ssh without any file suffix name

Then we can pop up the TF card and insert the Raspberry Pi, connect the data cable, on the micro port of the Raspberry Pi, need to connect the port which writes the USB instead of the PWR typeface, the connection does not need the additional power supply.

[*] Insert work [*]

We plug in the USB port of the Raspberry Pi, wait for the computer to have the new hardware prompt or the sound, if has the automatic installation driver, please wait installs

Open the Device Manager and check that the Raspberry Pi is recognized as a network card (NIC), serial, or unrecognized.

If it's a network card, congratulations, you can skip the next step.

If you identify other hardware, install this driver on the Device Manager's Raspberry Pi recognized hardware

  Http://domotique.caron.ws/wp-content/uploads/telechargement/RPI%20Driver%20OTG.zip

The general situation can be recognized as a network card, in the Device Manager display as a USB Ethernet/rndis Gadget

In the change adapter option, the Raspberry Pi is displayed as Ethernet 2 (whichever is personal) and the Device Manager is displayed as a USB Ethernet/rndis Gadget

OK, open your networked network card, right-click Properties-Share, select Ethernet 2 and on the top allow other user connection option tick.

Here, if you can ping the raspberrypi.local in cmd, (address is IPV6 address) that means the above steps are correct.

Open the SSH connection software, Xshell or putty, choose SSH Connection, Port 22, username pi Password Raspberry connection

Open etc/network/interfaces with sudo vi

Add the following content

Allow-hotplug usb0

Auto Usb0

Iface usb0 inet DHCP

If you want to use static IP, then replace the following

Allow-hotplug usb0

Auto Usb0

Iface usb0 inet Static

Address 192.168.10.5

Netmask 255.255.255.0

After saving, sudo reboot restart

To apply the interfaces file settings, and the file system extension to fill the SD card

After reboot, the software SSH connection

Try to ping Baidu or what to try the network

[*] If there is a problem, please check the previous steps

[*] Set up Remote Desktop [*]

Download VNC viewer https://www.realvnc.com/en/connect/download/viewer/windows under win

Execute the sudo apt-get install tightvncserver in the previous SSH terminal

After the installation is done Tightvncserver will let you enter two times login password (for remote login only), enter and remember the last X.log x in the terminal, generally 1

Ifconfig look at the IP

Open the VNC viewer and enter the password you entered before entering Ip:x

Over, a common micro data cable reached the target of SSH Raspberry Pi + network + Remote Desktop to achieve this, the benefit is to save the WiFi can do other things

I wish you all a good time playing pie.

Windows next cable play to Raspberry Pi Zero (w)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.