当前位置:网站首页>Raspberry pie 4B Getting Started Guide
Raspberry pie 4B Getting Started Guide
2022-06-30 07:24:00 【Three stinky ginger】
Raspberry pie 4B Hands on Guide
The software package and image can be obtained from Baidu online disk :
link :https://pan.baidu.com/s/1ReffurBHQWKU9cPnZFdOpw
Extraction code :2021
– From Baidu network disk super member V4 The share of
First make sure we have the following :
1. Raspberry pie board , My is 4B edition
2. One SD card
3. A card reader
4. Raspberry pie power cord
5. A wire line
List of articles
One . Burn image
First install the following burning tools 【2. development environment \ Image burning tool \ Image burning tool balena-etcher】:

Installation process skipped .
After installation, open the software as follows :

Click on select image, Choose our image 【2. development environment \ System image 】.

Note that img Suffix .
Then click on “select target”, Choose our hard drive , Here is the one who chose us SD card , Be careful not to make the wrong choice .

next , Start burning .


This process takes a long time , You can make a cappuccino first .
Verification is required after burning :

End of validation :

After that, pull out the card reader , Re insert , You can see that :

Two . To configure WIFI
Here I use the mobile phone to turn on the hotspot , In fact, you can also connect your own router .
I first opened a hot spot with my mobile phone , Hot spot name :aiden password :123456789
It should be noted that the name and password should not be in Chinese .
Then open it with Notepad or other software 【11. Boot profile 】 Under the

Modified as :
country=CN
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="aiden"
psk="123456789"
priority=5
}
Remember to save... After modification .
Then copy the above two configuration files to boot pan :

After the copy is completed, you can boot Disk eject . And then take it out SD card , Put it on the raspberry pie . Then plug the power cord into the raspberry pie , Turn it on , The raspberry pie will automatically connect to our hot spot after you turn it on . Then the computer is connected to our hotspot . So we can see on the mobile phone :

The one above is raspberry pie , Here is my computer .
3、 ... and .SSH Sign in
open ssh Tools 【9. Supporting auxiliary software 】:

Configure the following :

IP The address is what we saw on the mobile phone , The port number is selected by default 22,ssh.
choice open after , The following screen will appear :

Choose... Directly here “ yes ” that will do .
Then enter the user name :pi password :raspberry
Note that we can't see it when entering the password , This is a Linux A protection mechanism under , We can input the content one by one . After entering the user name and password, the following interface appears :

It indicates that the connection is successful at this time .
Four . Turn on VNC service
Based on the previous window , We type... In the terminal :

There will be :

Use the up and down keys of the keyboard to move the cursor to select “5 Interfacing Options”, And return ;
And then choose P3.

choice “ yes ”

Finally, don't forget :

So it turns on VNC service .
And then install it on your computer VNC Software :

Installation process skipped .
After installation, open the software and enter ip Address :
choice

Enter your username and password . user name :pi password :raspberry

And then choose ok You can enter the table of our raspberry pie .

5、 ... and . Connect the raspberry pie to the computer using a cable
First of all, we need to , Access terminal , lookup ip Address .( Just now, it was a hot spot where raspberry pie and computer were connected to mobile phones at the same time )
Input in the terminal :

Then you'll see :

choice eth0 Corresponding inet Address . Let's record this address .
next , We quit VNC, Enter the address we just mentioned :

Just follow the previous steps .( But you must have connected the computer to the raspberry pie with an Internet cable , The computer can be connected to other computers first wifi)
After following the above steps , We can connect other hot spots in raspberry pie .

6、 ... and . install opencv-python
Because our system is actually pre installed , So there are already python Environmental Science , We can open the terminal of raspberry pie to check the version :

What we use later is python3.
Here you can change the image source first . Refer to this article :https://zhuanlan.zhihu.com/p/98079246
Then execute the following instructions in the terminal in turn :( Be sure to change the source before these operations , Otherwise it will be very slow )
sudo apt-get update
pip3 install numpy ( If you already have it, you can upgrade it pip3 install -U numpy)
pip3 install opencv-python
Test whether it can be used after installation :

If no error is reported, the import is successful .
7、 ... and . install TensorFlow2
Here I mainly refer to this article :https://zhuanlan.zhihu.com/p/158745478
1. Check whether the environment is installed successfully
python3 --version
pip3 --version
virtualenv --version
If a command is not found when it runs , Is not installed , Need to be in the 2 Step, select the corresponding command to install .
2. Installing modules that are not installed
According to the first 1 Step , Select from the following commands as needed , among update And installation libatlas-base-dev The command must be selected .
sudo apt update # This command is required
sudo apt install python3-dev python3-pip # If already installed Python3 and pip3 Then skip this command
sudo apt install libatlas-base-dev # This command is required , Be careful !!!
sudo pip3 install -U virtualenv # If the virtual environment is already installed , Skip this command
3. Creating a virtual environment .
virtualenv --system-site-packages -p python3 ./venv

4. Activate the virtual environment
source ./venv/bin/activate

After executing the above statements, you enter the virtual environment .
5. to update pip
pip3 install --upgrade pip

6. Install dependency packages
pip3 install keras_applications==1.0.8 --no-deps
pip3 install keras_preprocessing==1.1.0 --no-deps
pip3 install h5py==2.9.0
pip3 install -U six wheel mock




7. download tensorflow package
Here I offer a TensorFlow2.3.0 My bag . In the link shared by Baidu online disk at the beginning .
Use vnc The file transfer tool of will transfer the package .
Then enter the path where the package is placed to install .
pip3 install tensorflow-2.3.0-cp37-none-linux_armv7l.whl
Some other dependent packages will be automatically downloaded during the download process , At this point, wait for the installation to complete .
Enter... After installation python Whether the environment test can be imported successfully :

Reference resources :
1.https://blog.csdn.net/u014397533/article/details/50910531
2.https://zhuanlan.zhihu.com/p/158745478
边栏推荐
- Video player (II): video decoding
- 手机开户股票开户安全吗?开户需要准备什么?
- app quits unexpectedly
- Record the problem that the system file cannot be modified as an administrator during the development process
- Vs2019 and SQL
- 网络安全-ARP协议和防御
- Pool de Threads - langage C
- Network security - packet capture and IP packet header analysis
- [resolved] error 1290 (HY000): unknown error 1290
- Dynamic memory management
猜你喜欢

B站首个UP主付费观看视频还是来了!价格“劝退”网友

Installation du serveur linux redis

Network security - packet capture and IP packet header analysis

Starting MySQL ERROR! Couldn‘t find MySQL server (/usr/local/mysql/bin/mysqld_safe)

网络安全-抓包和IP包头分析

Out of class implementation of member function of class template

Video player (II): video decoding

How to use string branches for switch case

What if I don't know what to do after graduating from university?

Dynamic memory management
随机推荐
Detailed analysis of message signals occupying multiple bytes and bits
[most complete] install MySQL on a Linux server
Running lantern effect JS text rotation effect realization
The maximum expression in Oracle database message list is 1000 error
Linu foundation - zoning planning and use
Use of ecostruxure (2) IEC61499 to establish function blocks
[semidrive source code analysis] [x9 chip startup process] 34 - RTOS side display module SDM_ display_ Init display initialization source code analysis
Network security - routing principle
线程池——C语言
套接字socket编程——UDP
MAX6675 usage notes
Detailed methods for copying local computer files to virtual machine system
線程池——C語言
Starting MySQL ERROR! Couldn‘t find MySQL server (/usr/local/mysql/bin/mysqld_safe)
Matter protocol
系统软件开发基础知识
LabVIEW program code update is slow
网络安全-抓包和IP包头分析
JS null judgment operators | and? Usage of
js创建pdf文件