home · contact · privacy
Improve Raspi setup.
authorChristian Heller <c.heller@plomlompom.de>
Sun, 27 Oct 2024 04:27:08 +0000 (05:27 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Sun, 27 Oct 2024 04:27:08 +0000 (05:27 +0100)
many_releases/aptmark/raspi
many_releases/home/user/.config/sway/config [new file with mode: 0644]
testing/scripts/setup_raspi.sh

index 24b0d19acd40ed98ed6fa285785098e3b763d853..b630ef2d9ed9ad06b7d650a56d89f3d50d60e149 100644 (file)
@@ -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 (file)
index 0000000..d0981b3
--- /dev/null
@@ -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'
index 2ec0334f47ab8c2f34c419b8b77fe4f3444cb8a4..a4c2634fdc634a13894467e5cdc638688a0ea6ca 100755 (executable)
@@ -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