Raspberry Pi custom boot screen and login prompt

1.1. Power Interface

system message

root@raspberrypi:~# lsb_release -a
No LSB modules are available.
Distributor ID:    Raspbian
Description:    Raspbian GNU/Linux 10 (buster)
Release:    10
Codename:    buster

Color Test ban

Edit /boot/config.txt added disable_splash = 1

Disable corner LOGO

Edit /boot/cmdline.txt add logo.nologo

Disable the power-Show Log

Edit /boot/cmdline.txt add quiet

Installation image viewer fbi

apt install fbi

Defined boot interface service

Creating /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

upload image

Upload boot interface map to / boot / directory, and named splash.jpg

Set the service to boot from Kai and ban users log in through tty1

systemctl enable splashscreen.service
systemctl disable getty@tty1.service

Set the default resolution

When no default fraction variability, in the case where the display is not connected to power connection interface display image is not displayed after the startup, all you provided at the default resolution.

Enter the command raspi-config, select Advanced Options, and then select the Resolution, select the default resolution of the page

1.2. Login prompt

/ etc / issue before the local terminal display login information file
/etc/issue.net before the network logon display information file
/ etc / motd file information is displayed after landing

Published 20 original articles · won praise 40 · views 5804

Guess you like

Origin blog.csdn.net/file_data/article/details/103371450