Split installation process into multiple files

This commit is contained in:
Manuel Thalmann 2023-01-23 17:19:55 +01:00
parent 72582fd5e0
commit 22ae8d0adc
9 changed files with 103 additions and 69 deletions

View file

@ -1,82 +1,20 @@
#!/bin/bash #!/bin/bash
dir="${BASH_SOURCE%/*}"; dir="${BASH_SOURCE%/*}";
scriptRoot="$dir/../../scripts"; scriptRoot="$dir/../../scripts";
utilRoot="$scriptRoot/Scripts";
deviceRoot="$scriptRoot/Devices"; deviceRoot="$scriptRoot/Devices";
osRoot="$scriptRoot/OS";
softwareRoot="$scriptRoot/Software"; softwareRoot="$scriptRoot/Software";
configRoot="$scriptRoot/Config"; configRoot="$scriptRoot/Config";
cloudRoot="$configRoot/rclone"; cloudRoot="$configRoot/rclone";
# Set Hostname # Set Hostname
sudo hostnamectl set-hostname ManuSurface; sudo hostnamectl set-hostname ManuSurface;
source "$utilRoot/prepare.sh";
# Preparation source "$osRoot/PopOS/install.sh";
sudo apt update source "$deviceRoot/SurfaceBook2/Setup/install.sh";
sudo apt upgrade -y; source "$softwareRoot/Collections/school.sh";
sudo apt install dbus-x11; source "$configRoot/UserProfile/school.sh";
# Install gnome extensions
source "$configRoot/GnomeExtensions/install.sh";
# Sync clouds
source "$softwareRoot/rclone/install.sh";
{
gnome-terminal --tab --wait -- /bin/bash "$cloudRoot/NextcloudSync/install.sh";
# Install fonts
source "$configRoot/Fonts/NerdFont/install.sh";
source "$softwareRoot/Oh My Posh/install.sh";
} &
# Install surface-linux
source "$deviceRoot/Surface/LinuxSurface/install.sh";
source "$deviceRoot/SurfaceBook2/Camera/install.sh";
# source "$deviceRoot/SurfaceBook2/SecureBoot/install.sh";
# Install Brave
source "$softwareRoot/Brave/install-stable.sh";
source "$softwareRoot/Brave/install-beta.sh";
source "$softwareRoot/Brave/install-nightly.sh";
source "$softwareRoot/Brave/install-extensions.sh";
source "$softwareRoot/Google Chrome/install.sh";
# Install further software
source "$softwareRoot/logo-ls/install.sh";
source "$softwareRoot/VSCodium/install.sh";
source "$softwareRoot/Visual Studio Code/install.sh";
source "$softwareRoot/Node.js/install.sh";
source "$softwareRoot/Java/install.sh";
source "$softwareRoot/tea/install.sh";
source "$softwareRoot/Godot/install.sh";
source "$softwareRoot/Virtual Machine Manager/install.sh";
source "$softwareRoot/Woodpecker CLI/install.sh";
# Install other flatpaks
flatpak install -y flathub com.bitwarden.desktop;
flatpak install -y flathub com.github.xournalpp.xournalpp;
flatpak install -y flathub org.signal.Signal;
flatpak install -y flathub com.usebottles.bottles;
flatpak install -y flathub com.mattjakeman.ExtensionManager;
flatpak install -y flathub com.github.wwmm.easyeffects;
flatpak install -y flathub ch.threema.threema-web-desktop;
flatpak install -y flathub app.ytmdesktop.ytmdesktop;
flatpak install -y flathub com.github.tchx84.Flatseal;
# Microsoft Windows Fonts
source "$configRoot/Fonts/MicrosoftFonts/install.sh";
# Install JetBrains Stuff
source "$softwareRoot/JetBrains/install-toolbox.sh";
# Install equalizer # Install equalizer
source "$configRoot/EasyEffects/SurfaceBook2/install.sh"; source "$configRoot/EasyEffects/SurfaceBook2/install.sh";
# Git config
git config --global user.name "Manuel Thalmann";
git config --global user.email "m@nuth.ch";
# Install General Packages from APT
source "$softwareRoot/common-apt/install.sh";
# Troll Stuff
source "$configRoot/git/git-auf-deutsch/install.sh";

View file

