Improving Arch support
This commit is contained in:
@@ -38,13 +38,26 @@ function update_system() {
|
||||
|
||||
function install_general_tools_software() {
|
||||
if [[ $DISTRO =~ (debian|ubuntu) ]]; then
|
||||
sudo apt install linux-headers-amd64 sudo nano git curl wget htop btop scrcpy vlc geary -y
|
||||
sudo apt install linux-headers-amd64 sudo nano bat git curl wget htop btop scrcpy vlc geary -y
|
||||
elif [[ $DISTRO == "fedora" ]]; then
|
||||
sudo dnf in kernel-devel sudo nano git curl wget htop btop geary -y
|
||||
sudo dnf in kernel-devel sudo nano bat git curl wget htop btop geary -y
|
||||
elif [[ $DISTRO == "arch" ]]; then
|
||||
sudo pacman -S --needed linux-headers dkms base-devel sudo nano git curl wget htop btop scrcpy vlc geary --noconfirm
|
||||
kernel_version=$(uname -r)
|
||||
if [[ $kernel_version == *zen* ]]; then
|
||||
sudo pacman -S --needed --noconfirm linux-zen-headers
|
||||
elif [[ $kernel_version == *lts* ]]; then
|
||||
sudo pacman -S --needed --noconfirm linux-lts-headers
|
||||
else
|
||||
sudo pacman -S --needed --noconfirm linux-headers
|
||||
fi
|
||||
sudo pacman -S --needed --noconfirm dkms base-devel syslinux sudo nano bat git curl wget htop btop scrcpy vlc phonon-qt5-vlc geary noto-fonts-emoji noto-fonts-extra noto-fonts-cjk reflector
|
||||
sudo reflector --save /etc/pacman.d/mirrorlist --protocol https
|
||||
if [ -d "/sys/class/power_supply/BAT0" ]; then
|
||||
sudo pacman -S --needed --noconfirm tlp
|
||||
sudo systemctl enable --now tlp
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
function setup_repo() {
|
||||
if [[ $DISTRO =~ (debian|ubuntu) ]]; then
|
||||
@@ -115,7 +128,7 @@ function install_distro_specific_packages() {
|
||||
# Apps
|
||||
sudo pacman -S --needed --noconfirm moonlight-qt stremio onlyoffice-bin qbittorrent stacer
|
||||
yay -S --needed --noconfirm miru-bin
|
||||
sudo systemctl enable acpid avahi-daemon systemd-timesyncd fstrim.timer cups.service saned.socket NetworkManager bluetooth
|
||||
sudo systemctl enable acpid avahi-daemon systemd-timesyncd fstrim.timer cups.service saned.socket NetworkManager bluetooth systemd-oomd
|
||||
sudo gpasswd -a "$USER" adbusers
|
||||
sudo plymouth-set-default-theme -R spinner
|
||||
fi
|
||||
@@ -183,7 +196,7 @@ function install_virt() {
|
||||
elif [[ $DISTRO == "fedora" ]]; then
|
||||
sudo dnf in libvirt lxc libvirt-daemon-lxc virt-manager distrobox podman waydroid -y
|
||||
elif [[ $DISTRO == "arch" ]]; then
|
||||
sudo pacman -S --needed libvirt libvirt-storage-gluster libvirt-storage-iscsi-direct virt-firmware virt-viewer virt-manager lxc lxcfs distrobox podman waydroid --noconfirm
|
||||
sudo pacman -S --needed qemu-full libvirt libvirt-storage-gluster libvirt-storage-iscsi-direct virt-firmware virt-viewer virt-manager lxc lxcfs distrobox podman waydroid --noconfirm
|
||||
fi
|
||||
sudo systemctl enable libvirtd waydroid-container
|
||||
fi
|
||||
@@ -229,8 +242,8 @@ function install_terminal() {
|
||||
elif [[ $DISTRO == "fedora" ]]; then
|
||||
sudo dnf in alacritty kitty kitty-bash-integration zsh autojump-zsh zsh-autosuggestions zsh-syntax-highlighting -y
|
||||
elif [[ $DISTRO == "arch" ]]; then
|
||||
sudo pacman -S --needed alacritty kitty kitty-shell-integration kitty-terminfo zsh zsh-autosuggestions zsh-completions zsh-history-substring-search zsh-lovers zsh-syntax-highlighting --noconfirm
|
||||
sudo chsh -s /usr/bin/zsh "$USER"
|
||||
sudo pacman -S --needed alacritty kitty kitty-shell-integration kitty-terminfo zsh zsh-autosuggestions zsh-completions zsh-history-substring-search zsh-lovers zsh-syntax-highlighting grml-zsh-config --noconfirm
|
||||
sudo chsh -s /bin/zsh "$USER"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
@@ -259,6 +272,13 @@ function install_gpu_drivers() {
|
||||
sudo dnf in supergfxctl -y
|
||||
fi
|
||||
elif [[ $DISTRO == "arch" ]]; then
|
||||
if pacman -Qs nvidia > /dev/null; then
|
||||
sudo pacman -R --noconfirm nvidia
|
||||
elif pacman -Qs nvidia-dkms > /dev/null; then
|
||||
sudo pacman -R --noconfirm nvidia-dkms
|
||||
elif pacman -Qs xf86-video-nouveau > /dev/null; then
|
||||
sudo pacman -R --noconfirm xf86-video-nouveau
|
||||
fi
|
||||
sudo pacman -S --needed --noconfirm nvidia-open-dkms nvidia-settings nvidia-utils lib32-nvidia-utils libvdpau lib32-libvdpau
|
||||
yay -S --needed --noconfirm libva-nvidia-driver
|
||||
if [ -d "/sys/class/power_supply/BAT0" ]; then
|
||||
|
||||
Reference in New Issue
Block a user