From: Christian Heller Date: Sun, 27 Oct 2024 04:27:08 +0000 (+0100) Subject: Improve Raspi setup. X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/static/%7B%7B%20web_path%20%7D%7D/%7B%7Bprefix%7D%7D/todo?a=commitdiff_plain;h=071988668166636b2e8a61fb7b4de83e38c4261c;p=config Improve Raspi setup. --- diff --git a/many_releases/aptmark/raspi b/many_releases/aptmark/raspi index 24b0d19..b630ef2 100644 --- a/many_releases/aptmark/raspi +++ b/many_releases/aptmark/raspi @@ -9,3 +9,4 @@ sway sudo vim ack +foot diff --git a/many_releases/home/user/.config/sway/config b/many_releases/home/user/.config/sway/config new file mode 100644 index 0000000..d0981b3 --- /dev/null +++ b/many_releases/home/user/.config/sway/config @@ -0,0 +1,3 @@ +include /etc/sway/config +output * background #551199 solid_color +bindsym $mod+Shift+p exec swaynag -t warning -m 'Really exit sway/end Wayland session?' -B 'Yes, exit sway' 'swaymsg exit' diff --git a/testing/scripts/setup_raspi.sh b/testing/scripts/setup_raspi.sh index 2ec0334..a4c2634 100755 --- a/testing/scripts/setup_raspi.sh +++ b/testing/scripts/setup_raspi.sh @@ -30,6 +30,11 @@ for root in "${PATH_MANY}" '..'; do done apt -y --purge autoremove +# just in case anything got overwritten … +for root in "${PATH_MANY}" '..'; do + copy_dirtree "${root}${PATH_REL_ETC}" '/etc' all raspi +done + # Ensure our desired locale is available. locale-gen @@ -42,11 +47,15 @@ for root in "${PATH_MANY}" '..'; do done adduser --disabled-password --gecos "" "${USERNAME}" usermod -a -G sudo "${USERNAME}" +for root in "${PATH_MANY}" '..'; do + copy_dirtree "${root}${PATH_REL_HOME}" "${PATH_USER_HOME}" all user +done cp -a "${PATH_REPO}" "${PATH_USER_HOME}" mkdir "${PATH_USER_SSH}" cp "${PATH_AUTHORIZED_KEYS}" "${PATH_USER_SSH}" -for path in "${PATH_USER_HOME}${PATH_REL_REPO}" "${PATH_USER_SSH}"; do - chown -R "${USERNAME}:${USERNAME}" "${path}" -done +chown -R "${PATH_USER_HOME}" passwd "${USERNAME}" rm "${PATH_AUTHORIZED_KEYS}" + +# # let us boot into Sway +# systemctl greetd enable