Enable SSH + Wallpapers
This commit is contained in:
1 parent
bde5e80378
commit
ad7b7077bb
4 files changed
+12
-11
No files matched your search
+12
-4
@@ -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
|
||||
Reference in new issue
Block a user