当前位置:网站首页>Raspberry pie 4B system construction (ultra detailed version)
Raspberry pie 4B system construction (ultra detailed version)
2022-07-01 09:50:00 【Full stack programmer webmaster】
Hello everyone , I meet you again , I'm your friend, Quan Jun .
Raspberry pie —— Burning and configuration ( Super detailed Edition )
I use raspberry pie 4B, But the steps should be similar .
One 、 Set up a raspberry pie system
1、 Download mirroring
Raspberry pie needs an operating system to work . Raspberry pie operating system ( Formerly known as Raspbian) It is an officially supported operating system , Now it's changed to Raspios, So the original blog Raspbian The download link is invalid . The latest is Buster edition , If the official website is updated, just download the latest , Note that when you modify the software source later, you should select Buster Source . Attach download link : Click to download Extraction code :vfq7 I downloaded this
Want to download other versions , You can download it on the official website . The website links :
2、 format TF card
Prepare a 32G TF card ( Official recommendations greater than 4G, Of course, the bigger the conditions, the better ), download SDFormatter V4.0( green ) perhaps FormatTool Formatting TF Card as FAT32 Format . notes : Do not use win The system's own formatting tool , Can not restore the original size . SDFormatter Download link : Extraction code :9b49
3、 Burn image
download Win32DiskImager( Burning tools ) link : Extraction code :e4ng Open after installation Win32, Select the... To format as follows SD card , And the path to burn the image , Click write and wait .
explain :
The read button is the Backup button , When a system is configured , You can click on the Read, It can be TF The system in the card is backed up to the computer
At this point to see SD card , No matter how large the original capacity , At this time, it shows only a few tens of megabytes at most , as follows :
Explanation of the reason : 1. stay SD Card installed Linux After the system , Until then Windows View under system , It seems that there are only dozens left M( How much is left is related to SD Card size , My is 16G Of , So there's not much left ). because linux Partition under the system windows You can't see it under the system !
2. installed Linux After the system ,SD The card is divided into three formats of partitions , Namely :FAT32、EXT3、SWAP2.
3.Ext3 The district belongs to linux File system , Just like win System disk C The dish is the same
4.Swap Area is linux Virtual memory area of , Mainly when physical memory is not enough , For caching .
5. The above two , yes Linux Partition of the system .FAT32 It's the one you see “ Dozens of M” 了 .
If you want to check the capacity, you can – Right click “ Computer ” or “ My computer ”—— management —— Storage — The real capacity of the drive letter can be found in disk management .
Two 、 Configure the system
1、 There is a keyboard and mouse screen
Simplest configuration , Automatically enter the desktop after power on , The configuration wizard pops up automatically , Just follow step by step , And configuration Windows equally . There will be a welcome interface for the first time , choice next Enter initialization configuration First step : Choose a country , Just choose China , Place the bottom “Use US Keyboard” Choose , It is suggested to choose English at the same time . The second step : Change the password of raspberry pie , The default password is raspberry, This step is written according to personal taste . The third step :Set up Screen, direct next Just fine Step four : Connect wifi, Yes, even , Skip if you don't , No big problem . Step five :update, Just skip , The server doesn't connect , Even it's very slow , Please help yourself if you have a ladder . Step six : restart
2、 How to set up remote desktop without mouse screen
Basic configuration ( Keyless mouse screen ) Without a screen , We need to configure in advance SSH Connect ( The default is off ) and WiFi Account and password ( If you want to omit the network cable ), The specific operation is as follows :
open BOOT disc ( Burn the written SD card ), Create a new file in the root , Name it ssh( no suffix ); In this way, it is opened by default SSH passageway ;
Also in BOOT Packing list , New file , Name it wpa_supplicant.conf, use txt open , Configure your WiFi Account and password
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=GB
network={
ssid="YourWifiName"
psk="YourWifiPassword"
key_mgmt=WPA-PSK
}The final document is as follows :
In this way, it will be automatically connected after the first power on WiFi And enable SSH passageway ;
In the background of the router , Or use IP Scan tool to get the... Assigned to raspberry pie IP after , You can use it SecureCRT perhaps Putty Something like that , use SSH Visit raspberry pie .
How to log in to the router
Enter the first cmd Get router IP Address , Enter at the command line ipconfig View default gateway , You can know its IP Address . Copy IP Address , Visit the website and you can log in . Then find the one assigned to raspberry pie IP, The general equipment name is raspberry.
Be careful , If the router is turned on by default AP Isolation , You need to manually shut down the router in the background , Otherwise, raspberry pie cannot connect to the router
link : Click to download putty Extraction code :jw3o
open putty, Input IP Then click open Button
After entering, it's like this The default login name for raspberry pie is pi, The password is raspberry
Configure remote desktop
At the command line , Input sudo raspi-config, Open the raspberry pie configuration interface ;
stay 3 Interfacing Options in , Set enable VNC, It is suggested that Camera and SSH Also enabled ; I am afraid of trouble in the future , I put all the options in it enable 了 . After modification , Press tab Key to exit the option , choice back Button back .
stay 2 display Options in ,D1 Resolution Choose as large as possible , You cannot choose the first one , Otherwise, the remote desktop will be black , Generally, choose the one with the same definition as your own computer ;
Install Remote Desktop Services
Download a VNC Viewer, You can go to Windows Log in to the desktop of raspberry pie link : Click to download Extraction code :9jjc Open after installation , Input IP Address
You can see a welcome interface , Now you can go back to the front 1、 There is a mouse and keyboard That part. , Follow the steps . Something like that
After doing it well
Come here , The configuration of raspberry pie is basically completed . You can start playing .
In order to facilitate later happy play , I'd better work harder to change the source of raspberry pie .
modify apt Source (buster edition )
Because what we're doing is buster edition , As I said at the beginning , To change buster Source . The source of Alibaba cloud is used here .
Replace the software update source Go to raspberry pie , Command line input
sudo nano /etc/apt/sources.list Comment out the rest of the document ,# notes , Enter these two lines
deb http://mirrors.aliyun.com/raspbian/raspbian/ buster main contrib non-free rpi
deb-src http://mirrors.aliyun.com/raspbian/raspbian/ buster main contrib non-free rpinano Give basic orders Paste : ctrl+u If the paste does not respond , You can try shift+insert preservation :ctrl+o sign out :ctrl+x
Replace the system update source ( Can not change , Not available for the time being , There is no need to update the system )
sudo nano /etc/apt/sources.list.d/raspi.listIbid operation
deb http://mirrors.aliyun.com/raspbian/raspbian/ buster main
deb-src http://mirrors.aliyun.com/raspbian/raspbian/ buster mainExecute the following two instructions to update the software source and software
sudo apt-get update
sudo apt-get upgradeIf you don't understand nano How to save the modified file , You can view this link Click on the open
modify pip Source
Later, we need to develop some python project , First the pip Replace the source with domestic .
mkdir ~/.pip
sudo nano ~/.pip/pip.confWrite the following... In the file 3 That's ok , Save and exit
[global]
trusted-host=mirrors.aliyun.com
index-url=https://mirrors.aliyun.com/pypi/simple/Okay , That's about it , Other explorations come out, plus .
My first blog , What's wrong with it , Please give me more advice . The above steps are written by me based on the tutorials of many bosses and some of my own opinions , I hope it will help those who want to go into the pit .
Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/131773.html Link to the original text :https://javaforall.cn
边栏推荐
- Who has the vision to cross the cycle?
- sql语句修改字段类型「建议收藏」
- Get the list of a column in phpexcel get the letters of a column
- 持续进阶,软通动力稳步推动云智能战略
- 吃一个女富豪的瓜。。。
- ES6 decoupling top-level objects from windows
- Precautions for lvgl v8.2 string display on keil MDK (take little bear pie as an example)
- Mikrotik Routeros Internet access settings
- 遇到女司机业余开滴滴,日入500!
- Hardware midrange project
猜你喜欢

Flinkv1.13实现金融反诈骗案例

这样理解mmap,挺有意思!

吃一个女富豪的瓜。。。

华为帐号多端协同,打造美好互联生活

Hololens2 development -6-eyetracking and speech recognition

LVGL V8.2字符串显示在Keil MDK上需要注意的事项(以小熊派为例)

Scratch big fish eat small fish Electronic Society graphical programming scratch grade examination level 2 true questions and answers analysis June 2022

Upload labs for file upload - white box audit

新数据库时代,不要只学 Oracle、MySQL

全球基金和资管的股票建仓率达到15年内新低
随机推荐
Spark's action operator
Packetdrill script analysis guide
Voice service notes
“中移链”国密引擎在BSN正式上线
JS use toString to distinguish between object and array
Flinkv1.13实现金融反诈骗案例
Problems caused by delete and delete[]
Meituan P4 carefully collated microservice system architecture design manual to see the world of microservice architecture
BSN长话短说之十:如何保证NFT的安全
华为帐号多端协同,打造美好互联生活
Apple amplification! It's done so well
Who has the vision to cross the cycle?
京东与腾讯续签三年战略合作协议;起薪涨至26万元!韩国三星SK争相加薪留住半导体人才;Firefox 102 发布|极客头条...
Tearful eyes, it's not easy to change jobs. Three rounds of interviews, four hours of soul torture
7-Zip 遭抵制?呼吁者定下“三宗罪”:伪开源、不安全、作者来自俄罗斯!
这样理解mmap,挺有意思!
The stock position building rate of global funds and asset management reached a new low in 15 years
MT7628K eCos开发入门
The "China Mobile Chain" state secret engine was officially launched on BSN
电脑USB、HDMI、DP各种接口及速度