From 0f8007b3cd9ca4d21b3bc12b40ea497e579f2e5a Mon Sep 17 00:00:00 2001 From: Fayaaz Date: Mon, 27 Jul 2020 02:16:53 +0100 Subject: [PATCH] Realtime scheduling fix in security.conf --- stage3/01-install-packages/00-packages-nr | 2 +- stage3/02-tweaks/01-run.sh | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/stage3/01-install-packages/00-packages-nr b/stage3/01-install-packages/00-packages-nr index 333655c..7bbc9e1 100644 --- a/stage3/01-install-packages/00-packages-nr +++ b/stage3/01-install-packages/00-packages-nr @@ -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 i3 i3status +lightdm gnome-themes-standard-data gnome-icon-theme liblo7 liblo-dev libasound-dev libjack-jackd2-dev diff --git a/stage3/02-tweaks/01-run.sh b/stage3/02-tweaks/01-run.sh index 2779683..684f4ee 100755 --- a/stage3/02-tweaks/01-run.sh +++ b/stage3/02-tweaks/01-run.sh @@ -1,7 +1,7 @@ # Enable ssh. touch ${ROOTFS_DIR}/boot/ssh -# Boot to gui by default +# Boot to graphical 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 @@ -9,6 +9,10 @@ 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/ + +echo @audio - memlock 256000 >> ${ROOTFS_DIR}/etc/security/limits.conf +echo @audio - rtprio 75 >> ${ROOTFS_DIR}/etc/security/limits.conf