Auto Login - FrankBau/meta-marsboard-bsp GitHub Wiki

In file /etc/inittab, comment out a line and insert the line below:

#1:12345:respawn:/sbin/getty 38400 tty1
1:2345:respawn:/bin/login -f root tty1 </dev/tty1 >/dev/tty1 2>&1

This will automatically login user root when the system comes up (which is obviously a security risk!).

You may also automatically execute some progs/scripts/configurations on login by creating a login script /home/root/.profile. Example .profile:

#! /bin/bash
export TERM=vt102
sntp -S 0.de.pool.ntp.org
/bin/echo "Now, you are live on Mars ..."

The first line is useful for editing files with nano.

The second line makes only sense if the board is connected to the internet (=on Earth) time server mentioned and the sntp utility is installed which is included in the ntp recipe.

⚠️ **GitHub.com Fallback** ⚠️