Getty as display manager

From Funtoo
Revision as of 05:58, June 21, 2018 by Freefog (talk | contribs) (Start X on login to tty1)
Jump to: navigation, search

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

Choose window manager

If you use fi keyboard layout and dwm as window manager, you would set the following in your ~/.xinitrc:

   ~/.xinitrc - setting up keyboard layout and window manager
setxkbmap fi
exec dwm

Start X on login to tty1

Start X session when you login to first virtual terminal. By default this should happen on the first freed terminal, tty7 if agetty is taking up the 1-6 as per /etc/inittab describes.

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

   ~/.bashrc - Autostart X on login to tty1
[[ $(tty) = "/dev/tty1" ]] && exec startx


Modify /etc/inittab:

   /etc/inittab - Autologin
c1:12345:respawn:/sbin/agetty -a username 38400 tty1 linux

If you want start X straight from autologin in inittab, enter the code from the above .bashrc in ~/.bash_profile instead.