Add preseed hosting

This commit is contained in:
Elizabeth Cray committed 2026-10-23 07:54:54 -04:00
1 parent ad7b7077bb
commit 919deeb191
1 file changed
+4 -1
+4 -1
View File
@@ -39,7 +39,7 @@ usermod -aG classroom hacdc
useradd -m -s /usr/bin/zsh -G dialout,cdrom,floppy,audio,video,wireshark,classroom guest
cp /home/hacdc/.zshrc /home/guest/.zshrc
chown guest:guest /home/guest/.zshrc
# TODO: SET GUEST PW
sudo -u hacdc curl -fsSL https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.8/install.sh | bash
sudo -u hacdc curl -fsSL https://pyenv.run | bash
@@ -81,9 +81,12 @@ fi
# Set login wallpaper
cp ${HDOS_ROOT}/dotfiles/htown.png /usr/share/backgrounds/htown.png
chmod 755 /usr/share/backgrounds/htown.png
# TODO: Change this to lightdm
sed -i 's/^background=.*$/background=\/usr\/share\/backgrounds\/htown.png/' /usr/share/sddm/themes/*/theme.conf.user
rm /usr/share/backgrounds/kali-16x9/default
ln -s /usr/share/backgrounds/htown.png /usr/share/backgrounds/kali-16x9/default
# Didn't change it for hacdc login
# worked for guest
mksquashfs /home/guest ${HDOS_ROOT}/guest.sqfs
cp ${HDOS_ROOT}/scripts/restore-home /usr/sbin/restore-home