Operating System
System Burning Tool Raspberry Pi Imager
The official Raspberry Pi website has a dedicated burning tool that allows you to choose the appropriate image for your needs. Download link: https://www.raspberrypi.com/software/
.
Select the Raspberry Pi model, choose the operating system, select the target SD card, and proceed to the next step.
After clicking Next, select “Edit Settings” in the pop-up prompt to configure the Raspberry Pi system account information and network settings.
Note that the username cannot be root; the root account must be switched using the su command after entering the device.
Getting the Raspberry Pi IP Address
Log into your router management backend to find the Raspberry Pi’s IP address.
Install Baota
ssh [email protected]
Use the SSH protocol to enter the Raspberry Pi system.
Switch to the root user
Baota official website: https://www.bt.cn/new/download.html
The Raspberry Pi system is based on Debian, so we choose the Debian installation script.
Execute the installation script. Due to the performance limitations of the Raspberry Pi, you will need to wait for a while.
wget -O install.sh https://download.bt.cn/install/install-ubuntu_6.0.sh && bash install.sh ed8484be
After completion, you will get the login entry for the Baota panel.
==================================================================External panel address: http://2408:8214:1514:79b0:40b6:e765:5e71:2:25527/07f2e01dInternal panel address: http://192.168.101.97:25527/07f2e01dusername: aknlh5dxpassword: ********Warning: If you cannot access the panel, release the following port (8888|888|80|443|20|21) in the security groupNote: The initial password can only be correctly obtained before the first login to the panel; at other times, please modify the password using the bt 5 command==================================================================
Next, we can use the Baota panel for visual operations! Access the Baota panel in your browser: http://192.168.101.97:25527/07f2e01d
.
Install Python
Set Python application globally
ln -s /www/server/pyporject_evn/versions/3.10.0/bin/python3.10 /usr/bin/python3.10ln -s /www/server/pyporject_evn/versions/3.10.0/bin/pip3.10 /usr/bin/pip3.10
Install GPIO
sudo apt-get -y install python3-rpi.gpio
sudo pip3.10 install --upgrade RPI.GPIO
Test if the installation was successful
import RPi.GPIO as GPIO
This line… RPi.GPIO is not RPI.GPIO, the former has two uppercase letters and one lowercase letter.
Thus, the environment initialization is complete! Setting up the environment is the most important and also the most difficult step; various problems will always arise. If you encounter issues that cannot be solved by searching, feel free to message me for communication. Next, we will start Python programming and debugging hardware connections.