@ -0,0 +1,23 @@
#!/bin/bash
dir="${BASH_SOURCE%/*}";
scriptRoot="$dir/../..";
softwareRoot="$scriptRoot/Software";
configRoot="$scriptRoot/Config";
# Sync clouds
{
gnome-terminal --tab --wait -- /bin/bash "$cloudRoot/NextcloudSync/install.sh";
# Install fonts
source "$configRoot/Fonts/NerdFont/install.sh";
source "$softwareRoot/Oh My Posh/install.sh";
} &
# Microsoft Windows Fonts
source "$configRoot/Fonts/MicrosoftFonts/install.sh";
# Git Config
source "$configRoot/git/setup/install.sh";
# Troll Stuff
source "$configRoot/git/git-auf-deutsch/install.sh";

View file

@ -0,0 +1,6 @@
#!/bin/bash
# Install JetBrains Stuff
dir="${BASH_SOURCE%/*}";
softwareRoot="$dir/../../Software";
source "$dir/personal.sh";
source "$softwareRoot/JetBrains/install-toolbox.sh";

View file

@ -0,0 +1,3 @@
#!/bin/bash
git config --global user.name "Manuel Thalmann";
git config --global user.email "m@nuth.ch";

View file

@ -0,0 +1,8 @@
#!/bin/bash
dir="${BASH_SOURCE%/*}";
deviceRoot="$dir/../..";
# Install surface-linux
source "$deviceRoot/Surface/LinuxSurface/install.sh";
source "$deviceRoot/SurfaceBook2/Camera/install.sh";
# source "$deviceRoot/SurfaceBook2/SecureBoot/install.sh";

3
scripts/OS/PopOS/install.sh Executable file
View file

@ -0,0 +1,3 @@
#!/bin/bash
dir="${BASH_SOURCE%/*}";
source "$dir/../../Config/GnomeExtensions/install.sh";

4
scripts/Scripts/prepare.sh Executable file
View file

@ -0,0 +1,4 @@
#!/bin/bash
sudo apt update
sudo apt upgrade -y;
sudo apt install dbus-x11;

View file

@ -0,0 +1,40 @@
#!/bin/bash
dir="${BASH_SOURCE%/*}";
scriptRoot="$dir/../..";
utilRoot="$scriptRoot/Scripts";
deviceRoot="$scriptRoot/Devices";
softwareRoot="$scriptRoot/Software";
configRoot="$scriptRoot/Config";
cloudRoot="$configRoot/rclone";
source "$softwareRoot/rclone/install.sh";
# Install Brave
source "$softwareRoot/Brave/install-stable.sh";
source "$softwareRoot/Brave/install-beta.sh";
source "$softwareRoot/Brave/install-nightly.sh";
source "$softwareRoot/Brave/install-extensions.sh";
source "$softwareRoot/Google Chrome/install.sh";
# Install further software
source "$softwareRoot/logo-ls/install.sh";
source "$softwareRoot/VSCodium/install.sh";
source "$softwareRoot/Visual Studio Code/install.sh";
source "$softwareRoot/Node.js/install.sh";
source "$softwareRoot/tea/install.sh";
source "$softwareRoot/Godot/install.sh";
source "$softwareRoot/Virtual Machine Manager/install.sh";
source "$softwareRoot/Woodpecker CLI/install.sh";
# Install General Packages from APT
source "$softwareRoot/common-apt/install.sh";
# Install other flatpaks
flatpak install -y flathub com.bitwarden.desktop;
flatpak install -y flathub org.signal.Signal;
flatpak install -y flathub com.usebottles.bottles;
flatpak install -y flathub com.mattjakeman.ExtensionManager;
flatpak install -y flathub com.github.wwmm.easyeffects;
flatpak install -y flathub ch.threema.threema-web-desktop;
flatpak install -y flathub app.ytmdesktop.ytmdesktop;
flatpak install -y flathub com.github.tchx84.Flatseal;

View file

@ -0,0 +1,9 @@
#!/bin/bash
dir="${BASH_SOURCE%/*}";
softwareRoot="$dir/..";
source "$dir/personal.sh";
source "$softwareRoot/Java/install.sh";
# Install other flatpaks
latpak install -y flathub com.github.xournalpp.xournalpp;