I'd like my Raspberry Pi to immediately go to the lock screen upon boot up, similar to Windows. Every tutorial I find is for locking it after awhile though, and I can't find a single one that explains how to lock the computer on boot. How can I lock the computer on bootup?

  • 2
    Unless you over-ride this you have to login. See raspi-config
    – Milliways
    Jan 30, 2019 at 2:58

1 Answer 1


First, make sure you know what the pi user password is on your machine, because you'll now need it to login!

Next, open Terminal. Type sudo raspi-config and press Enter. Use the arrows to navigate to System Options and press enter. Then Boot / Auto Login, then Desktop GUI, requiring user to login. Press enter then reboot.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.