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
+1
-2
@@ -24,6 +24,7 @@ dos2unix
|
|||||||
dvb-apps
|
dvb-apps
|
||||||
exiftool
|
exiftool
|
||||||
ffmpeg
|
ffmpeg
|
||||||
|
flatpak
|
||||||
firefox-esr
|
firefox-esr
|
||||||
flex
|
flex
|
||||||
fortune
|
fortune
|
||||||
@@ -127,11 +128,9 @@ welle.io
|
|||||||
wget
|
wget
|
||||||
wireshark
|
wireshark
|
||||||
wireshark-doc
|
wireshark-doc
|
||||||
wireshark-gtk
|
|
||||||
x11-apps
|
x11-apps
|
||||||
x11-utils
|
x11-utils
|
||||||
x264
|
x264
|
||||||
xcowsay
|
xcowsay
|
||||||
xsol
|
xsol
|
||||||
yasm
|
yasm
|
||||||
yt-dlp
|
|
||||||
@@ -7,7 +7,7 @@ io.github.ungoogled_software.ungoogled_chromium
|
|||||||
io.gitlab.librewolf-community
|
io.gitlab.librewolf-community
|
||||||
org.blender.Blender
|
org.blender.Blender
|
||||||
org.darktable.Darktable
|
org.darktable.Darktable
|
||||||
org.freecad.FreeCAD
|
flathub-beta org.freecad.FreeCAD
|
||||||
org.qgis.qgis
|
org.qgis.qgis
|
||||||
org.videolan.VLC
|
org.videolan.VLC
|
||||||
com.vscodium.codium-insiders
|
com.vscodium.codium-insiders
|
||||||
+16
-8
@@ -14,22 +14,19 @@ if [ "$(id -u)" -ne 0 ]; then
|
|||||||
echo "This script must be run as root"
|
echo "This script must be run as root"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
export NEEDRESTART_MODE=a
|
||||||
apt install git sudo curl wget zsh -yqq
|
apt install git sudo curl wget zsh -yqq
|
||||||
|
|
||||||
git clone https://git.corrupt.link/liz/hdos.git ${HDOS_ROOT}
|
git clone https://git.corrupt.link/liz/hdos.git ${HDOS_ROOT}
|
||||||
chmod -R 766 ${HDOS_ROOT}
|
chmod -R 766 ${HDOS_ROOT}
|
||||||
|
chmod +x ${HDOS_ROOT}/scripts/*
|
||||||
|
|
||||||
apt update
|
apt update
|
||||||
|
|
||||||
apt full-upgrade -yqq
|
apt full-upgrade -yqq
|
||||||
|
|
||||||
INSTALLED=`dpkg --get-selections | grep -e " install$" | sed -e 's/\t\+install//'`
|
PACKAGE_LIST=$(cat ${HDOS_ROOT}/lists/apt-packages)
|
||||||
while read PACKAGE; do
|
apt-get install -yqm "$PACKAGE_LIST"
|
||||||
if ! echo "$INSTALLED" | grep -q "^$PACKAGE$"; then
|
|
||||||
apt install -yqq "$PACKAGE"
|
|
||||||
fi
|
|
||||||
done < ${HDOS_ROOT}/lists/apt-packages
|
|
||||||
|
|
||||||
apt autoremove -y
|
apt autoremove -y
|
||||||
|
|
||||||
@@ -49,6 +46,16 @@ sudo -u guest ${HDOS_ROOT}/scripts/pyenv
|
|||||||
# Generate GPG framework
|
# Generate GPG framework
|
||||||
sudo -u hacdc gpg --list-keys
|
sudo -u hacdc gpg --list-keys
|
||||||
sudo -u guest 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
|
# Setup Shared Directory
|
||||||
SHARED_DIR=/mnt/gibson
|
SHARED_DIR=/mnt/gibson
|
||||||
@@ -60,6 +67,7 @@ if [ ! -d ${SHARED_DIR} ]; then
|
|||||||
chmod 766 ${SHARED_DIR}
|
chmod 766 ${SHARED_DIR}
|
||||||
sed -i "s/password=/password=${GIBSON_PASS}/" /etc/gibson
|
sed -i "s/password=/password=${GIBSON_PASS}/" /etc/gibson
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
|
mkdir -p /home/guest/Desktop
|
||||||
ln -s ${SHARED_DIR} /home/hacdc/Desktop/gibson
|
ln -s ${SHARED_DIR} /home/hacdc/Desktop/gibson
|
||||||
ln -s ${SHARED_DIR} /home/guest/Desktop/gibson
|
ln -s ${SHARED_DIR} /home/guest/Desktop/gibson
|
||||||
chown guest:guest /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
|
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
|
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}/scripts/restore-home /usr/sbin/restore-home
|
||||||
cp ${HDOS_ROOT}/dotfiles/guest-restore.service /etc/systemd/system/guest-restore.service
|
cp ${HDOS_ROOT}/dotfiles/guest-restore.service /etc/systemd/system/guest-restore.service
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
|
|||||||
Reference in new issue
Block a user