Ubuntu remove desktop: Difference between revisions

From Lolly's Wiki
Jump to navigationJump to search
m (Text replacement - "<source" to "<syntaxhighlight")
Line 3: Line 3:
[[category:Ubuntu|desktop]]
[[category:Ubuntu|desktop]]
=Ubuntu 20.04=
=Ubuntu 20.04=
<source lang=bash>
<syntaxhighlight lang=bash>
# GRUB: Remove splash and quiet from GRUB_CMDLINE_LINUX_DEFAULT
# GRUB: Remove splash and quiet from GRUB_CMDLINE_LINUX_DEFAULT
sudo perl -pi -e 's#^(GRUB_CMDLINE_LINUX_DEFAULT=".*)(quiet)(.*")$#\1\3#g,s#^(GRUB_CMDLINE_LINUX_DEFAULT=".*)(splash)(.*")$#\1\3#g' /etc/default/grub
sudo perl -pi -e 's#^(GRUB_CMDLINE_LINUX_DEFAULT=".*)(quiet)(.*")$#\1\3#g,s#^(GRUB_CMDLINE_LINUX_DEFAULT=".*)(splash)(.*")$#\1\3#g' /etc/default/grub

Revision as of 15:23, 25 November 2021

[category:Ubuntu]

Ubuntu 20.04

<syntaxhighlight lang=bash>

  1. GRUB: Remove splash and quiet from GRUB_CMDLINE_LINUX_DEFAULT

sudo perl -pi -e 's#^(GRUB_CMDLINE_LINUX_DEFAULT=".*)(quiet)(.*")$#\1\3#g,s#^(GRUB_CMDLINE_LINUX_DEFAULT=".*)(splash)(.*")$#\1\3#g' /etc/default/grub

  1. GRUB: Add or change to GRUB_DISABLE_OS_PROBER=true

sudo perl -ni -e '$c=1 if s/^GRUB_DISABLE_OS_PROBER=.*$/GRUB_DISABLE_OS_PROBER=true/; print; if(eof){print "GRUB_DISABLE_OS_PROBER=true\n" unless $c==1};' /etc/default/grub

  1. Remove desktop packages

sudo apt --yes purge adwaita-icon-theme gedit-common gir1.2-gdm-1.0 \ gir1.2-gnomebluetooth-1.0 gir1.2-gnomedesktop-3.0 gir1.2-goa-1.0 \ gnome-accessibility-themes gnome-bluetooth gnome-calculator gnome-calendar \ gnome-characters gnome-control-center gnome-control-center-data \ gnome-control-center-faces gnome-desktop3-data \ gnome-font-viewer gnome-getting-started-docs gnome-getting-started-docs-ru \ gnome-initial-setup gnome-keyring gnome-keyring-pkcs11 gnome-logs \ gnome-mahjongg gnome-menus gnome-mines gnome-online-accounts \ gnome-power-manager gnome-screenshot gnome-session-bin gnome-session-canberra \ gnome-session-common gnome-settings-daemon gnome-settings-daemon-common \ gnome-shell gnome-shell-common gnome-shell-extension-appindicator \ gnome-shell-extension-desktop-icons gnome-shell-extension-ubuntu-dock \ gnome-startup-applications gnome-sudoku gnome-system-monitor gnome-terminal \ gnome-terminal-data gnome-themes-extra gnome-themes-extra-data gnome-todo \ gnome-todo-common gnome-user-docs gnome-user-docs-ru gnome-video-effects \ language-pack-gnome-en language-pack-gnome-en-base language-pack-gnome-ru \ language-pack-gnome-ru-base language-selector-gnome libgail18 libgail18 \ libgail-common libgail-common libgnome-autoar-0-0 libgnome-bluetooth13 \ libgnome-desktop-3-19 libgnome-games-support-1-3 libgnome-games-support-common \ libgnomekbd8 libgnomekbd-common libgnome-menu-3-0 libgnome-todo libgoa-1.0-0b \ libgoa-1.0-common libpam-gnome-keyring libsoup-gnome2.4-1 libsoup-gnome2.4-1 \ nautilus-extension-gnome-terminal pinentry-gnome3 yaru-theme-gnome-shell \ yaru-theme-icon yaru-theme-sound ubuntu-wallpapers ubuntu-wallpapers-focal \ x11-common x11-apps xcursor-themes xbitmaps xfonts-base xfonts-encodings

  1. Purge unreferred packages

sudo apt --yes autopurge

  1. Fix plymouth problems

sudo apt --yes install plymouth-theme-spinner

  1. Ensure the boot environment creation works

update-initramfs -k $(uname -r) -u update-grub </source>