Compare commits

...

7 Commits

Author SHA1 Message Date
b5f19d4913 Fixed for 26.06 2026-06-02 16:54:20 +02:00
264bbc6f3c undo auto password 2026-05-05 16:57:06 +02:00
eded98b98f Added auto athentication 2026-05-05 14:30:37 +02:00
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
97c9d5d4a2 Output fixes 2026-05-04 12:36:10 +02:00
fcbe91bd6b Paths abolut, remove XFCE import
made all paths to user /csr/ absolute and removed
2026-04-30 14:24:37 +02:00
4 changed files with 82 additions and 33 deletions

View File

@@ -1,44 +1,48 @@
#! /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" >&2) # exec > "$LOG" 2> >(tee -a "$LOG" >&3)
echo "Update" >&3 echo "Update" >&3
sudo apt-get update -y sudo apt-get update -y -qq 2>&1 > /dev/null
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 install cat install.list | xargs sudo apt-get install -y -qq 2>&1 > /dev/null
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 purge cat uninstall.list | xargs sudo apt-get purge -y -qq 2>&1 > /dev/null
clear
# download additional packages # download additional packages
echo "Downloading extra packages from Download.list" >&3 echo "Downloading extra packages from Download.list" >&3
cat download.list | xargs sudo wget -nv cat download.list | xargs sudo wget -nv 3>&1
# install the packages # install the packages
clear
echo "Installing all .deb files" >&3 echo "Installing all .deb files" >&3
sudo apt-get install -y ./*.deb sudo apt-get -y -qq install ./*.deb 2>&1 > /dev/null
# set up flatpack clear
echo "Setting up flatpack" >&3 # set up flatpack - REMOVED
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo # echo "Setting up flatpack" >&3
# flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
# 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 install $(check-language-support -l $l) sudo apt-get -y -qq $(check-language-support -l $l) 2>&1 > /dev/null
done done
# import panel settings from file # quit rustdesk and stop it from starting on boot
echo "setting up desktop UI" >&3 sudo killall rustdesk
xfce4-panel-profiles load ./default_panel.tar.bz2 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 update -y sudo apt-get update -y -qq 2>&1 > /dev/null
sudo apt-get full-upgrade -y sudo apt-get full-upgrade -y -qq 2>&1 > /dev/null
sudo apt-get autoremove -y sudo apt-get clean -y -qq 2>&1 > /dev/null
sudo apt-get clean -y clear
sudo apt-get autoclean -y
#set nomacs as default #set nomacs as default
echo "setting default programs" >&3 echo "setting default programs" >&3
FILE="/usr/share/applications/mimeinfo.cache" FILE="/usr/share/applications/mimeinfo.cache"
@@ -47,17 +51,59 @@ for type in png jpg jpeg gif; do
sudo sed -i "s|^\(image/${type}=\).*|\1${FILETYPES}|" "$FILE" sudo sed -i "s|^\(image/${type}=\).*|\1${FILETYPES}|" "$FILE"
done done
# copy content of desktop_files to desktop # copy content of desktop_files to desktop
DESKTOP_PATH=$(xdg-user-dir DESKTOP)
sudo cp -r desktop_files/. $DESKTOP_PATH/ echo "Copying desktop files" >&3
cp -r desktop_files/. /home/$LOG_IN_USER/Schreibtisch/
sudo cp -a settings_fodlers /home/$LOG_IN_USER/
sudo chwon -R "$LOG_IN_USER:$LOG_IN_USER" /home/$LOG_IN_USER/.*
# import panel settings
#echo "setting up desktop UI" >&3
#xfce4-panel-profiles load ./default_panel.tar.bz2
#clear
# set up firefox
echo "Install UBlock" >&3
firefox https://addons.mozilla.org/de/firefox/addon/ublock-origin/ >/dev/null 2>&1 & disown
read -p "Continue with Enter" >&3
clear
echo "Set default Browser, Start page & Search engine" >&3
firefox about:preferences >/dev/null 2>&1 & disown
read -p "Continue with Enter" >&3
clear
echo "Create Chrome .desktop starter" >&3
read -p "Continue with Enter" >&3
clear
echo "Set up Click per mousepad" >&3
xfce4-mouse-settings
read -p "Continue with Enter" >&3
clear
echo "Set Font size to 11" >&3
xfwm4-settings
read -p "Continue with Enter" >&3
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 cp -r /home/$LOG_IN_USER/.config/* /etc/skel/ #sudo mkdir /etc/skel/Schreibtisch
sudo cp -r /home/$LOG_IN_USER/.local/* /etc/skel/ #sudo mkdir /etc/skel/.config
sudo mkdir /etc/skel/Schreibtisch #sudo mkdir /etc/skel/.local
sudo cp -r $DESKTOP_PATH/* /etc/skel/Schreibtisch/ #sudo cp -r /home/csr/.config/* /etc/skel/.config/
#sudo cp -r /home/csr/.local/* /etc/skel/.local/
#sudo cp -r /home/csr/Schreibtisch/* /etc/skel/Schreibtisch/
sudo cp -a /home/$LOG_IN_USER/. /etc/skel/
sudo chown -R root:root /etc/skel sudo chown -R root:root /etc/skel
read -n 1 -s -r -p "Fertig, schließen mit Tastendruck\n" >&3 # 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
sudo cp /usr/local/bin/csr_info/CSR_INFOS.desktop /home/$LOG_IN_USER/Scheibtisch/
clear
read -n 1 -s -r -p "Fertig, schließen mit Tastendruck" >&3

View File

@@ -7,5 +7,7 @@ bleachbit
chromium-browser chromium-browser
hplip-gui hplip-gui
deja-dup deja-dup
flatpak gnome-snapshot
gnome-software-plugin-flatpak gparted
flameshot
broadcom-sta-dkms

View File

@@ -1,2 +1,3 @@
xfce4-taskmanager xfce4-taskmanager
ristretto ristretto
parole