From 464fbd8a4e8369fab7b5db747b4b77a68649d030 Mon Sep 17 00:00:00 2001 From: Stephen Just Date: Sat, 20 Jul 2024 13:46:48 -0700 Subject: [PATCH] Don't ask for password on SUDO for OPi5 images The photonvision dev tooling expects the 'pi' user to not ask for password on sudo when running `./gradlew deploy -PArchOverride=linuxarm64`, since this is the default on RPI OS. We should do the same here so that gradle behaves on Orange Pi 5 devices as well. --- install_opi5.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install_opi5.sh b/install_opi5.sh index 8c5f004..146ff29 100755 --- a/install_opi5.sh +++ b/install_opi5.sh @@ -8,6 +8,9 @@ else usermod -a -G sudo pi mkdir /home/pi chown -R pi /home/pi + + echo 'pi ALL=(ALL) NOPASSWD: ALL' | tee -a /etc/sudoers.d/010_pi-nopasswd >/dev/null + chmod 0440 /etc/sudoers.d/010_pi-nopasswd fi echo "pi:raspberry" | chpasswd