Difference between revisions of "Silent boot"

From ArchWiki
Jump to: navigation, search
m (style)
(bash_profile is where you startx)
Line 26: Line 26:
 
  kernel.printk = 3 3 3 3
 
  kernel.printk = 3 3 3 3
  
To hide {{ic|startx}} messages, you could redirect its output to {{ic|/dev/null}}, like so:
+
To hide {{ic|startx}} messages, you could redirect its output to {{ic|/dev/null}}, in your [https://github.com/kaihendry/Kai-s--HOME/blob/master/.bash_profile .bash_profile] like so:
  
 
  $ [[ $(fgconsole 2>/dev/null) == 1 ]] && exec startx -- vt1 &> /dev/null
 
  $ [[ $(fgconsole 2>/dev/null) == 1 ]] && exec startx -- vt1 &> /dev/null

Revision as of 07:19, 28 June 2013

This page is for those who prefer to limit the verbosity of their system to a strict minimum, either for aesthetics or other reasons. Following this guide will remove all text from the bootup process. Video demonstration

Syslinux and Systemd

The kernel section in /boot/syslinux/syslinux.cfg should look something like:

APPEND root=/dev/sda1 ro 5 init=/usr/lib/systemd/systemd quiet vga=current

vga=current is the kernel argument that avoid weird behaviours like grey flash.

Configure your systemd getty service as described upon Automatic login to virtual console.

$ grep Exec /etc/systemd/system/autologin\@.service
...
ExecStart=-/sbin/agetty -n -i -a YOUR_USERNAME %I
...

To remove lastlog message you need to comment out lastlog in /etc/pam.d/login:

#session                optional        pam_lastlog.so

To hide any kernel messages from the console add or modify the kernel.printk line like the following:

kernel.printk = 3 3 3 3

To hide startx messages, you could redirect its output to /dev/null, in your .bash_profile like so:

$ [[ $(fgconsole 2>/dev/null) == 1 ]] && exec startx -- vt1 &> /dev/null

Outstanding Issues: