Try and enable autologin to the desktop

This commit is contained in:
Fayaaz 2020-07-27 00:56:50 +01:00
parent 6b30745668
commit 9ca0333bf4
4 changed files with 24 additions and 6 deletions

View File

@ -1,6 +1,6 @@
xserver-xorg-video-fbdev xserver-xorg xinit xserver-xorg-video-fbturbo
mousepad
lxde lxtask menu-xdg
zenity xdg-utils
gvfs-backends gvfs-fuse
lightdm gnome-themes-standard-data gnome-icon-theme
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 i3 i3status
liblo7 liblo-dev libasound-dev libjack-jackd2-dev

14
stage3/02-tweaks/01-run.sh Executable file
View File

@ -0,0 +1,14 @@
# Enable ssh.
touch ${ROOTFS_DIR}/boot/ssh
# Boot to gui by default
on_chroot << EOF
systemctl set-default graphical.target
ln -fs /lib/systemd/system/getty@.service /etc/systemd/system/getty.target.wants/getty@tty1.service
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

@ -0,0 +1 @@
pi ALL=(ALL) NOPASSWD: ALL

View File

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