From 52ace62fc6fbbe3c7402e5b158029df91b4df047 Mon Sep 17 00:00:00 2001 From: mmcwilliams Date: Tue, 26 Mar 2019 16:07:56 -0400 Subject: [PATCH] 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. --- scripts/raspian.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 scripts/raspian.sh diff --git a/scripts/raspian.sh b/scripts/raspian.sh new file mode 100644 index 0000000..9c216da --- /dev/null +++ b/scripts/raspian.sh @@ -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 \ No newline at end of file