1.1. 開機界面
系統信息
root@raspberrypi:~# lsb_release -a
No LSB modules are available.
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 10 (buster)
Release: 10
Codename: buster
禁止顏色測試
編輯/boot/config.txt 中添加 disable_splash=1
禁用角落LOGO
編輯/boot/cmdline.txt添加logo.nologo
禁用開機顯示日誌
編輯/boot/cmdline.txt添加quiet
安裝圖片查看工具fbi
apt install fbi
定義開機啓動界面服務
創建/etc/systemd/system/splashscreen.service
[Unit]
Description=Splashscreen
DefaultDependencies=no
After=basic.target
[Service]
ExecStart=/usr/bin/fbi -d /dev/fb0 --noverbose -a /boot/splash.jpg
StandardInput=tty
StandardOutput=tty
Restart=always
StartLimitInterval=0
[Install]
WantedBy=sysinit.target
上傳圖片
上傳開機界面圖到/boot/目錄,並命名爲splash.jpg
設置服務開機自啓並禁至用戶通過tty1登錄
systemctl enable splashscreen.service
systemctl disable getty@tty1.service
設置默認分辨率
當沒有設置默認分變率時,在沒有連接顯示器的情況下開機,開機之後連接顯示器不會顯示圖像界面,所有設置一下默認分辨率。
輸入命令raspi-config,選擇Advanced Options,再選擇Resolution,在頁面中選擇默認分辨率
1.2. 登錄提示
/etc/issue 本地端登錄前顯示信息文件
/etc/issue.net 網絡端登錄前顯示信息文件
/etc/motd 登陸後顯示信息文件