RPi Debian Auto Login

Source: Internet
Author: User

This guide would show you how to login to a Debian image and start LXDE by simply powering the Pi on.

Method 1: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

Method 2: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
(where pi is the username-want to run X as). Press Ctrl+x to exit, Y to save followed by Enter twice.

(Note:the previous method indicated that you should add StartX to/etc/profile. The updated method is better, since it would cause STARTX to run only when necessary, and it would not launch the X server A s root.)

RPi Debian Auto Login

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.