home · contact · privacy
Improve Raspi setup.
authorChristian Heller <c.heller@plomlompom.de>
Tue, 29 Oct 2024 04:13:44 +0000 (05:13 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Tue, 29 Oct 2024 04:13:44 +0000 (05:13 +0100)
many_releases/aptmark/raspi
many_releases/home/raspi/.config/mpv/mpv.conf [new file with mode: 0644]
many_releases/home/raspi/.config/pulse/default.pa [new file with mode: 0644]
testing/scripts/setup_raspi.sh

index b630ef2d9ed9ad06b7d650a56d89f3d50d60e149..79eb6837d79714c7970e3fbad54b285d35d75dbd 100644 (file)
@@ -10,3 +10,6 @@ sudo
 vim
 ack
 foot
+mpv
+# for sound
+pulseaudio
diff --git a/many_releases/home/raspi/.config/mpv/mpv.conf b/many_releases/home/raspi/.config/mpv/mpv.conf
new file mode 100644 (file)
index 0000000..3c25dcd
--- /dev/null
@@ -0,0 +1 @@
+vo=gpu-next
diff --git a/many_releases/home/raspi/.config/pulse/default.pa b/many_releases/home/raspi/.config/pulse/default.pa
new file mode 100644 (file)
index 0000000..0b25b91
--- /dev/null
@@ -0,0 +1,3 @@
+.include /etc/pulse/default.pa
+set-default-sink alsa_output.platform-fef05700.hdmi.hdmi-stereo
+set-sink-volume @DEFAULT_SINK@ 50%
index a4c2634fdc634a13894467e5cdc638688a0ea6ca..a4ff538dad4b672b5f9761bb62695ad5b01f0d40 100755 (executable)
@@ -4,8 +4,6 @@ set -x
 . ../../constants.sh
 . "${PATH_MANY_MISC}"
 
-# ensure we got a proper IP address
-dhclient
 # ensure we can log in
 # (alternatively, or preceding this to reduce non-remote typing, TEMPORARILY
 # (!) set password login:)
@@ -41,6 +39,9 @@ locale-gen
 # Set Berlin localtime.
 ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime
 
+# so Sway won't complain about failing to access non-existant background image file
+sed -i '/^output \* bg/ s/^/#/' /etc/sway/config
+
 # Set up users and their environments.
 for root in "${PATH_MANY}" '..'; do
     copy_dirtree "${root}${PATH_REL_HOME}" '/root' all root
@@ -48,14 +49,11 @@ 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 
+    copy_dirtree "${root}${PATH_REL_HOME}" "${PATH_USER_HOME}" all user raspi 
 done
 cp -a "${PATH_REPO}" "${PATH_USER_HOME}" 
 mkdir "${PATH_USER_SSH}"
 cp "${PATH_AUTHORIZED_KEYS}" "${PATH_USER_SSH}"
-chown -R "${PATH_USER_HOME}"
-passwd "${USERNAME}" 
+chown -R "${USERNAME}:${USERNAME}" "${PATH_USER_HOME}"
+passwd "${USERNAME}"
 rm "${PATH_AUTHORIZED_KEYS}"
-
-# # let us boot into Sway
-# systemctl greetd enable