From ad7b7077bbcc92954193f43ffc0eea412e6f9193 Mon Sep 17 00:00:00 2001 From: Elizabeth Cray Date: Thu, 22 Oct 2026 20:17:17 -0400 Subject: [PATCH] Enable SSH + Wallpapers --- scripts/codium | 5 ----- scripts/install.sh | 16 ++++++++++++---- scripts/nvm | 1 - scripts/pyenv | 1 - 4 files changed, 12 insertions(+), 11 deletions(-) delete mode 100644 scripts/codium delete mode 100644 scripts/nvm delete mode 100644 scripts/pyenv diff --git a/scripts/codium b/scripts/codium deleted file mode 100644 index 7bc2ca4..0000000 --- a/scripts/codium +++ /dev/null @@ -1,5 +0,0 @@ -# VSCodium -wget -qO - https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/master/pub.gpg | gpg --dearmor | dd of=/usr/share/keyrings/vscodium-archive-keyring.gpg -echo 'deb [ signed-by=/usr/share/keyrings/vscodium-archive-keyring.gpg ] https://download.vscodium.com/debs vscodium main' | tee /etc/apt/sources.list.d/vscodium.list -apt update -apt install codium -y diff --git a/scripts/install.sh b/scripts/install.sh index 4a6d555..508cfa5 100644 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -14,7 +14,10 @@ if [ "$(id -u)" -ne 0 ]; then echo "This script must be run as root" exit 1 fi + +export DEBIAN_FRONTEND=noninteractive export NEEDRESTART_MODE=a + apt install git sudo curl wget zsh -yqq git clone https://git.corrupt.link/liz/hdos.git ${HDOS_ROOT} @@ -37,11 +40,11 @@ useradd -m -s /usr/bin/zsh -G dialout,cdrom,floppy,audio,video,wireshark,classro cp /home/hacdc/.zshrc /home/guest/.zshrc chown guest:guest /home/guest/.zshrc -sudo -u hacdc ${HDOS_ROOT}/scripts/nvm -sudo -u hacdc ${HDOS_ROOT}/scripts/pyenv +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 -sudo -u guest ${HDOS_ROOT}/scripts/nvm -sudo -u guest ${HDOS_ROOT}/scripts/pyenv +sudo -u guest curl -fsSL https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.8/install.sh | bash +sudo -u guest curl -fsSL https://pyenv.run | bash # Generate GPG framework sudo -u hacdc gpg --list-keys @@ -77,7 +80,10 @@ fi # Set login wallpaper cp ${HDOS_ROOT}/dotfiles/htown.png /usr/share/backgrounds/htown.png +chmod 755 /usr/share/backgrounds/htown.png 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 mksquashfs /home/guest ${HDOS_ROOT}/guest.sqfs cp ${HDOS_ROOT}/scripts/restore-home /usr/sbin/restore-home @@ -85,4 +91,6 @@ cp ${HDOS_ROOT}/dotfiles/guest-restore.service /etc/systemd/system/guest-restore systemctl daemon-reload systemctl enable guest-restore.service +systemctl enable ssh +reboot diff --git a/scripts/nvm b/scripts/nvm deleted file mode 100644 index f7dcb62..0000000 --- a/scripts/nvm +++ /dev/null @@ -1 +0,0 @@ -curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash diff --git a/scripts/pyenv b/scripts/pyenv deleted file mode 100644 index c1fdb62..0000000 --- a/scripts/pyenv +++ /dev/null @@ -1 +0,0 @@ -curl https://pyenv.run | bash