Auto login on a BBB w/ Debian Wheezy

2,110 views
Skip to first unread message

brett....@gmail.com

unread,
Jul 14, 2014, 1:57:29 PM7/14/14
to beagl...@googlegroups.com
I have a few beaglebone blacks that I want to automatically log in to a console at boot. I have successfully gotten one of them to do this, but I cannot remember for the life of me how I did it. Well, I remember how to disable lightdm so that it has to be started manually by typing 'startx' from the console. Most of the information I have been finding revolves around making changed to /etc/inittab. For instance:

1:2345:respawn:/bin/login -f rfid tty1 </dev/tty1 >/dev/tty1 2>&1

-or- 

1:2345:respawn:/sbin/getty --autologin debian --noclear tty1

found here:


But on the BBB with the working auto login, changing inittab has no effect on its behavior, so I must have changed something else. I unfortunately don't remember what that might have been. Does anyone know of another way to set up auto login not using inittab? Thanks!

Cody Lacey

unread,
Jul 14, 2014, 2:27:38 PM7/14/14
to beagl...@googlegroups.com
If you are using systemd you must add a service to /etc/systemd/system/getty.target.wants
I believe you can use serial...@ttyGS0.service as a template.


--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

brett....@gmail.com

unread,
Jul 14, 2014, 3:27:18 PM7/14/14
to beagl...@googlegroups.com
aha, yes, that's it!

in this file:

/etc/systemd/system/getty.target.wants/ge...@tty1.service

Change this line:

ExecStart=-/sbin/agetty %I 38400

to:

ExecStart=-/sbin/agetty -a debian %I 38400

autologin!


On Monday, July 14, 2014 1:27:38 PM UTC-5, cody wrote:
If you are using systemd you must add a service to /etc/systemd/system/getty.target.wants
I believe you can use serial-getty@ttyGS0.service as a template.

ansari...@gmail.com

unread,
Oct 28, 2017, 6:29:11 PM10/28/17
to BeagleBoard
But, in my case i m using ttyO0 and unable to find tty1 service..could u please help me?


On Tuesday, July 15, 2014 at 12:57:18 AM UTC+5:30, brett....@gmail.com wrote:
aha, yes, that's it!

in this file:

/etc/systemd/system/getty.target.wants/getty@tty1.service

Iben Rodriguez

unread,
Oct 29, 2017, 11:44:41 AM10/29/17
to BeagleBoard
If you use the “history” command does your system that works show you what other files you changed?
Reply all
Reply to author
Forward
0 new messages