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:
parent
5bd524d51e
commit
52ace62fc6
|
@ -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
|
Loading…
Reference in New Issue