Skip to content

Instantly share code, notes, and snippets.

@eric-vader
Last active January 5, 2023 17:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eric-vader/324a5b1b3efb967085f4c1c6227bf38e to your computer and use it in GitHub Desktop.
Save eric-vader/324a5b1b3efb967085f4c1c6227bf38e to your computer and use it in GitHub Desktop.
My personal setup script!
#!/bin/bash
# https://www.linuxuprising.com/2020/10/how-to-make-bootable-windows-10-usb-on.html
dnf update -y
# Fix Gnome settings
# ==================
# gsettings set org.gnome.desktop.interface scaling-factor 1
# sudo vi /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml
# sudo glib-compile-schemas /usr/share/glib-2.0/schemas/
# Install VirtualBox
# ==================
#dnf config-manager --add-repo http://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo -y
#dnf install binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel kernel-core-devel dkms -y
#dnf install VirtualBox-5.1 -y
#sudo /usr/lib/virtualbox/vboxdrv.sh setup
#sudo usermod -a -G vboxusers Eric_Vader
dnf remove PackageKit -y
dnf remove rhythmbox -y
dnf remove evolution -y
dnf remove totem -y
# Crucial for installation
# ========================
# dnf install yum-axelget.noarch -y
dnf install axel -y
# From Official Repo
# ==================
dnf install fedora-workstation-repositories -y
dnf config-manager --set-enabled google-chrome
dnf install google-chrome-stable -y
dnf config-manager --set-enabled rpmfusion-nonfree-steam
#dnf install steam -y
#dnf config-manager --set-enabled rpmfusion-nonfree-nvidia-driver
#dnf install nvidia-driver -y
# There is an issue with gdm, fix by using lightdm
# https://ask.fedoraproject.org/en/question/121004/please-how-avoid-problems-on-gdm-after-install-nvidia-drivers-from-rpmfusion-on-fedora-28-workstation/
# Flatpak
# =======
#dnf install flatpak flatpak-builder git make ostree -y
dnf install -y flatpak
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
flatpak install flathub com.spotify.Client -y
#flatpak install flathub org.nextcloud.Nextcloud -y
#flatpak install flathub com.visualstudio.code -y
#flatpak install --from https://flathub.org/repo/appstream/com.valvesoftware.Steam.flatpakref -y
# Snap?
# ====
# https://code.visualstudio.com/docs/setup/linux
rpm --import https://packages.microsoft.com/keys/microsoft.asc
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'
dnf check-update
dnf install code -y
# The rest
# ========
dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm -y
dnf install vlc -y
dnf install kernel-devel kernel-headers gcc dkms acpid -y
# dnf install thunderbird -y
dnf install gnome-tweak-tool -y
dnf install telegram-desktop -y
dnf install gimp -y
dnf install darktable -y
dnf install texlive-scheme-full -y
dnf install chrome-gnome-shell -y
#dnf install nextcloud-client -y
#dnf install spotify -y
dnf install fuse-exfat -y
dnf install libgnome-keyring -y
dnf install conda -y
dnf groupinstall "Development Tools" -y
dnf update -y
reboot