Add script for installing tea

This commit is contained in:
Manuel Thalmann 2022-11-12 13:18:28 +01:00
parent bc753c70a6
commit 5e3284ea58
2 changed files with 27 additions and 8 deletions

View file

@ -1,5 +1,7 @@
#!/bin/bash #!/bin/bash
dir="${BASH_SOURCE%/*}" dir="${BASH_SOURCE%/*}"
popOSRoot="$dir/../scripts/PopOS"
softwareRoot="$popOSRoot/software"
# Set Hostname # Set Hostname
sudo hostnamectl set-hostname ManuSurface sudo hostnamectl set-hostname ManuSurface
@ -9,18 +11,19 @@ sudo apt update
sudo apt upgrade sudo apt upgrade
# Install surface-linux and Secure Boot # Install surface-linux and Secure Boot
source "$dir/../scripts/PopOS/linux-surface.sh" source "$popOSRoot/linux-surface.sh"
source "$dir/../scripts/PopOS/secure-boot.sh" source "$popOSRoot/secure-boot.sh"
# Install Brave # Install Brave
source "$dir/../scripts/PopOS/softwate/brave.sh" source "$softwareRoot/brave.sh"
source "$dir/../scripts/PopOS/software/brave-extensions.sh" source "$softwareRoot/brave-extensions.sh"
source "$dir/../scripts/PopOS/softwate/brave-beta.sh" source "$softwareRoot/brave-beta.sh"
source "$dir/../scripts/PopOS/softwate/brave-nightly.sh" source "$softwareRoot/brave-nightly.sh"
# Install further software # Install further software
source "$dir/../scripts/PopOS/softwate/codium.sh" source "$softwareRoot/codium.sh"
source "$dir/../scripts/PopOS/softwate/code.sh" source "$softwareRoot/code.sh"
source "$softwareRoot/tea.sh"
# Install other flatpaks # Install other flatpaks
flatpak install flathub com.bitwarden.desktop flatpak install flathub com.bitwarden.desktop

View file

@ -0,0 +1,16 @@
#!/bin/bash
# Elevate script
if [ ! "$UID" -eq 0 ]
then
exec sudo bash "$0"
fi
workingDirectory=$(pwd)
contextRoot=$(mktemp)
cd $contextRoot
wget https://dl.gitea.io/tea/0.9.0/tea-0.9.0-linux-amd64 -O tea
install tea /usr/local/bin
cd $workingDirectory
rm -rf $contextRoot