Hello all;
I am trying to get my BBB to automatically login as root after it boots.
This is the image I am running:
“Linux beaglebone 3.8.13-bone70 #1 SMP Fri Jan 23 02:15:42 UTC 2015 armv7l GNU/Linux”
After some Google, I found several methods that appear to be out of date.
They all suggest modifying the “/etc/inittab” file as below:
First install rungetty using the following command
#apt-get install rungetty
you need to edit the /etc/inittab file
#nano /etc/inittab
look for the following line
comment out
#1:2345:respawn:/sbin/getty 38400 tty1
and add
1:2345:respawn:/sbin/rungetty tty1 --autologin YOUR_USER_NAME
or
1:2345:respawn:/bin/login -f root tty1 </dev/tty1 >/dev/tty1 2>&1
none of the above work :-(
I’m sure this is do able, I just don’t know how to with this image.
Thanks;
Bill
I could REALLY use some help here L
So I found a 10 year old post by Robert Nelson, [RobertCNelson 05/04/2010]where he also suggests either writing your own login.c file or using “rungetty” as well.
However, I am wondering if “systemd” even uses this file?
If not, then what file(s) does systemd use ?
Thanks
--
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.
Thanks for the help Don.
I followed the link, but it would appear that Arch Linux uses a slightly different file structure.
So I looked around and found what I thought was the correct file and modified it per the Arch Instructions.
Unfortunately it didn’t work after a “shutdown now –r” command.
I am wondering if there is something else I had to do before reboot ?
Here is the file:
root@beaglebone:/etc/systemd/system/getty.target.wants# ls -l
total 0
lrwxrwxrwx 1 root root 34 Oct 9 2013 ge...@tty1.service -> /lib/systemd/system/getty@.service
lrwxrwxrwx 1 root root 47 Mar 1 2015 serial...@ttyGS0.service -> /etc/systemd/system/serial...@ttyGS0.service
===========================
nano /lib/systemd/system/getty@.service
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
[Unit]
Description=Getty on %I
BindTo=dev-%i.device
After=dev-%i.device systemd-user-sessions.service plymouth-quit-wait.service
# If additional gettys are spawned during boot then we should make
# sure that this is synchronized before getty.target, even though
# getty.target didn't actually pull it in.
Before=getty.target
[Service]
Environment=TERM=linux
#ExecStart=-/sbin/agetty %I 38400
ExecStart=-/sbin/agetty --autologin root --noclear %I 38400 linux
Restart=always
RestartSec=0
UtmpIdentifier=%I
TTYPath=/dev/%I
TTYReset=yes
TTYVHangup=yes
TTYVTDisallocate=yes
KillMode=process
IgnoreSIGPIPE=no
# Unset locale for the console getty since the console has problems
# displaying some internationalized messages.
Environment=LANG= LANGUAGE= LC_CTYPE= LC_NUMERIC= LC_TIME= LC_COLLATE= LC_MONETARY= LC_MESSAGES= LC_PAPER= LC_NAME= LC_ADDRESS= LC_TELEPHONE= LC_MEASUREMENT= LC_IDENTIFICATION=
# Some login implementations ignore SIGTERM, so we send SIGHUP
# instead, to ensure that login terminates cleanly.
KillSignal=SIGHUP
[Install]
Alias=getty.target.wants/ge...@tty1.service
Thanks William.
I checked out:
and it looks like I would have to change this line in uEnv.txt
uname_r=3.8.13-bone70
#dtb=
cmdline=quiet init=/lib/systemd/systemd ß to something else ?
Is there not some way to just configure systemd to do the same thing ??
Thanks for getting back guys ….
IMHO there has to be a straight forward way of doing this.
By that I mean, I don’t have to login to my microwave to make popcorn.
(there are 1000’s of embedded systems running Linux)
So somebody must have done it ??
From: beagl...@googlegroups.com [mailto:beagl...@googlegroups.com] On Behalf Of William Hermans
Sent: Monday, September 07, 2015 12:04 AM
To: beagl...@googlegroups.com
Subject: Re: [beagleboard] Auto Login with Debian ?
Pretty much you have to instal SYSV, remove systemd and do what Roberts suggests for wheezy. It could fix your issue, *if* you wanted to do away with systemd. That is probably what I'd do, but that doesn't mean that anyone else has to agree with me. For me it is a simple matter of being able to get the things done that I want to get done. Without having to explore new ways of doing the old things I already know how to do . . .
Thanks for getting back guys ….
IMHO there has to be a straight forward way of doing this.
By that I mean, I don’t have to login to my microwave to make popcorn.
(there are 1000’s of embedded systems running Linux)
So somebody must have done it ??
Probably the reason why you're having a tough time finding information is that *probably* many "old timers" such as myself may find the concept of systemd pretty cool, but in the real world where things need to get done. We can't be f'd to spend all the time needed to figure out every single detail that we already know how to do - Using sysv. So you're going to have to spend some serious time wading through whatever documentation you can find - To do the things you want to do.
I just did a quick google search myself on the subject, and closest I came to an answer in a short amount of time was this . . .
http://unix.stackexchange.com/questions/170555/why-is-my-debian-jessie-always-in-runlevel-5
Not exactly *very* helpful, but the first answer does point to a systemd FAQ. Which may be a good place for you to start ?
--
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.
Thanks Don, looks lie systemd is a step forward while the other is a step backward ….
Ok Guys;
So I went with the systemd approach an followed the auto login link someone suggested.
Unfortunately, none of the methods worked L
Arch Linux
/etc/systemd/system/ge...@tty1.service.d/override.conf
or
Jessie
/etc/systemd/system/ge...@tty1.service.d/autologin.conf
[Service]
ExecStart=
ExecStart=-/sbin/agetty --autologin root -–noclear %I 38400 linux
or
Install rungetty
ExecStart=-/sbin/rungetty --autologin root -–noclear %I 38400 linux
/etc/inittab
Search for the line:
1:2345:respawn:/sbin/getty 38400 tty1
Replace with as follow
1:2345:respawn:/sbin/rungetty --autologin <user-name> --noclear tty1
After modifying the inittab restart the system.
From: beagl...@googlegroups.com [mailto:beagl...@googlegroups.com] On Behalf Of Don deJuan
Sent: Monday, September 07, 2015 11:04 AM
To: beagl...@googlegroups.com
Subject: Re: [beagleboard] Auto Login with Debian ?
On 09/07/2015 07:55 AM, Graham wrote: