Raspberry Pi Xiaobai's Guide to Avoiding Pitfalls

1. If you don’t know how to use the command line, you may need to use a graphical interface. Because the Raspberry Pi has an HDMI interface, you only need to buy an HDMI cable for a few dollars to connect to your desktop computer monitor or home TV. You can use the graphical interface of the Raspberry Pi! It should be noted here that you must wire it first and then turn it on. If you turn it on first and then wire it, there will be no display on the display! ! !

2. Many enthusiasts will use the charging head of their mobile phone to power the Raspberry Pi. It should be noted that the power plug should be as high as possible. Ordinary mobile phone plugs cannot be carried when there are many accessories, and the power of the power head is not enough. The working status of the Raspberry Pi will be unstable.

3. If you are going to use the official Raspberry Pi system, you can choose a card above 16G C10 to use it.
If you plan to use the 64-bit system of the Raspberry Pi fan base, you can choose the memory card according to the following table

It is recommended to use SDHC/XC-I+A1/V30+U3 or above

Cards below SDHC/XC-I+A1/V30+U3 are
not recommended to use the browser to watch videos and perform multitasking

Cards below SDHC/XC-I+U3 It is
not recommended to use a browser to watch videos and perform multitasking. It is
not recommended to use large memory applications

Cards below U3 It is
not recommended to use the browser to watch videos and perform multitasking. It is
not recommended to use large memory applications. It is
not recommended to use Google Chrome.

Cards of C10 and below are
not recommended

TF card type reference table
Insert picture description here
Insert picture description here

4. The shutdown command is

sudo poweroff /sudo shutdown 

5. Open the setting command as

sudo raspi-config

Insert picture description here

6. The installation software instructions are

 sudo apt-get install [软件名]

7. Install Chinese input method commands

sudo apt-get install scim-pinyin

8. Update source instructions

sudo nano /etc/apt/sources.list

9, add source

deb http://mirrors.aliyun.com/raspbian/raspbian/ buster main contrib non-free rpi

Update the update instructions after adding the source

sudo apt-get install update 
sudo apt-get install upgrade

10. Tips for vim commands:

进入后要摁i进入insert模式敲写代码
 保存时先摁esc再 :wq 保存退出
 删除时先推出编辑模式再x(删除一个字符)
 移动光标是jkhl
 翻页是ctrl+f或ctrl+b

11. Nano command

 打开文件 nano [文件名]
 复制:ALT+6
 剪贴:Ctrl+K
 粘贴:Ctrl+U
 上一页:Ctrl+Y
 下一页:Ctrl+V
 保存:Ctrl+o
 退出:Ctrl+x

12. The self-starting script should be added in the /etc/rc.local file

Insert picture description here

Guess you like

Origin blog.csdn.net/qq_41676577/article/details/112850093