Auto Login Questions
Posted: Tue Sep 29, 2015 7:22 pm
I have a few questions about auto login:
1. I am currently follwing this instructional to set up auto login:
http://www.elinux.org/RPi_Debian_Auto_Login
It says to comment out this line:
However, my line looks like this:
So my first question is, can somebody explain the parts of this line? What is respawn, 115200/38400, --noclear, and tty1? Any ideas why mine is different?
2. The next part says to add this line:
What are -f and </dev/tty1 >/dev/tty1 2>&1? Also, I deleted the pi user and added another user as one of a few attempts to make it a bit more secure. I'm assuming I should replace the "pi" part with my new username.
3. I still want to setup the auto login regardless, but I would like to know - must a user be logged in to auto-run a script? Does this change if this script is run as a cron job or a service?
Thanks for the help in advanced. As a novice I'm trying to learn as much as I can to actually learn instead of blindly following tutorials.
1. I am currently follwing this instructional to set up auto login:
http://www.elinux.org/RPi_Debian_Auto_Login
It says to comment out this line:
Code: Select all
1:2345:respawn:/sbin/getty 115200 tty1Code: Select all
1:2345:respawn:/sbin/getty --noclear 38400 tty12. The next part says to add this line:
Code: Select all
1:2345:respawn:/bin/login -f pi tty1 </dev/tty1 >/dev/tty1 2>&13. I still want to setup the auto login regardless, but I would like to know - must a user be logged in to auto-run a script? Does this change if this script is run as a cron job or a service?
Thanks for the help in advanced. As a novice I'm trying to learn as much as I can to actually learn instead of blindly following tutorials.