Compare commits

...

2 Commits

Author SHA1 Message Date
733ac0eedd Fixed output, added test download
download for the device test from git added
2026-05-05 14:03:21 +02:00
08f15b7444 Missing programms and Keyboard layout
added missing keyboar dlayout promt
added cheese and Gparted in install.list
2026-05-04 13:12:18 +02:00
2 changed files with 26 additions and 27 deletions

View File

@@ -1,27 +1,20 @@
#! /bin/bash #! /bin/bash
# write out to a file and error to different one
LOG="install.log"
LOG_IN_USER=$(who | awk 'NR==1{print $1;}') LOG_IN_USER=$(who | awk 'NR==1{print $1;}')
exec 3>&1 exec 3>&1
# exec > "$LOG" 2> >(tee -a "$LOG" >&3) # exec > "$LOG" 2> >(tee -a "$LOG" >&3)
echo "Update" >&3 echo "Update" >&3
sudo apt-get -y -qq \ sudo apt-get update -y -qq 2>&1 > /dev/null
-o Dpkg::Progress-Fancy=0 \
-o APT::Color=0 update
clear clear
# install all programms from the install.list # install all programms from the install.list
echo "Installing install.list" >&3 echo "Installing install.list" >&3
cat install.list | xargs sudo apt-get -y -qq \ cat install.list | xargs sudo apt-get install -y -qq 2>&1 > /dev/null
-o Dpkg::Progress-Fancy=0 \
-o APT::Color=0 install
clear clear
# uninstal all programms from the list # uninstal all programms from the list
echo "Uninstalling uninstall.list" >&3 echo "Uninstalling uninstall.list" >&3
cat uninstall.list | xargs sudo apt-get -y -qq \ cat uninstall.list | xargs sudo apt-get purge -y -qq 2>&1 > /dev/null
-o Dpkg::Progress-Fancy=0 \
-o APT::Color=0 purge
clear clear
# download additional packages # download additional packages
echo "Downloading extra packages from Download.list" >&3 echo "Downloading extra packages from Download.list" >&3
@@ -29,9 +22,7 @@ cat download.list | xargs sudo wget -nv 3>&1
# install the packages # install the packages
clear clear
echo "Installing all .deb files" >&3 echo "Installing all .deb files" >&3
sudo apt-get -y -qq \ sudo apt-get -y -qq install ./*.deb 2>&1 > /dev/null
-o Dpkg::Progress-Fancy=0 \
-o APT::Color=0 install ./*.deb
clear clear
# set up flatpack # set up flatpack
echo "Setting up flatpack" >&3 echo "Setting up flatpack" >&3
@@ -40,22 +31,17 @@ clear
# install languages by ISO 639-1 short # install languages by ISO 639-1 short
echo "Installing additional languages" >&3 echo "Installing additional languages" >&3
for l in en uk ru ar; do for l in en uk ru ar; do
sudo apt-get -y -qq \ sudo apt-get -y -qq $(check-language-support -l $l) 2>&1 > /dev/null
-o Dpkg::Progress-Fancy=0 \
-o APT::Color=0 install $(check-language-support -l $l)
done done
# quit rustdesk and stop it from starting on boot
sudo killall rustdesk sudo killall rustdesk
sudo systemctl disable rustdesk.service
sudo systemctl disable rustdesk
# clean the system # clean the system
echo "Update, Upgrade and cleaning" >&3 echo "Update, Upgrade and cleaning" >&3
sudo apt-get -y -qq \ sudo apt-get update -y -qq 2>&1 > /dev/null
-o Dpkg::Progress-Fancy=0 \ sudo apt-get full-upgrade -y -qq 2>&1 > /dev/null
-o APT::Color=0 update sudo apt-get clean -y -qq 2>&1 > /dev/null
sudo apt-get -y -qq \
-o Dpkg::Progress-Fancy=0 \
-o APT::Color=0 full-upgrade
sudo apt-get -y -qq \
-o Dpkg::Progress-Fancy=0 \
-o APT::Color=0 clean
clear clear
#set nomacs as default #set nomacs as default
echo "setting default programs" >&3 echo "setting default programs" >&3
@@ -94,6 +80,11 @@ xfwm4-settings
read -p "Continue with Enter" >&3 read -p "Continue with Enter" >&3
clear clear
echo "Add Keyboard layouts and shortcut" >&3
xfce4-keyboard-settings
read -p "Continue with Enter" >&3
clear
# create skel for new user UI # create skel for new user UI
echo "Setting up skel" >&3 echo "Setting up skel" >&3
sudo mkdir /etc/skel/Schreibtisch sudo mkdir /etc/skel/Schreibtisch
@@ -105,4 +96,11 @@ sudo cp -r /home/csr/Schreibtisch/* /etc/skel/Schreibtisch/
sudo chown -R root:root /etc/skel sudo chown -R root:root /etc/skel
# set up autotest
echo "Downloading test from git..."
sudo wget -P /usr/local/bin/csr_info/ https://git.computerspende-regensburg.de/lucas.lenninger/csr_setup/archive/main.zip 2>&1 > /dev/null
sudo unzip -j /usr/local/bin/csr_info/main.zip -d /usr/local/bin/csr_info/ 2>&1 > /dev/null
cp /usr/local/bin/csr_info/CSR_INFOS.desktop ~/Scheibtisch
clear
read -n 1 -s -r -p "Fertig, schließen mit Tastendruck" >&3 read -n 1 -s -r -p "Fertig, schließen mit Tastendruck" >&3

View File

@@ -9,4 +9,5 @@ hplip-gui
deja-dup deja-dup
flatpak flatpak
gnome-software-plugin-flatpak gnome-software-plugin-flatpak
cheese cheese
gparted