Some basic configuration of Raspberry Pi (1)

Change source operation: replace the default foreign middleman of the Raspberry Pi with a closer domestic middleman

input the command:

sudo vi /etc/apt/sources.list

Comment out the middleman in the first line and replace it with "Tsinghua" or other middleman

Tsinghua Raspbian mirror:

deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ stretch main non-free contrib
deb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ stretch main non-free contrib

stretch is Debian version 9, choose the appropriate Debian version according to your own situation, Tsinghua University Raspberry Pi mirror station

Update package

sudo apt-get update

Raspberry Pi python configuration

Install python (you don't need it if you have one):

sudo apt-get install python3  # 会安装默认版本python2
sudo apt-get install python3-pip  # 安装python的第三方安装工具 

Change the default version of python to python3:

sudo rm /usr/bin/python  # 删除默认的python链接
sudo ln -s /usr/bin/python3.5 /usr/bin/python  # 新建python链接指向python3版本

Change pip to a middleman:

Temporary change:

pip install '安装么子名' -i https://pypi.tuna.tsinghua.edu.cn/simple

Default replacement: Tsinghua University pypi mirror

Use VNC to remotely log in to Raspberry Pi

Open the Raspberry Pi configuration file:

sudo raspi-config

Select 5 Interfacing Options and press enter to enter; then select p3 VNC and press enter to enter; select Yes—>OK—>Finish to open VNC

Then download and install a VNC-Viewer software, after the installation is complete:

Open the software, click File in the upper left corner, select New connection, then fill in the IP address of the Raspberry Pi, and customize a name:

After completion, a computer icon will appear, click to open, enter the Raspberry Pi user and password

Congratulations on completing VNC remote login

Guess you like

Origin blog.csdn.net/xwmrqqq/article/details/105787336