-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSetup.sh
36 lines (26 loc) · 1.33 KB
/
Setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
#Read input to enter hostname
read -p "Enter in your desired hostname: " hostname
echo "Changing hostname to $hostname..."
sudo hostnamectl set-hostname --static $hostname
#Update the system
sudo dnf update --refresh
#Enable RPM Fusion Repos
sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
sudo dnf install https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
#Enable Flathub
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
#Install Microsoft Edge
flatpak install flathub com.microsoft.Edge
#Install Microsoft Fonts
sudo dnf install curl cabextract xorg-x11-font-utils fontconfig
sudo rpm -i https://downloads.sourceforge.net/project/mscorefonts2/rpms/msttcore-fonts-installer-2.6-1.noarch.rpm
#Install VSCode
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'
dnf check-update
sudo dnf install code
#Install Steam
sudo dnf config-manager --set-enabled rpmfusion-nonfree-steam
sudo dnf install steam
read -p "All done! Press enter to continue"