Forum
Auto login terminal - Printable Version

+- Forum (http://forum.xbian.org)
+-- Forum: Software (/forum-6.html)
+--- Forum: Configuration (/forum-17.html)
+--- Thread: Auto login terminal (/thread-4078.html)



Auto login terminal - joehc - 22nd Mar, 2020 04:55 AM

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


RE: Auto login terminal - Nachteule - 28th Mar, 2020 12:16 AM

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



RE: Auto login terminal - joehc - 9th Apr, 2020 04:31 AM

(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!


RE: Auto login terminal - AshleyBaudin - 30th Aug, 2021 05:26 PM

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.