. ../../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:)
# 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
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