Raspberry Pi auto login without etc/inittab

前端 未结 4 2214
闹比i
闹比i 2021-01-18 01:34

I would like to settup my Raspberry Pi to auto login in a specific user. I googled this and the solutions that i found were about editing the /etc/inittab file. My problem i

4条回答
  •  难免孤独
    2021-01-18 01:58

    I found this, which is the only thing that worked for me.

    Automatic Login for LightDM

    Open the terminal and make first a backup of the file we are going to edit:

    su - 
    gedit /etc/lightdm/lightdm.gedit /etc/lightdm/lightdm.conf.back
    

    Edit now this file:

    gedit /etc/lightdm/lightdm.conf
    

    or

    nano /etc/lightdm/lightdm.conf
    

    Uncomment these two lines:

    autologin-user=USERNAME
    autologin-user-timeout=0
    

    Replace USERNAME with your own username. Save the file and exit. Run now this command so that changes are taken into effect:

    dpkg-reconfigure lightdm 
    

提交回复
热议问题