I would like to ask you if there is any way to start raspberry pi (using Raspbian) without login and password and to move directly to the GUI. Like Windows for example.
Asked
Active
Viewed 5.5k times
23
-
1This should belong to http://raspberrypi.stackexchange.com/ – Andrejs Cainikovs Jul 24 '13 at 09:57
-
Thanks for the keeping this up to date! – Digital Brent Jan 13 '19 at 18:14
1 Answers
32
Raspbian Wheezy:
Following was taken from eLinux.org RPi Debian Auto Login page:
Auto Login:
In Terminal:
sudo nano /etc/inittab
Scroll down to:
1:2345:respawn:/sbin/getty 115200 tty1
and change to
#1:2345:respawn:/sbin/getty 115200 tty1
Under that line add:
1:2345:respawn:/bin/login -f pi tty1 </dev/tty1 >/dev/tty1 2>&1
Ctrl+X to exit, Y to save followed by enter twice
Auto StartX (Run LXDE):
In Terminal:
sudo nano /etc/rc.local
Scroll to the bottom and add the following above exit 0:
su -l pi -c startx
Raspbian Jessie:
Use raspi-config. If, for some magic reason this tool is not present on your system, install it:
sudo apt-get install raspi-config
Hard way:
UPDATE 2019.05
In recent distro there's a simpler way to fix this:
At command prompt, type sudo raspi-config, then:
- select option 3 in menu (Boot Options)
- select option B1 (Desktopp/CLI)
- select option B2 (Console Autologin)
Hit OK, exit all the way and restart.
Update 2019.05 credit belongs to Hasan A Yousef.
Andrejs Cainikovs
- 27,428
- 2
- 75
- 95
-
-
Is there a way to extend this so it automatically opens IDLE and runs a python module at startup? – K2Digital Jan 20 '14 at 17:06
-
You can configure LXDE to autostart programs: https://wiki.archlinux.org/index.php/LXDE#Autostart_programs – Andrejs Cainikovs Jan 21 '14 at 13:14
-
This does not automatically log me in. I still get prompted to enter username/password every time. – IgorGanapolsky Jul 18 '16 at 02:01
-
1
-
-
1