About how to connect Raspberry Pi ssh and vnc with a network cable

How to connect a PC to the Raspberry Pi through a network cable

Foreword: I am a college student with limited strength, so everyone can communicate together. If you have any doubts, please let them know in the comments and discuss them together.

1. Burn the image

Choose Win32DiskImager to burn the Raspberry Pi image. I am using Raspberry Pi 4b with 2G memory. Please choose the appropriate image according to your own board.
The image I used is: 2020-08-20-raspios-buster-armhf.img
This has a desktop, you can download it from the official website.
Burn on an SD card, 16G or 32G, not too big, not too small. Choose the right size yourself.

I believe you are only those who have burned the mirror image to see this. Please refer to Baidu for the specific installation system. The author has not done such a tutorial yet.
Win32DiskImager burn pynq-z1

2. Find the Raspberry Pi IP

1) Do not connect the network cable to the Raspberry Pi and the computer, you can open the cmd window and input at this time (preparation for not finding the specific IP later, it is meaningless, in order to compare with the latter, then you can Convenient to find quickly)

arp -a

Then write down the content

2) Set up network sharing

First connect the Raspberry Pi to the computer through a network cable.
Note: There may be many people who follow the steps below, but they will find that there are some differences in the options between the computers, which makes it impossible to proceed. You can search for how to share the network with other devices on your laptop, because I have no such problem here, so I didn't look for a solution. Stop scolding, stop scolding, hum.

Closer to home
Insert picture description here
. You said that there is no network icon on your desktop. Then look at the following. If there is a network icon, please skip it. When you call up this page, you should have a hand! Go
Insert picture description here
back to the real story
Insert picture description here
Insert picture description here
Click OK, and then click Close.
Then click the Ethernet on the previous picture,
Insert picture description here
Insert picture description here
click OK, and then click OK
Insert picture description here

3) Find the IP address

input the command

arp -a

Insert picture description here
After that, I successfully found the Raspberry Pi IP address, 192.168.137.210. This is my IP address. Not everyone is the same. Please try it step by step.

3. How to try? How to connect?

xshell connection

Insert picture description here
The default account is pi, and the default password is raspberry.
This sentence will appear after the connection is successful

pi@raspberrypi:~ $

Then type

hostname

appear

raspberrypi

The connection is successful, enter

ifconfig

appear

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.137.210  netmask 255.255.255.0  broadcast 192.168.137.255
        inet6 fe80::76aa:c417:6548:f90a  prefixlen 64  scopeid 0x20<link>
        ether dc:a6:32:ae:51:97  txqueuelen 1000  (Ethernet)
        RX packets 2824  bytes 281642 (275.0 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 302  bytes 31702 (30.9 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 87  bytes 11886 (11.6 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 87  bytes 11886 (11.6 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
注意到第二行的,inet 192.168.137.210,说明IP确实是这个

VNC viewer

Insert picture description here
After clicking ok,
it will appear
Insert picture description here
because I didn’t enter the name, so it’s this. Double click it to connect. The
username and password are the same as above, pi and raspberry

Effect picture

Insert picture description here
Because I have changed the desktop, fonts and other things before, but the default is not like this, hehehe

Concluding remarks

The author is a college student. If you think this article is helpful to you, if you are willing to give a reward to the author, the author would like to thank you in advance. You can decide the amount of reward.
Of course, this is purely voluntary. If you don't want to give a reward, you can also get all the resources, and I will also answer your questions.
Insert picture description here
Insert picture description here

Resources

There are no resources this time, because this is not a teaching installation image. As for xshell and VNC, Baidu can download it.

Guess you like

Origin blog.csdn.net/m0_47008865/article/details/109953976