Getty as display manager

From Funtoo
This is the approved revision of this page, as well as being the most recent.
Jump to: navigation, search

This guide shows how you can use getty as display manager.

[edit] Choose window manager

Create (or edit) ~/.xinitrc:

setxkbmap fi
exec dwm

[edit] Start X on login to tty1

Start X session when you login to first virtual terminal.

Add the following line in top of your ~/.bashrc:

[[ $(tty) = "/dev/tty1" ]] && exec startx

[edit] Autologin

Modify /etc/inittab:

# TERMINALS
c1:12345:respawn:/sbin/agetty -a username 38400 tty1 linux
c2:2345:respawn:/sbin/agetty 38400 tty2 linux