Skip to content

Instantly share code, notes, and snippets.

@thewh1teagle
Created June 8, 2020 08:53
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save thewh1teagle/feb6f1ec221e8bad3b1207abff04c4e7 to your computer and use it in GitHub Desktop.
Save thewh1teagle/feb6f1ec221e8bad3b1207abff04c4e7 to your computer and use it in GitHub Desktop.
Silent boot Debian 10
#!/bin/bash
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root"
exit 1
fi
echo 'GRUB_DEFAULT=0' > /etc/default/grub
echo 'GRUB_TIMEOUT=5' >> /etc/default/grub
echo 'GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`' >> /etc/default/grub
echo 'GRUB_CMDLINE_LINUX_DEFAULT="quiet loglevel=3 vga=current rd.systemd.show_status=auto rd.udev.log-priority=3 vt.global_cursor_default=0"' >> /etc/default/grub
echo 'GRUB_CMDLINE_LINUX="console=ttyS0"' >> /etc/default/grub
update-grub
sed -e '/echo/ s/^#*/#/g' -i file /boot/grub/grub.cfg
sed -e 's/cyan/white/g' -i /boot/grub/grub.cfg
sed -e 's/blue/black/g' -i /boot/grub/grub.cfg
systemctl disable getty@tty1.service # Hide tty login prompt at tty1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment