Debian/Raspberry Pi: Difference between revisions
Steps to add the autologin feature Tag: visualeditor |
|||
| Line 98: | Line 98: | ||
Some changes have been made to the original repo: <nowiki>https://github.com/drtyhlpr/rpi23-gen-image</nowiki> which can be viewed in the commit history. | Some changes have been made to the original repo: <nowiki>https://github.com/drtyhlpr/rpi23-gen-image</nowiki> which can be viewed in the commit history. | ||
=== '''Adding the automatic login feature''' === | |||
* While the image is building, navigate to the following directory: | |||
~/rpi23-gen-image/images/stretch/build/chroot/etc | |||
and depending on the stage of the build process wait for a folder named 'lightdm' to appear. | |||
* Then open this file with nano/gedit and with root priviledges: | |||
~/rpi23-gen-image/images/stretch/build/chroot/etc/lightdmlightdm.conf.dpkg-new | |||
* Add/uncomment the following lines and configure them as shown below: | |||
autologin-session = sugar | |||
[Seat:*] | |||
#type=xlocal | |||
pam-service=lightdm | |||
pam-autologin-service=lightdm-autologin | |||
autologin-user=pi #(change this if you have configured a different user) | |||
autologin-password=raspberry #(change this if you have configured a different password) | |||
autologin-user-timeout=0 | |||
session-wrapper=/etc/X11/Xsession | |||
greeter-session=lightdm-greeter | |||
* Save the file and wait for the build process to complete. | |||
* Boot into your image with this configuration and autologin should work fine. | |||