Fix the autologin to desktop
This commit is contained in:
parent
0f8007b3cd
commit
3d6d47f8fd
|
@ -2,5 +2,5 @@ git
|
||||||
xserver-xorg-video-fbdev xserver-xorg xinit xserver-xorg-video-fbturbo xserver-xorg-legacy xscreensaver
|
xserver-xorg-video-fbdev xserver-xorg xinit xserver-xorg-video-fbturbo xserver-xorg-legacy xscreensaver
|
||||||
lxde lxtask menu-xdg # gksu
|
lxde lxtask menu-xdg # gksu
|
||||||
xdg-utils gvfs-backends gvfs-fuse
|
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
|
liblo7 liblo-dev libasound-dev libjack-jackd2-dev
|
||||||
|
|
|
@ -5,11 +5,11 @@ touch ${ROOTFS_DIR}/boot/ssh
|
||||||
on_chroot << EOF
|
on_chroot << EOF
|
||||||
systemctl set-default graphical.target
|
systemctl set-default graphical.target
|
||||||
ln -fs /lib/systemd/system/getty@.service /etc/systemd/system/getty.target.wants/getty@tty1.service
|
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
|
EOF
|
||||||
|
|
||||||
install -m 644 files/autologin.conf ${ROOTFS_DIR}/etc/systemd/system/getty@tty1.service.d/autologin.conf
|
install -m 644 files/autologin.conf ${ROOTFS_DIR}/etc/systemd/system/getty@tty1.service.d/autologin.conf
|
||||||
|
|
||||||
|
|
||||||
# Set up sudoers.d for user patch
|
# Set up sudoers.d for user patch
|
||||||
rm -f ${ROOTFS_DIR}/etc/sudoers.d/010_pi-nopasswd
|
rm -f ${ROOTFS_DIR}/etc/sudoers.d/010_pi-nopasswd
|
||||||
install -m 440 files/010_pi-nopasswd ${ROOTFS_DIR}/etc/sudoers.d/
|
install -m 440 files/010_pi-nopasswd ${ROOTFS_DIR}/etc/sudoers.d/
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=
|
ExecStart=
|
||||||
ExecStart=-/sbin/agetty --autologin pi --noclear %I \$TERM
|
ExecStart=-/sbin/agetty --autologin pi --noclear %I $TERM
|
||||||
|
|
Loading…
Reference in New Issue
Block a user