Forum

Full Version: Auto login terminal
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello

Can someone help me in guiding me to enable auto login at terminal at startup?

I have a script I would like to run when pressing a key, but the key bindings are only triggered at the terminal aften login.

I cant seem to find anything related to auto login at xbian-config

Thx
Usually Kodi is running in the foreground, so autologin does not make sense in this case.

Anyway, you can to this by editing /etc/init/tty1.conf in following way


Code:
# tty1 - getty
#
# This service maintains a getty on tty1 from the point the system is
# started until it is shut down again.

start on stopped rc RUNLEVEL=[2345] and (
            not-container or
            container CONTAINER=lxc or
            container CONTAINER=lxc-libvirt)

stop on runlevel [!2345]

respawn
#
# Modifications for autologin of user xbian
#
#exec /sbin/getty -8 38400 tty1
exec /sbin/getty --autologin xbian -8 38400 tty1
(28th Mar, 2020 12:16 AM)Nachteule Wrote: [ -> ]Usually Kodi is running in the foreground, so autologin does not make sense in this case.

Anyway, you can to this by editing /etc/init/tty1.conf in following way


Code:
# tty1 - getty
#
# This service maintains a getty on tty1 from the point the system is
# started until it is shut down again.

start on stopped rc RUNLEVEL=[2345] and (
            not-container or
            container CONTAINER=lxc or
            container CONTAINER=lxc-libvirt)

stop on runlevel [!2345]

respawn
#
# Modifications for autologin of user xbian
#
#exec /sbin/getty -8 38400 tty1
exec /sbin/getty --autologin xbian -8 38400 tty1

Thx!
Auto login are have some of the recommended version forum on this that have some of affection among this. I need to have some of the formats that was on the essayontime this was the company that have all professionals on it that are making some aspects part among all of this.
Reference URL's