How to autologin as root on Beagleboard xM

2,471 views
Skip to first unread message

anand

unread,
Feb 8, 2012, 12:37:04 AM2/8/12
to Beagle Board
hi,

I am using Angstrom (Kernel 3.0.8).
I want the beagleboard to login automatically without us requiring to
type root.

How can this be done?

Jochen

unread,
Feb 8, 2012, 6:34:26 AM2/8/12
to Beagle Board
Hi!

I'm using buildroot and busybox, there it is done in /etc/inittab with
the entry

::respawn:-/bin/sh

instead of something like getty.
the - before /bin/sh makes it a root shell (i.e. reads configuration)

-Jochen

Fredric J. Einstein

unread,
Feb 8, 2012, 7:58:17 AM2/8/12
to beagl...@googlegroups.com
Follow the directions here.... Works perfectly....

http://icanbuild.it/wiki/index.php?title=Beagleboard

That's for GNOME Angstrom.....

Hi!

::respawn:-/bin/sh

-Jochen

--
To join: http://beagleboard.org/discuss
To unsubscribe from this group, send email to:
beagleboard...@googlegroups.com
Frequently asked questions: http://beagleboard.org/faq

anand

unread,
Feb 9, 2012, 3:19:39 AM2/9/12
to Beagle Board, anand satpute
Thanks Jochen and Fredric for your reply..


But i am using a console image which i have built using angstrom
distribution.
It does not hav the inittab file in the /etc folder.

these are the contents of /etc/ folder
-------------------------------------------------------------------------------------------
root@beagleboard:/etc# ls
angstrom-build-info hostname nsswitch.conf rsyslog.conf
angstrom-version hosts ntp.conf securetty
apm init.d opkg security
avahi inputrc os-release services
bash_completion.d issue pam.d shadow
binfmt.d issue.net passwd shells
bluetooth ld.so.cache passwd- skel
busybox.links ld.so.conf ppp sysctl.conf
dbus-1 libnl profile sysctl.d
default localtime protocols syslog.conf
dnsmasq.conf login.defs rc0.d
syslog.conf.busybox
dnsmasq.d machine-id rc1.d systemd
dropbear modprobe.d rc2.d terminfo
environment modules rc3.d timestamp
filesystems modules-load.d rc4.d timezone
fstab modules.conf rc5.d tmpfiles.d
group modules.conf.old rc6.d udev
group- modutils rcS.d udhcpc.d
gshadow motd resolv.conf version
gshadow- mtab rpc
wpa_supplicant.conf
host.conf network rsyslog xdg
------------------------------------------------------------------------------------

Which file should be modified to enable auto login as root?

Actually i want the beagleboard to work automatically without needing
to login and run some sripts automatically.
I am using it for robotics application.

Thanks,
Anand S


On Feb 8, 5:58 pm, "Fredric J. Einstein" <feins...@frontier.com>
wrote:

Eric Fung

unread,
Feb 9, 2012, 12:41:54 PM2/9/12
to beagl...@googlegroups.com
>> Which file should be modified to enable auto login as root?
You do not need to login at all.

>> Actually i want the beagleboard to work automatically without needing to login and run some sripts automatically.

You can put your script in init.d. Then, in either rc3.d or rc5.d or both, create a soft link point to your script in init.d. For instance, in rc3.d, you will see the names of the soft links like this one "S??xxx". The two numbers follow 'S' imply the order of execution. The soft link with the smallest number will be executed first. So, S99rmnologin will be executed last.

Eric

anand

unread,
Feb 10, 2012, 12:40:05 AM2/10/12
to Beagle Board
Thanks Eric Fung.

On Feb 9, 10:41 pm, Eric Fung <bbef...@gmail.com> wrote:
> >>  Which file should be modified to enableautologinasroot?
>
> You do not need tologinat all.
>
> >>  Actually i want the beagleboard to work automatically  without needing tologinand run some sripts automatically.
> > Which file should be modified to enableautologinasroot?
>
> > Actually i want the beagleboard to work automatically  without needing
> > tologinand run some sripts automatically.
> > I am using it for robotics application.
>
> > Thanks,
> > Anand S
>
> > On Feb 8, 5:58 pm, "Fredric J. Einstein"<feins...@frontier.com>
> > wrote:
> >> Follow the directions here....  Works perfectly....
>
> >>http://icanbuild.it/wiki/index.php?title=Beagleboard
>
> >> That's for GNOME Angstrom.....
>
> >> -----Original Message-----
> >> From: beagl...@googlegroups.com [mailto:beagl...@googlegroups.com] On
>
> >> Behalf Of Jochen
> >> Sent: Wednesday, February 08, 2012 6:34 AM
> >> To: Beagle Board
> >> Subject: [beagleboard] Re: How to autologin asrooton Beagleboard xM
>
> >> Hi!
>
> >> I'm using buildroot and busybox, there it is done in /etc/inittab with the
> >> entry
>
> >> ::respawn:-/bin/sh
>
> >> instead of something like getty.
> >> the - before /bin/sh makes it arootshell (i.e. reads configuration)

Tomas S

unread,
Mar 9, 2012, 3:28:08 AM3/9/12
to Beagle Board
Hi,

I'm looking for something to "auto-login" as well and found this
thopic, but I'm having some difficulties, i'm running on a angstrom
console-image aswell. If i understood correctly, i need to create and
add a script file in init.d, then use a softlink to it from either
rc3.d or rc5.d, rename the file so it have an SxyNameoffile.

Since i'm not good at scripts, i did some copy and paste from this
thread, hoping something might work.

#!/bin/sh

::respawn:-/bin/sh

AutomaticLoginEnable=true
AutomaticLogin=root

exit 0


After which i try to create a link of that file to rc3.d
sudo ln -s /media/Angstrom/etc/init.d/autologin /media/Angstrom/etc/
rc3.d/S99autologin

I then start up the board, but i have to login. My end goal is to get
a program i've written to autostart on powerup. Could any one please
help me / point me in the right direction, on how to get this working.

Regards,
Tomas

kli

unread,
Jun 14, 2012, 5:09:19 AM6/14/12
to beagl...@googlegroups.com
Hello

I am trying to achieve the same goal -> to auto-login and auto-boot a application 
I followed the recommendations in this thread but without success and further investigation in the net showed a lot of solutions with the /etc/inittab file which does not exist in my rootfs.  

It would be really nice if one could help.

thanks 

Nvd

unread,
May 3, 2013, 11:58:28 AM5/3/13
to beagl...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages