What is a clean way to obtain Angstrom Linux to boot up and open the shell without asking to log in?
相关问题
- Is shmid returned by shmget() unique across proces
- how to get running process information in java?
- Error building gcc 4.8.3 from source: libstdc++.so
- Why should we check WIFEXITED after wait in order
- Null-terminated string, opening file for reading
change tty1 for your system configuration, ex) ttyO0, ttyS1, etc..
I found a nice way to achieve it. This works for me with Angstrom (on a Beagleboard xM Rev C4).
Make sure agetty is installed (/sbin/agetty is the standard location). It should be included in every Linux Angstrom image.
Create a script file in any location, for example /home/root/autologin.sh. Edit it and add the following:
Make it executable with the command
Edit the file /etc/inittab. Comment out (by adding a “#” at the beginning) the following line
and add the following line:
Hope this helps out there.
This simple answer took me hours to find. For those of you who don't have /etc/inittab the following worked for me. In
change the line
to
I partially figured this out on my own from reading about getty in /etc/inittab, which led me to ExecStart on my system, and a quick google search led me to https://unix.stackexchange.com/questions/42359/how-can-i-autologin-to-desktop-with-systemd which gave me the auto-login syntax of /sbin/getty.
My answer is more linux-generic. Without a start of a getty-process you doesn't have a passwort login. Look at
starts here a *getty-process? Remove this line and restart your device.