为什么Ubuntu在启动时会显示启动消息?

当我启动Ubuntu或Fedora时,它们会显示一个黑屏,其中包含一堆用于启动过程的[OK]消息。

它看起来像一个旧式的DOS系统。 如今,iOS和Windows不会显示那些类似终端的结果。 初级操作系统也没有显示它(大多数时候)。

我可以在Ubuntu中隐藏它们吗?

这个问题的答案在我的情况下不起作用,因为我的/etc/default/grub已经有GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"但它仍然显示引导文本。

apt-cache policy plymouth | grep Installed输出 apt-cache policy plymouth | grep Installed

 Installed: 0.9.2-3ubuntu17 

这是我的/etc/default/grub

 GRUB_DEFAULT=0 #GRUB_HIDDEN_TIMEOUT=0 GRUB_HIDDEN_TIMEOUT_QUIET=true GRUB_TIMEOUT=10 GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi=force" GRUB_CMDLINE_LINUX="" 

3月18日更新:

跑完后:

 sudo apt-get clean, apt-get autoremove, apt-get update, apt-get upgrade 

结果是一样的:第一个Ubuntu靴子带有徽标和5个加载点然后,屏幕显示这些:(很多)

 ... [ OK ] Started CUPS Scheduler.  [ OK ] Started Run anacron jobs. [ OK ] Started ACPI event daemon. [ OK ] Started Set the CPU Frequency Scaling governor. Starting Hold until boot process finishes up... any system changes.pp link was shut down. 

然后Ubuntu显示用户名登录界面。

也:

 $ sudo dpkg-reconfigure -a [sudo] password for user: Unknown option: a Usage: dpkg-reconfigure [options] packages -u, --unseen-only Show only not yet seen questions. --default-priority Use default priority instead of low. --force Force reconfiguration of broken packages. --no-reload Do not reload templates. (Use with caution.) -f, --frontend Specify debconf frontend to use. -p, --priority Specify minimum priority question to show. --terse Enable terse mode. $ sudo dpkg-reconfigure plymouth [sudo] password for user: update-initramfs: deferring update (trigger activated) update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults Processing triggers for initramfs-tools (0.125ubuntu12) ... update-initramfs: Generating /boot/initrd.img-4.13.0-36-generic 

简短回答:是的! :)你可以随心所欲地自定义Ubuntu或Fedora。 我不知道你在运行什么版本,但在任何正常安装下我都认为应该安装普利茅斯。

Plymouth是一个应用程序,它在启动和关闭Ubuntu系统时提供图形“启动”屏幕。

这个主题在ubuntu网站上有一个完整的维基: https : //wiki.ubuntu.com/Plymouth我认为你的工作不起作用的原因是因为内核没有设置为正确使用普利茅斯,或者你的grub bootloader设置为以文本模式启动操作系统。

我之前遇到的另一个问题是我的Ubuntu没有正常关闭,导致它在系统检查中启动,并且还显示终端输出。

您看到的那些花哨的OK / FAIL消息实际上是在引导过程中输出到TTY1的引导消息。

要回答你的问题,技术上不是shell,而是一个单独的程序,即发出这些消息的systemd init系统。

你可以隐藏这些消息,但我需要查找它。 因为我从不隐藏它,我实际上喜欢它。

编辑:

要隐藏这些消息,请编辑/ etc / default / grub

 sudo nano /etc/default/grub 

改变这些行:

 GRUB_CMDLINE_LINUX_DEFAULT=quiet #Don't show Ubuntu bootup text GRUB_CMDLINE_LINUX="console=tty12" #Don't show kernel text 

更新grub:

 sudo update-grub 

而不是隐藏使用闪屏来掩盖它。

使用plymouth,一个图形化的启动动画师,你可以提供一个非常适合台式机的漂亮的靴子。

 sudo apt-get install plymouth-theme-ubuntu-logo 

您将在此链接上找到操作方法: 静默启动Linux