From c86fa46a01b6bdadb42007315108b1a0b7f10dfe Mon Sep 17 00:00:00 2001 From: askiiart Date: Sun, 10 Sep 2023 16:55:31 -0500 Subject: [PATCH] Move stuff around, add install-librewolf --- do-everything.bash | 15 +++++++--- install-stuff/install-librewolf.bash | 28 +++++++++++++++++++ ...install.bash => install-qemu-libvirt.bash} | 0 3 files changed, 39 insertions(+), 4 deletions(-) create mode 100755 install-stuff/install-librewolf.bash rename install-stuff/{virt-install.bash => install-qemu-libvirt.bash} (100%) diff --git a/do-everything.bash b/do-everything.bash index 7024e52..954b7ed 100644 --- a/do-everything.bash +++ b/do-everything.bash @@ -1,6 +1,13 @@ #!/usr/bin/env sh -chmod 700 ./daily-use-pcs/setup-git.bash -./daily-use-pcs/setup-git.bash +chmod 700 ./distro-specific.bash +./distro-specific.bash -chmod 700 ./install-stuff/*.bash -./install-stuff/*.bash \ No newline at end of file +cd ./daily-use-pcs +chmod 700 ./setup-git.bash +./setup-git.bash +cd .. + +cd install-stuff/ +chmod 700 ./*.bash +./*.bash +cd .. \ No newline at end of file diff --git a/install-stuff/install-librewolf.bash b/install-stuff/install-librewolf.bash new file mode 100755 index 0000000..452e905 --- /dev/null +++ b/install-stuff/install-librewolf.bash @@ -0,0 +1,28 @@ +#!/usr/bin/env bash +set -e +if [ $(whoami) == "root" ]; then + echo "Run as a normal user, not root" + exit 1 +fi + +command_exists() { type "$1" &>/dev/null; } + +if command_exists "apt-get"; then + sudo apt update && sudo apt install -y wget gnupg lsb-release apt-transport-https ca-certificates + distro=$(if echo " una bookworm vanessa focal jammy bullseye vera uma " | grep -q " $(lsb_release -sc) "; then echo $(lsb_release -sc); else echo focal; fi) + wget -O- https://deb.librewolf.net/keyring.gpg | sudo gpg --dearmor -o /usr/share/keyrings/librewolf.gpg + echo "Types: deb\nURIs: https://deb.librewolf.net\nSuites: $distro\nComponents: main\nArchitectures: amd64\nSigned-By: /usr/share/keyrings/librewolf.gpg" | sudo tee /etc/apt/sources.list.d/librewolf.sources + sudo apt update + sudo apt install librewolf -y +elif command_exists "yum"; then + sudo dnf config-manager --add-repo https://rpm.librewolf.net/librewolf-repo.repo + sudo dnf install librewolf +elif command_exists "pacman"; then + yay -S librewolf-bin +elif command_exists "emerge"; then + # Untested + sudo eselect repository add librewolf git https://codeberg.org/librewolf/gentoo.git + emaint -r librewolf sync +else + echo "Figure it out yourself, or get the AppImage from here: https://gitlab.com/librewolf-community/browser/appimage/-/releases" +fi diff --git a/install-stuff/virt-install.bash b/install-stuff/install-qemu-libvirt.bash similarity index 100% rename from install-stuff/virt-install.bash rename to install-stuff/install-qemu-libvirt.bash