fix missing virt-manager dep, add rate-mirrors for arch, fix errors in git and fish scripts

This commit is contained in:
askiiart 2024-06-02 13:57:01 -05:00
parent 2650eff42d
commit 46cdfbe486
Signed by untrusted user who does not match committer: askiiart
GPG key ID: EA85979611654C30
5 changed files with 18 additions and 5 deletions

View file

@ -42,6 +42,9 @@ git config --global user.email "${GIT_EMAIL}"
git config --global commit.gpgsign true git config --global commit.gpgsign true
git config --global user.signingkey ${KEY_ID} git config --global user.signingkey ${KEY_ID}
# other git settings
git config --global init.defaultBranch main
# From https://superuser.com/a/954639 # From https://superuser.com/a/954639
# Archived at https://web.archive.org/web/20230606153856/https://superuser.com/a/954639 # Archived at https://web.archive.org/web/20230606153856/https://superuser.com/a/954639
echo Fixing .gnupg/ permissions echo Fixing .gnupg/ permissions

View file

@ -9,10 +9,12 @@ command_exists() { type "$1" &>/dev/null; }
if command_exists "apt-get"; then if command_exists "apt-get"; then
sudo apt update sudo apt update
sudo apt install curl -y sudo apt install curl -y
elif command_exists "dnf"; then elif command_exists "dnf"; then
sudo dnf config-manager --add-repo https://askiiart.net/repos/fedora/x86_64/askiiart.repo sudo dnf config-manager --add-repo https://askiiart.net/repos/fedora/x86_64/askiiart.repo
sudo dnf remove libreoffice* atril -y sudo dnf remove libreoffice* atril -y
sudo dnf install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm sudo dnf install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
elif command_exists "pacman"; then elif command_exists "pacman"; then
WD=$(pwd) WD=$(pwd)
sudo pacman -S --noconfirm --needed git base-devel sudo pacman -S --noconfirm --needed git base-devel
@ -21,15 +23,20 @@ elif command_exists "pacman"; then
makepkg -si makepkg -si
cd $WD cd $WD
rm -rf yay rm -rf yay
# get fast arch mirrors
yay -S rate-mirrors-bin
rate-mirrors --disable-comments-in-file --entry-country=US --protocol=https arch --max-delay 7200 | sudo tee /etc/pacman.d/mirrorlist
yay -S noto-fonts-emoji --noconfirm --needed yay -S noto-fonts-emoji --noconfirm --needed
#sudo mkdir /usr/share/fonts/meslolgs
#yay -S ttf-meslo-nerd-font-powerlevel10k --noconfirm --needed
elif command_exists "zypp"; then elif command_exists "zypp"; then
echo "not yet implemented" echo "not yet implemented"
elif command_exists "emerge"; then elif command_exists "emerge"; then
echo "not yet implemented" echo "not yet implemented"
elif command_exists "apk"; then elif command_exists "apk"; then
echo "not yet implemented" echo "not yet implemented"
elif command_exists "xbps-install"; then elif command_exists "xbps-install"; then
sudo xbps-install NetworkManager dbus polkit polkit-gnome nano noto-fonts-emoji noto-fonts-cjk python3 python3-pip sudo xbps-install NetworkManager dbus polkit polkit-gnome nano noto-fonts-emoji noto-fonts-cjk python3 python3-pip
mkdir ~/Applications mkdir ~/Applications
@ -39,6 +46,8 @@ elif command_exists "xbps-install"; then
cd - cd -
echo "AppImageLauncher is in ~/Applications, deal with it yourself or update this script" echo "AppImageLauncher is in ~/Applications, deal with it yourself or update this script"
sudo xbps-install void-repo-multilib void-repo-nonfree sudo xbps-install void-repo-multilib void-repo-nonfree
else else
echo "Unsupported: unknown package manager and distro" echo "Unsupported: unknown package manager and distro"
fi fi

@ -1 +1 @@
Subproject commit ab891546112053b37bf2cacc682b9480d7670d0d Subproject commit f5b7c874281ffdcd4e3780915383773cc84686ca

View file

@ -13,7 +13,7 @@ if command_exists "apt-get"; then
elif command_exists "yum"; then elif command_exists "yum"; then
sudo yum install fish -y sudo yum install fish -y
elif command_exists "pacman"; then elif command_exists "pacman"; then
pacman -S fish sudo pacman -S fish
elif command_exists "zypp"; then elif command_exists "zypp"; then
# Untested # Untested
sudo zypper install fish -y sudo zypper install fish -y

View file

@ -14,8 +14,9 @@ elif command_exists "yum"; then
sudo systemctl enable --now libvirtd.service sudo systemctl enable --now libvirtd.service
sudo usermod -aG libvirt $(whoami) sudo usermod -aG libvirt $(whoami)
elif command_exists "pacman"; then elif command_exists "pacman"; then
sudo pacman -S qemu-full --noconfirm --needed sudo pacman -S qemu-full dnsmasq --noconfirm --needed
sudo pacman -S virt-manager --noconfirm --needed sudo pacman -S virt-manager --noconfirm --needed
sudo systemctl enable --now libvirtd.service
elif command_exists "zypp"; then elif command_exists "zypp"; then
# Untested # Untested
sudo zypper install qemu -y sudo zypper install qemu -y