From 9c8e0ab7417b8cd10da5e91d554521ec79dca04b Mon Sep 17 00:00:00 2001 From: Martin Winkler Date: Mon, 14 Mar 2022 21:46:34 +0100 Subject: [PATCH] raspberry - add first setup notes --- seqs/raspberry.sh | 43 +++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 41 insertions(+), 2 deletions(-) diff --git a/seqs/raspberry.sh b/seqs/raspberry.sh index b8b894e..e2525f4 100755 --- a/seqs/raspberry.sh +++ b/seqs/raspberry.sh @@ -34,6 +34,8 @@ step_config() { echoseq " Detected OS: $osName $distName" echoseq " Requested CPU Architecture: $PIARCH" + + return 0 } PIARCH=armhf @@ -570,10 +572,47 @@ tvserviceOffCmd="${tvserviceBin} -o'" checkBootConfig() { [ -z "$1" ] && return 1 - local re_check="^[[:space:]]*[^#]*${1}[[:space:]]*=[[:space:]]*$2" + local re_check="^[[:blank:]]*[^#]*${1}[[:blank:]]*=[[:blank:]]*$2" grep -rqE "$re_check" "$RPI_BOOT_CONFIG" return $? } -VERSION_SEQREV=14 +step_100_alias() { ALIAS="notes"; } +step_100() { + outColor green + cat < System Options)) +* Configure Timezone (\`raspi-confg\` -> Localisation Options) +* Set GPU memory (\`raspi-config\` -> Performance Options) +* Configure swap partition + + [/etc/fstab] +> \`PARTUUID=******-03 none swap sw 0 0\` + + \`$SEQ_NAME disable_swap\` + +* Update system + + \`apt update && apt dist-upgrade\` + +* Configure own NTP server + + [/etc/systemd/timesyncd.conf] +> NTP= + + \`system systemd-timesyncd restart\` + +* Configure vim to remember last position in a file + + Uncomment the following in [/etc/vim/vimrc] +> \`au BufReadPost ...\` + +NOTES_EOF +} + +VERSION_SEQREV=15 . /usr/local/bin/sequencer.sh