Jump to content

Welcome, Guest!

ryandigweed

Tutorial: How to autoboot your Pi without login prompt

Recommended Posts

How to autoboot your Pi without login prompt


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:

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.


 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

About Us

Bringing you the latest Raspberry Pi news, tutorials and user forum.

The Fruity Computer

×