当前位置:网站首页>Configuring raspberry pie, process and problems encountered
Configuring raspberry pie, process and problems encountered
2022-07-28 10:47:00 【interval_ package】
Recently , I ruined the raspberry pie I had configured before , So today I want to reinstall the system , Take notes for yourself by the way , It's really a big harvest .
First of all, we need to have a SD card , And then there's another one SD Card reader , Prepare another network cable , And our raspberry pie .


Then go to the official website to download imager!


Then install and open , Give yourself the SD Card installation standard 32 A raspberry pie linux System !
![]()
Then open the u Disk folder , Create a new name under the folder called “ssh” file , Be careful not to include any suffixes ,txt Not good either. , After all linux and win The file format is different .
Then you can put sd Insert the pie in the card , Then connect to the computer !
Here we can open it cmd Command bar , Input “arp -a” Instructions , We will see all the interfaces linked to the computer ip Address !

Here you can open “ Set up ”, Search for “ network connections ”( Because I use win10 The system of ), Right click on our wlan Open properties , Sharing inside , Share the network with Ethernet ( That is, our raspberry pie is connected by Ethernet )
![]()
![]()

Then we will enter the order , There should be one in 137 The interface of , Then theoretically, there will be one ip The dynamic will be displayed later , This is what raspberry pie is now IP Address !( This is dynamically allocated )
Then you can ping Raspberry pie ip, Try this command to see if you can connect .
Ping Four packets will be sent to the target server , If you succeed, you are connected .
But as simple as I am , It's hard to do , There is no such dynamic , Then static one by one ping It seems useless to go .
What do I do ?
Then we will wlan The step of sharing configuration is to brush more . Generally speaking , It is possible that the system does not understand this interface ip nature , Just add “ static state ” 了 , Try the static one by one in the displayed interface , It's in there .
stay 137.1 Under port , If there is a dynamic , But it's not 137 Of , You go ping it , It will prompt for common faults , It's not that .
Here we will talk about arp It's agreed , The words here arp The address data is recorded in the cache , Every time 20 Minutes to refresh . Because we get it dynamically ip, But the system is considered static , So every time we reconnect ( Because I failed many times ), Will be recorded in the cache .
So let's brush more after one connection , Find the one that didn't exist before .(wlan Sharing reconfiguration is actually refreshing for ip Find it )
Now we have found ip, Let's make our raspberry pie !
Download one from the Internet putty( Baidu yyds), This is commonly used ssh Penetration tools , We used to configure , Add a to the folder ssh file , Just put ssh Open the , We can control linux The command line of the system .
Then we can enter our ip 了 , Note that the port is 22( The common port of raspberry pie is 22,web Something like 80 I don't remember ) Access , It's our command line interface .

Our user name is pi, The default password is raspberry. Note that there linux The system will not display the password by default , It won't react if you press the button , You have to press enter after one-time input , So I went in .

Then enter the command “sudo raspi-config”, Enter the setting interface .

good heavens , It's time to test English .
We enter interface options( Interactive interface options ) Go to , hold vnc open , This is what the raspberry pie system comes with vnc Desktop sharing is turned on .
Then return to the interface and remember to press finish( It's the one in the lower right corner ), Otherwise, the operation will not be recorded .
But be careful here ! After we update the settings , It's going to take place once “reboot” operation , That is, restart the operation . It looks like , Our raspberry pie will reconnect to the computer , So our ip It is redistributed . Trouble dies .
Then we can fix it first ip Proceed again vnc operation . Of course, you can also vnc Visualization , Or I will linux virtual machine ( What's wrong with this raspberry pie ), It will be easy to operate , Otherwise, you can only use the command symbol .
( In fact, I'm not very good at using commands ,linux I haven't learned systematically , So let's talk about something else first .)
Download a vnc viewer, Then create a new connection , Enter what we got before ip.

Then the account and password , We're going to raspberry pie !
Here's the problem , Some students will find that they can connect , But it shows cannot currently show What, what, what . Why is this ?
This is because we set the resolution and vnc The set resolution is inconsistent , Open our... Again putty, Well connected ( You can do it with the first step hahaha )
Display-resolution Choose the right resolution ( No, no, no, No , No one even knows these two words )



That's how it works OK 了 , open viewer New link , Account and password , Just log in .

Now let's fix ip, So I just want to talk about the principle first . It is in the file directory of the system etc There's a next one. dhcpcd.conf The file of , It is responsible for the configuration of the network , That is, configure external variables .( Look at the code. It's time )

In fact, the notes are very clear , Compare the following places , There is one static ip A large string , It's commented out ( The new version of the system is commented out ), Cancel the comment , We can do whatever we want .
Pay attention to the configuration :
# Example static IP configuration:
interface eth0
static ip_address=192.168.137.88/24 // Here is what you want ip Behind the slash24 Can't be without
#static ip6_address=fd51:42f8:caae:d92e::ff/64
static routers=192.168.137.1// Basically, this is the best , Routing address , But you can check
static domain_name_servers=192.168.0.1 8.8.8.8 fd51:42f8:caae:d92e::1
Check the routing address , You can find it in two places ( I don't remember which one it is )
One is cmd use ipconfig Instructions , One is linux Command character for ifconfig, Basically, just go and have a look by yourself

Keep it like this , restart , Your raspberry pie is ready !
Zza I'm really tired , Purring .
边栏推荐
- 第11届蓝桥杯本科组校赛(20200321)
- PyQt5快速开发与实战 4.13 菜单栏、工具栏与状态栏 and 4.14 QPrinter
- QT generation Exe file and run without QT environment (enigma virtual box for green executable software packaging) graphic tutorial
- 粒子群解决tsp的技术问题
- Go json. Decoder Considered Harmful
- Pyqt5 rapid development and practice 4.11 drag and clipboard
- markdown转成word或者pdf
- Andorid 开发三 (Intent)
- 两年CRUD,二本毕业,备战两个月面试阿里,侥幸拿下offer定级P6
- Andorid development III (intent)
猜你喜欢

PyQt5快速开发与实战 4.12 日历与时间

QT generation Exe file and run without QT environment (enigma virtual box for green executable software packaging) graphic tutorial

非关系型数据库MongoDB的特点及安装

Install mysql5.7 under centos7

5、Window端实现Mapreduce程序完成wordcount功能

GKBillowNoiseSource

GKCheckerboardNoiseSource

Redis-day01-常识补充及redis介绍

ACM寒假集训#5

爱可可AI前沿推介(7.28)
随机推荐
SQL Server 2016 learning records - single table query
GKPerlinNoiseSource
Implement a queue with two stacks [C language]
PyQt5快速开发与实战 4.11 拖曳与剪贴板
Go memory model (version on May 31st, 2014)
20200217 training match L1 - 7 2019 is coming (20 points)
[application of stack] - infix expression to suffix expression
7. MapReduce custom sorting implementation
Semeval 2022 | introducing knowledge into ner system, aridamo academy won the best paper award
GKConstantNoiseSource
Lucene query syntax memo
GKCheckerboardNoiseSource
ACM寒假集训#7
Tensorflow 知识点
Operation log of dbeaver
Machine learning -- handwritten English alphabet 3 -- engineering features
RoboCup (2D) experiment 50 questions and the meaning of main functions
产品端数据分析思维
Yarn报错:Exception message: /bin/bash: line 0: fg: no job control
GKRandomSource