Friday, 27 September 2013

Autologin for Raspberry pi

You will no longer have to keep Logging in with Startx, or user and pass to get into ur LXDE after this one. Ideal for servers/car computers etc.

Log into your Pi, then type:

sudo nano /etc/inittab

Look for the line:

Quote
1:2345:respawn:/sbin/ getty 115200 tty1

Just add a "#" infront of it to disable it:

#1:2345:respawn:/sbin/ getty 115200 tty1

Add this line under it:

1:2345:respawn:/bin/login -f pi tty1</dev/tty1>/dev/tty1 2>&1

Hit CTRL + X and Y to save.

Type:

sudo nano ~/.bash_profile

Type:

startx

Hit CTRL + X and Y to save.

Now:

sudo reboot

It should now boot automatically.

Taken From: Raspberry Pi Tutorials

No comments:

Post a Comment

Amazon

Donate

Donate Towards More Raspberry PI's for Projects