Difference between revisions of "Silent boot"

From ArchWiki
Jump to: navigation, search
m (flagged as needing expansion/fixed more typos)
m (fixed inittab startx/login command)
Line 77: Line 77:
  #x:5:respawn:/usr/bin/kdm -nodaemon
  #x:5:respawn:/usr/bin/kdm -nodaemon
  #x:5:respawn:/usr/bin/slim >& /dev/null
  #x:5:respawn:/usr/bin/slim >& /dev/null
  x:5:once:/bin/su daedhel -l -c "/bin/bash --login -c /usr/bin/startx >/dev/null $
  x:5:once:/bin/su yourusername -l -c "/bin/bash --login -c /usr/bin/startx >/dev/null 2>&1"
==Patching grub==
==Patching grub==
(coming soon)
(coming soon)

Revision as of 18:05, 7 April 2010

Tango-view-fullscreen.pngThis article or section needs expansion.Tango-view-fullscreen.png

Reason: please use the first argument of the template to provide a brief explanation. (Discuss in Talk:Silent boot#)


This page is for those who, like me, prefer to limit the verbosity of their system to a strict minimum, either for aesthetic reasons or any other reasons.

The aim of this page is to give you instruction to remove all text from the boot process. To achive this, we will need to change ;

Grub configs

To avoid the verbose text, you can add this line to the grub kernel command "quiet console=tty12". It will send the outpout of the boot process to the "tty 12", while remaining on the "tty 1".

Example configuration for /boot/grub/menu.lst

# (0) Arch Linux
title  Arch Linux
root   (hd0,5)
kernel /vmlinuz26 root=/dev/disk/by-uuid/b2f2fc9a-6305-4770-aed2-fccb3ec51d5c ro quiet console=tty12
initrd /kernel26.img

This configuration will only leave the Arch logo on the screen for the whole boot process. If you would like to also remove the logo, simply add "logo.nologo" to the kernel command, like this:

# (0) Arch Linux
title  Arch Linux
root   (hd0,5)
kernel /vmlinuz26 root=/dev/disk/by-uuid/b2f2fc9a-6305-4770-aed2-fccb3ec51d5c ro quiet console=tty12 logo.nologo
initrd /kernel26.img


The file /etc/inittab is responsible for the prompts you get in your ttys. The boot process taking place in tty 1, i want to remove the prompt in that tty so that no text is displayed whatsoever. So i am gonna deactivate tty1 completely. Simply comment the line responsible for it in the /etc/initab file. The line to comment is this one:

c1:2345:respawn:/sbin/agetty -8 38400 tty1 linux

This is what my inittab file looks like with that line commented:

# /etc/inittab

#  Runlevels:
#    0    Halt
#    1(S)       Single-user
#    2    Not used
#    3    Multi-user
#    4    Not used
#    5    X11
#    6    Reboot 

## Only one of the following two lines can be uncommented!
# Boot to console
# Boot to X11

su:S:wait:/sbin/sulogin -p

# -8 options fixes umlauts problem on login
#c1:2345:respawn:/sbin/agetty -8 38400 tty1 linux
c2:2345:respawn:/sbin/agetty -8 38400 tty2 linux
c3:2345:respawn:/sbin/agetty -8 38400 tty3 linux
c4:2345:respawn:/sbin/agetty -8 38400 tty4 linux
c5:2345:respawn:/sbin/agetty -8 38400 tty5 linux
c6:2345:respawn:/sbin/agetty -8 38400 tty6 linux

# Hypervisor Virtual Console for Xen and KVM
#h0:2345:respawn:/sbin/agetty -8 38400 hvc0 linux

ca::ctrlaltdel:/sbin/shutdown -t3 -r now

# Example lines for starting a login manager
#x:5:respawn:/usr/bin/xdm -nodaemon
#x:5:respawn:/usr/sbin/gdm -nodaemon
#x:5:respawn:/usr/bin/kdm -nodaemon
#x:5:respawn:/usr/bin/slim >& /dev/null
x:5:once:/bin/su yourusername -l -c "/bin/bash --login -c /usr/bin/startx >/dev/null 2>&1"

Patching grub

(coming soon)