Who needs a graphical login manager, which takes up precious seconds to load? Not me! Use a tty instead, which can be
just almost as pretty as the graphical alternatives:
Start X automatically when logging in – no
Add the following to your ~/.bashrc
if [[ -z "$DISPLAY" ]] && [[ $(tty) = /dev/vc/1 ]]; then startx logout fi
This checks if the tty you just logged in using is tty1 (so that you can use other ttys without starting X); and if so, starts the xserver (
startx) and logs you out automatically when you kill the X server (
To get the ‘pretty’ tty display, edit /etc/issue and add some ascii-art or whatever.
In this file you can use standard bash colour codes along with some additional escape codes recognised by agetty (the program which parses /etc/issue):
b Insert the baudrate of the current line.
d Insert the current date.
s Insert the system name, the name of the operating system.
l Insert the name of the current tty line.
m Insert the architecture identifier of the machine, e.g., i686.
n Insert the nodename of the machine, also known as the hostname.
o Insert the domainname of the machine.
r Insert the release number of the kernel, e.g., 220.127.116.11.
t Insert the current time.
u Insert the number of current users logged in.
U Insert the string “1 user” or ” users” where is the
number of current users logged in.
v Insert the version of the OS, e.g., the build-date etc.
There are many example /etc/issue files around on the web. Have a search.