Skip to content

Commit

Permalink
Don't ask for password on SUDO for OPi5 images (#21)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
stephenjust authored Jul 22, 2024
1 parent e76c6d8 commit c5a1e83
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions install_opi5.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit c5a1e83

Please sign in to comment.