Update fedoraEasy.sh
This commit is contained in:
parent
e5ae3c6643
commit
cfce562c51
1 changed files with 97 additions and 35 deletions
132
fedoraEasy.sh
132
fedoraEasy.sh
|
@ -1,39 +1,101 @@
|
||||||
|
#!/bin/bash
|
||||||
echo ' ---> Tahinli Fedora Easy Ready Script <---'
|
echo ' ---> Tahinli Fedora Easy Ready Script <---'
|
||||||
echo 'max_parallel_downloads=10' | sudo tee -a /etc/dnf/dnf.conf
|
|
||||||
echo 'fastestmirror=TRUE' | sudo tee -a /etc/dnf/dnf.conf
|
function fastDNF
|
||||||
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
|
{
|
||||||
echo -e '0) Kernel Check and Restart\n1) Bypass Kernel Control and Continue to Install'
|
echo -e 'Fast DNF Selected\n'
|
||||||
|
echo 'max_parallel_downloads=10' | sudo tee -a /etc/dnf/dnf.conf
|
||||||
|
echo 'fastestmirror=TRUE' | sudo tee -a /etc/dnf/dnf.conf
|
||||||
|
}
|
||||||
|
function rpmFusion
|
||||||
|
{
|
||||||
|
echo -e 'RPM-Fusion Selected\n'
|
||||||
|
sudo dnf install --allowerasing 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
|
||||||
|
}
|
||||||
|
function additionalRepo
|
||||||
|
{
|
||||||
|
echo -e 'Additional Repo Selected\n'
|
||||||
|
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
|
||||||
|
sudo sh -c 'echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/vscode.repo'
|
||||||
|
sudo rpm --import https://packagecloud.io/shiftkey/desktop/gpgkey
|
||||||
|
sudo sh -c 'echo -e "[shiftkey]\nname=GitHub Desktop\nbaseurl=https://packagecloud.io/shiftkey/desktop/el/7/\$basearch\nenabled=1\ngpgcheck=0\nrepo_gpgcheck=1\ngpgkey=https://packagecloud.io/shiftkey/desktop/gpgkey" > /etc/yum.repos.d/shiftkey-desktop.repo'
|
||||||
|
sudo dnf check-update
|
||||||
|
}
|
||||||
|
function configFix
|
||||||
|
{
|
||||||
|
echo -e 'Config Fix Selected\n'
|
||||||
|
echo 'options snd-hda-intel index=0 model=dell-headset-multi' | sudo tee -a /etc/modprobe.d/alsa-base.conf
|
||||||
|
}
|
||||||
|
function kernelCheck
|
||||||
|
{
|
||||||
|
echo -e '\nKernel Update Selected\n Checking...\n'
|
||||||
|
sudo dnf update -y
|
||||||
|
}
|
||||||
|
function installation
|
||||||
|
{
|
||||||
|
echo -e '\n Installation Selected\n Starting...\n'
|
||||||
|
sudo dnf install -y --allowerasing alsa-lib
|
||||||
|
sudo dnf install -y --allowerasing code
|
||||||
|
sudo dnf install -y --allowerasing github-desktop
|
||||||
|
sudo dnf install -y --allowerasing discord
|
||||||
|
sudo dnf install -y --allowerasing steam
|
||||||
|
sudo dnf install -y --allowerasing akmod-nvidia
|
||||||
|
sudo dnf install -y --allowerasing xorg-x11-drv-nvidia-cuda
|
||||||
|
sudo dnf install -y --allowerasing neofetch
|
||||||
|
sudo dnf install -y --allowerasing alacritty
|
||||||
|
sudo dnf install -y --allowerasing obs-studio
|
||||||
|
sudo dnf install -y --allowerasing audacity
|
||||||
|
sudo dnf install -y --allowerasing lutris
|
||||||
|
sudo dnf install -y --allowerasing timeshift
|
||||||
|
sudo dnf install -y --allowerasing lpf-spotify-client
|
||||||
|
lpf update
|
||||||
|
echo -e ' -< Installation is Done, Please Restart >-'
|
||||||
|
}
|
||||||
|
function restartSelection
|
||||||
|
{
|
||||||
|
echo -e ' Do You Want To Restart, If Kernel is Updated Recently or Installed Drivers Please Restart\n 0)Restart\n 1)Do not Restart'
|
||||||
|
read restartC
|
||||||
|
case $restartC in
|
||||||
|
0)
|
||||||
|
echo 'Restart is Selected'
|
||||||
|
reboot
|
||||||
|
;;
|
||||||
|
1)
|
||||||
|
echo 'Do not Restart is Selected'
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
echo -e '0) Kernel Uptade Check\n1) Hands Free Complete Setup\n2) Only Fix Config Files\n3) Only Speed Up DNF\n4) Only Activate RPM-Fusion Repos\n5) Only Add Additional Repos\n6) Only Install Programs'
|
||||||
read selection
|
read selection
|
||||||
case $selection in
|
case $selection in
|
||||||
0)
|
0)
|
||||||
echo -e '\nKernel Update Selected\n Checking...\n'
|
kernelCheck
|
||||||
sudo dnf update -y
|
;;
|
||||||
reboot
|
1)
|
||||||
;;
|
fastDNF
|
||||||
1)
|
rpmFusion
|
||||||
echo -e '\n Installation Selected\n Starting...\n'
|
additionalRepo
|
||||||
sudo dnf install -y alsa-lib
|
installation
|
||||||
echo 'options snd-hda-intel index=0 model=dell-headset-multi' | sudo tee -a /etc/modprobe.d/alsa-base.conf
|
configFix
|
||||||
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
|
;;
|
||||||
sudo sh -c 'echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/vscode.repo'
|
2)
|
||||||
dnf check-update
|
configFix
|
||||||
sudo dnf install -y code
|
;;
|
||||||
sudo rpm --import https://packagecloud.io/shiftkey/desktop/gpgkey
|
3)
|
||||||
sudo sh -c 'echo -e "[shiftkey]\nname=GitHub Desktop\nbaseurl=https://packagecloud.io/shiftkey/desktop/el/7/\$basearch\nenabled=1\ngpgcheck=0\nrepo_gpgcheck=1\ngpgkey=https://packagecloud.io/shiftkey/desktop/gpgkey" > /etc/yum.repos.d/shiftkey-desktop.repo'
|
fastDNF
|
||||||
sudo dnf install -y github-desktop
|
;;
|
||||||
sudo dnf install -y discord
|
4)
|
||||||
sudo dnf install -y steam
|
rpmFusion
|
||||||
sudo dnf install -y akmod-nvidia
|
;;
|
||||||
sudo dnf install -y xorg-x11-drv-nvidia-cuda
|
5)
|
||||||
sudo dnf install -y neofetch
|
additionalRepo
|
||||||
sudo dnf install -y alacritty
|
;;
|
||||||
sudo dnf install -y --allowerasing obs-studio
|
6)
|
||||||
sudo dnf install -y audacity
|
installation
|
||||||
sudo dnf install -y grub-customizer
|
;;
|
||||||
sudo dnf install -y lpf-spotify-client
|
*)
|
||||||
lpf update
|
echo -e ' -# Invalid Selection #-\n QUITING'
|
||||||
echo -e ' -< Installation is Done, Please Restart >-'
|
;;
|
||||||
;;
|
|
||||||
*)
|
|
||||||
echo -e ' -# Invalid Selection #-\n QUITING';;
|
|
||||||
esac
|
esac
|
||||||
|
sudo dnf autoremove -y
|
||||||
|
restartSelection
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue