raspberry - add first setup notes
This commit is contained in:
@@ -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 <<NOTES_EOF
|
||||
# Initial configuration steps
|
||||
|
||||
* Set password for pi (\`passwd\`)
|
||||
* Add [\$HOME/.ssh/authorized_keys]
|
||||
* Set hostname (\`raspi-config\` -> 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=<NTP server IP>
|
||||
|
||||
\`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
|
||||
|
Reference in New Issue
Block a user