chore(printer): added printer driver and playmouth

This commit is contained in:
2026-04-03 11:43:58 +02:00
parent 2aa1459b15
commit 90d954e1bf
+79 -6
View File
@@ -2,7 +2,7 @@
# Kubuntu Package Installer
# Installs: LibreOffice, FreeCAD, VLC, Thunderbird, Firefox,
# Timeshift, configures automatic updates + pre-apt snapshots,
# and enables SDDM auto-login for the current user
# SDDM auto-login, and Plymouth bgrt boot splash
# -------------------------------------------------------------
set -e
@@ -29,7 +29,14 @@ sudo apt install -y \
ttf-mscorefonts-installer \
timeshift \
unattended-upgrades \
apt-listchanges
apt-listchanges \
plymouth \
plymouth-themes \
hplip \
hplip-gui \
printer-driver-hpcups \
cups \
system-config-printer
# -------------------------------------------------------------
# Auto-updates: configure unattended-upgrades
@@ -130,10 +137,76 @@ EOF
echo "SDDM auto-login configured."
echo " Config file: /etc/sddm.conf.d/autologin.conf"
echo " User: $CURRENT_USER"
echo " Session: plasma"
echo " To disable: sudo rm /etc/sddm.conf.d/autologin.conf"
# -------------------------------------------------------------
# Plymouth: bgrt boot splash
# bgrt shows your motherboard/OEM logo (from UEFI) + spinner
# Requires UEFI firmware with a logo and "quiet splash" in GRUB
# -------------------------------------------------------------
echo ""
echo " To disable auto-login later, run:"
echo " sudo rm /etc/sddm.conf.d/autologin.conf"
echo "Configuring Plymouth bgrt boot splash..."
# Set the theme
sudo plymouth-set-default-theme -R bgrt
# Ensure GRUB passes the right kernel parameters for Plymouth to show
GRUB_FILE="/etc/default/grub"
# Add 'quiet splash' to GRUB_CMDLINE_LINUX_DEFAULT if not already present
if grep -q 'GRUB_CMDLINE_LINUX_DEFAULT' "$GRUB_FILE"; then
# Add quiet splash if missing
if ! grep -q 'quiet' "$GRUB_FILE"; then
sudo sed -i 's/GRUB_CMDLINE_LINUX_DEFAULT="\(.*\)"/GRUB_CMDLINE_LINUX_DEFAULT="\1 quiet splash"/' "$GRUB_FILE"
echo " Added 'quiet splash' to GRUB_CMDLINE_LINUX_DEFAULT."
else
echo " 'quiet splash' already present in GRUB config, skipping."
fi
fi
# Rebuild GRUB config
sudo update-grub
echo "Plymouth bgrt theme activated and GRUB updated."
echo ""
echo " Note: bgrt displays the OEM/motherboard logo stored in your"
echo " UEFI firmware. If no logo is present, Plymouth will fall back"
echo " to a plain spinner. This only works on UEFI systems."
echo ""
echo " To change theme later:"
echo " sudo plymouth-set-default-theme -R <theme-name>"
echo " sudo update-grub"
echo ""
echo " To list available themes:"
echo " plymouth-set-default-theme --list"
# -------------------------------------------------------------
# HPLIP: HP printer driver setup
# -------------------------------------------------------------
echo ""
echo "Configuring HP printer support (HPLIP)..."
# Enable and start CUPS (print spooler)
sudo systemctl enable cups
sudo systemctl start cups
# Add current user to the 'lpadmin' group for printer management
sudo usermod -aG lpadmin "$CURRENT_USER"
echo "HP printer support configured."
echo ""
echo " To set up your HP printer, run one of:"
echo " hp-setup (terminal wizard)"
echo " hp-setup -u (GUI wizard — recommended)"
echo ""
echo " For proprietary plugin printers (e.g. some LaserJet models):"
echo " sudo hp-plugin (downloads and installs the binary plugin)"
echo ""
echo " Printer management UI (CUPS web interface):"
echo " http://localhost:631"
echo ""
echo " NOTE: Log out and back in for the lpadmin group to take effect."
# -------------------------------------------------------------
# Timeshift: installed — manual setup required
@@ -153,4 +226,4 @@ echo " The pre-apt hook will SKIP snapshots until Timeshift is"
echo " configured with a valid snapshot location."
echo "--------------------------------------------------------------"
echo ""
echo "All done! Reboot for all changes (including auto-login) to take effect."
echo "All done! Reboot for all changes to take effect."