-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRFIS.sh
37 lines (37 loc) · 1.54 KB
/
RFIS.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
37
#!/bin/bash
# Added shebang
[ "$UID" -eq 0 ] || exec sudo bash "$0" "$@"
# checks for root priveleges (UID 0) and if it is not being ran with sudo will re-exec the script as sudo using "sudo bash"
echo ==============================
echo RPM FUSION INSTALLATION SCRIPT
echo ==============================
echo Written by Sgeuthecodingcat
echo Press CTRL+C to quit, Script will continue in 5 seconds.
sleep 5
# stops script for 5 seconds, simple as that
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 -y
sudo dnf config-manager --enable fedora-cisco-openh264 -y
# self explanitory - enables fedora cisco openh264 repos & install rpm fusion repo
clear
echo ================
echo INSTALL COMPLETE
echo ================
echo Continuing to Multimedia in 3 seconds
echo Press CTRL+C to end here.
sleep 3
clear
echo ===================
echo MULTIMEDIA INSTALL
echo ===================
sudo dnf swap ffmpeg-free ffmpeg --allowerasing -y && sudo dnf update @multimedia --setopt="install_weak_deps=False" --exclude=PackageKit-gstreamer-plugin -y && sudo dnf update @sound-and-video -y
# simply the multimedia step on their website
clear
echo ===================
echo MULTIMEDIA COMPLETE
echo ===================
echo Script has reported as finished, exiting in 5 seconds.
echo Press CTRL+C to exit immediately
echo If any issue has happened, report it in
echo https://github.com/sgeuthecodingcat/RFIS/issues
sleep 5
exit