Fixed issues from first test run
This commit is contained in:
1 parent
70dcc63027
commit
bde5e80378
3 files changed
+18
-11
No files matched your search
+16
-8
@@ -14,22 +14,19 @@ if [ "$(id -u)" -ne 0 ]; then
|
||||
echo "This script must be run as root"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
export NEEDRESTART_MODE=a
|
||||
apt install git sudo curl wget zsh -yqq
|
||||
|
||||
git clone https://git.corrupt.link/liz/hdos.git ${HDOS_ROOT}
|
||||
chmod -R 766 ${HDOS_ROOT}
|
||||
chmod +x ${HDOS_ROOT}/scripts/*
|
||||
|
||||
apt update
|
||||
|
||||
apt full-upgrade -yqq
|
||||
|
||||
INSTALLED=`dpkg --get-selections | grep -e " install$" | sed -e 's/\t\+install//'`
|
||||
while read PACKAGE; do
|
||||
if ! echo "$INSTALLED" | grep -q "^$PACKAGE$"; then
|
||||
apt install -yqq "$PACKAGE"
|
||||
fi
|
||||
done < ${HDOS_ROOT}/lists/apt-packages
|
||||
PACKAGE_LIST=$(cat ${HDOS_ROOT}/lists/apt-packages)
|
||||
apt-get install -yqm "$PACKAGE_LIST"
|
||||
|
||||
apt autoremove -y
|
||||
|
||||
@@ -49,6 +46,16 @@ sudo -u guest ${HDOS_ROOT}/scripts/pyenv
|
||||
# Generate GPG framework
|
||||
sudo -u hacdc gpg --list-keys
|
||||
sudo -u guest gpg --list-keys
|
||||
gpg --list-keys
|
||||
|
||||
# Setup Flatpak
|
||||
flatpak remote-add --if-not-exists flathub-beta https://flathub.org/beta-repo/flathub-beta.flatpakrepo
|
||||
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
||||
flatpak update -y
|
||||
|
||||
while read P; do
|
||||
flatpak install -y --noninteractive "$P"
|
||||
done < ${HDOS_ROOT}/lists/flatpak-packages
|
||||
|
||||
# Setup Shared Directory
|
||||
SHARED_DIR=/mnt/gibson
|
||||
@@ -60,6 +67,7 @@ if [ ! -d ${SHARED_DIR} ]; then
|
||||
chmod 766 ${SHARED_DIR}
|
||||
sed -i "s/password=/password=${GIBSON_PASS}/" /etc/gibson
|
||||
systemctl daemon-reload
|
||||
mkdir -p /home/guest/Desktop
|
||||
ln -s ${SHARED_DIR} /home/hacdc/Desktop/gibson
|
||||
ln -s ${SHARED_DIR} /home/guest/Desktop/gibson
|
||||
chown guest:guest /home/guest/Desktop/gibson
|
||||
@@ -71,7 +79,7 @@ fi
|
||||
cp ${HDOS_ROOT}/dotfiles/htown.png /usr/share/backgrounds/htown.png
|
||||
sed -i 's/^background=.*$/background=\/usr\/share\/backgrounds\/htown.png/' /usr/share/sddm/themes/*/theme.conf.user
|
||||
|
||||
mksquashfs /home/guest ${HDOS_ROOT}/guest.sqfs --noappend
|
||||
mksquashfs /home/guest ${HDOS_ROOT}/guest.sqfs
|
||||
cp ${HDOS_ROOT}/scripts/restore-home /usr/sbin/restore-home
|
||||
cp ${HDOS_ROOT}/dotfiles/guest-restore.service /etc/systemd/system/guest-restore.service
|
||||
systemctl daemon-reload
|
||||
|
||||
Reference in new issue
Block a user