Raspberry Pi 4B - initialize the environment

1. Configure domestic source

sudo vi /etc/apt/sources.list
deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
deb-src https://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ buster main contrib non-free rpi
deb-src https://mirrors.neusoft.edu.cn/raspbian/raspbian/ buster main contrib non-free rpi

2. Update Software

sudo apt update && sudo apt upgrade

3. extended partition

After installation, the default display is smaller than the actual capacity of the capacity, the need to manually expand the file system:

sudo raspi-config
7 Advanced Options -> A1 Expand Filesystem -> Finish

4. Unlock the root user

Default root user is locked state, such as the need to use a root operation, it is necessary to unlock the root:

# 重新设置root密码
sudo passwd root
# 解锁root账户
sudo passwd --unlock root

5. Remote Desktop Connection settings

sudo apt-get purge tightvnc xrdp
sudo apt-get install tightvncserver xrdp

Guess you like

Origin www.cnblogs.com/HeCG95/p/11750056.html