Add a script to configure raspian without raspi-config. This uses the "nonint" command on the raspi-config tool to set individual parameters without launching the entire GUI.

This commit is contained in:
mmcwilliams 2019-03-26 16:07:56 -04:00
parent 5bd524d51e
commit 52ace62fc6
1 changed files with 14 additions and 0 deletions

14
scripts/raspian.sh Normal file
View File

@ -0,0 +1,14 @@
#!/bin/sh
echo "Set new password"
sudo passwd
echo "Expanding filesystem to fill card"
sudo raspi-config nonint do_expand_rootfs
echo "Enabling SSH"
sudo raspi-config nonint do_ssh 1
echo "Setting GPU memory split to 16MB"
sudo raspi-config nonint do_memory_split 16
echo "Settiing hostname to 'intval3'"
sudo raspi-config nonint do_hostname intval3
echo "Rebooting in 10 seconds..."
sleep 10
sudo reboot now