Fix the autologin to desktop

This commit is contained in:
Fayaaz 2020-07-27 18:36:31 +01:00
parent 0f8007b3cd
commit 3d6d47f8fd
3 changed files with 3 additions and 3 deletions

View File

@ -2,5 +2,5 @@ git
xserver-xorg-video-fbdev xserver-xorg xinit xserver-xorg-video-fbturbo xserver-xorg-legacy xscreensaver
lxde lxtask menu-xdg # gksu
xdg-utils gvfs-backends gvfs-fuse
lightdm gnome-themes-standard-data gnome-icon-theme
lightdm gnome-themes-standard-data gnome-icon-theme i3 i3status
liblo7 liblo-dev libasound-dev libjack-jackd2-dev

View File

@ -5,11 +5,11 @@ touch ${ROOTFS_DIR}/boot/ssh
on_chroot << EOF
systemctl set-default graphical.target
ln -fs /lib/systemd/system/getty@.service /etc/systemd/system/getty.target.wants/getty@tty1.service
sed /etc/lightdm/lightdm.conf -i -e "s/^\(#\|\)autologin-user=.*/autologin-user=pi/"
EOF
install -m 644 files/autologin.conf ${ROOTFS_DIR}/etc/systemd/system/getty@tty1.service.d/autologin.conf
# Set up sudoers.d for user patch
rm -f ${ROOTFS_DIR}/etc/sudoers.d/010_pi-nopasswd
install -m 440 files/010_pi-nopasswd ${ROOTFS_DIR}/etc/sudoers.d/

View File

@ -1,3 +1,3 @@
[Service]
ExecStart=
ExecStart=-/sbin/agetty --autologin pi --noclear %I \$TERM
ExecStart=-/sbin/agetty --autologin pi --noclear %I $TERM