Move stuff around, add install-librewolf

This commit is contained in:
askiiart 2023-09-10 16:55:31 -05:00
parent 013e82d56d
commit c86fa46a01
No known key found for this signature in database
GPG key ID: C89CBC4F981EE719
3 changed files with 39 additions and 4 deletions

View file

@ -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
cd ./daily-use-pcs
chmod 700 ./setup-git.bash
./setup-git.bash
cd ..
cd install-stuff/
chmod 700 ./*.bash
./*.bash
cd ..

View file

@ -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