Autologin user without display manager?

2 replies [Last post]
quantumgravity
Offline
Joined: 04/22/2013

Hey everybody,
I want to keep my system as simple as possible and get rid of the display manager.
After booting, I want one specific user to be logged in automatically.
I already figured out how to launch the DE after that - it's done by .xsession.
So at the moment, the system boots and asks for username and password. After logging in everything works the way I want.

I think the job is done in /etc/init.d/
but I don't know how exactly.

Magic Banana

I am a member!

I am a translator!

Online
Joined: 07/24/2010

I do not think you can have a X server running but not a X display manager. The X display manager does not only take care of the login screen: https://en.wikipedia.org/wiki/X_display_manager_%28program_type%29

You may however want "nodm", a 31.8 kB package present in Trisquel's repositories where it is described as follows:
This package prepares the system to automatically start an X session at
system boot. It is meant for devices like smartphones, but can be used on
a regular computer as well, if the security implications are acceptable.

Otherwise, you may want to take a look at Qingy (in Trisquel's repositories as well). It is lightweight (the framebuffer displays the login screen!) and autologin is possible.

Notice that gdm and kdm propose autologin too. Theirs respective dependency lists are long... but you may have to run them anyway (if you use a Gtk-based DE in the case of GNOME, a Qt-based desktop in the case of kdm).

quantumgravity
Offline
Joined: 04/22/2013

"I do not think you can have a X server running but not a X display manager. "

Well, I think you're wrong since I already achieved this. It is possible with
Xinit.

I just need a possibility to tell the system "after startup, please login this user and launch startx" since this is what I have to do manually at the moment.