mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-05 21:28:48 +00:00
Added DNF configuration and Multimedia Support for fedora and other Redhat Distros (#438)
* First commit * Small enhancements * Update configure-dnf.sh * update * Update configure-dnf.sh * update * Update multimedia-codecs.sh * Update multimedia-codecs.sh
This commit is contained in:
parent
533204902a
commit
97576d2087
23
tabs/system-setup/fedora/configure-dnf.sh
Normal file
23
tabs/system-setup/fedora/configure-dnf.sh
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
#!/bin/sh -e
|
||||||
|
|
||||||
|
. ../../common-script.sh
|
||||||
|
|
||||||
|
configureDNF() {
|
||||||
|
case $PACKAGER in
|
||||||
|
dnf)
|
||||||
|
printf "%b\n" ${YELLOW}"Configuring DNF...${RC}"
|
||||||
|
$ESCALATION_TOOL sed -i '/^max_parallel_downloads=/c\max_parallel_downloads=10' /etc/dnf/dnf.conf || echo 'max_parallel_downloads=10' >> /etc/dnf/dnf.conf
|
||||||
|
echo "fastestmirror=True" | $ESCALATION_TOOL tee -a /etc/dnf/dnf.conf > /dev/null
|
||||||
|
echo "defaultyes=True" | $ESCALATION_TOOL tee -a /etc/dnf/dnf.conf > /dev/null
|
||||||
|
$ESCALATION_TOOL "$PACKAGER" -y install dnf-plugins-core
|
||||||
|
printf "%b\n" "${GREEN}DNF Configured Succesfully...${RC}"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
printf "%b\n" "${RED}Unsupported distribution: $DTYPE${RC}"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
checkEnv
|
||||||
|
checkEscalationTool
|
||||||
|
configureDNF
|
26
tabs/system-setup/fedora/multimedia-codecs.sh
Normal file
26
tabs/system-setup/fedora/multimedia-codecs.sh
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
#!/bin/sh -e
|
||||||
|
|
||||||
|
. ../../common-script.sh
|
||||||
|
|
||||||
|
multimedia() {
|
||||||
|
case $PACKAGER in
|
||||||
|
dnf)
|
||||||
|
if [ -e /etc/yum.repos.d/rpmfusion-free.repo ] && [ -e /etc/yum.repos.d/rpmfusion-nonfree.repo ]; then
|
||||||
|
printf "%b\n" "${YELLOW}Installing Multimedia Codecs...${RC}"
|
||||||
|
$ESCALATION_TOOL "$PACKAGER" swap ffmpeg-free ffmpeg --allowerasing -y
|
||||||
|
$ESCALATION_TOOL "$PACKAGER" update @multimedia --setopt="install_weak_deps=False" --exclude=PackageKit-gstreamer-plugin -y
|
||||||
|
$ESCALATION_TOOL "$PACKAGER" update @sound-and-video -y
|
||||||
|
printf "%b\n" "${GREEN}Multimedia Codecs Installed...${RC}"
|
||||||
|
else
|
||||||
|
printf "%b\n" "${RED}RPM Fusion repositories not found. Please set up RPM Fusion first!${RC}"
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
printf "%b\n" "${RED}Unsupported distribution: $DTYPE${RC}"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
checkEnv
|
||||||
|
checkEscalationTool
|
||||||
|
multimedia
|
|
@ -23,4 +23,5 @@ installRPMFusion() {
|
||||||
}
|
}
|
||||||
|
|
||||||
checkEnv
|
checkEnv
|
||||||
|
checkEscalationTool
|
||||||
installRPMFusion
|
installRPMFusion
|
||||||
|
|
|
@ -36,6 +36,14 @@ name = "RPM Fusion Setup"
|
||||||
description = "RPM Fusion provides software that the Fedora Project or Red Hat doesn't want to ship.\nThat software is provided as precompiled RPMs for all current Fedora versions and current Red Hat Enterprise Linux or clones versions; you can use the RPM Fusion repositories with tools like yum and PackageKit.\nFor more information visit: https://rpmfusion.org/"
|
description = "RPM Fusion provides software that the Fedora Project or Red Hat doesn't want to ship.\nThat software is provided as precompiled RPMs for all current Fedora versions and current Red Hat Enterprise Linux or clones versions; you can use the RPM Fusion repositories with tools like yum and PackageKit.\nFor more information visit: https://rpmfusion.org/"
|
||||||
script = "fedora/rpm-fusion-setup.sh"
|
script = "fedora/rpm-fusion-setup.sh"
|
||||||
|
|
||||||
|
[[data.entries]]
|
||||||
|
name = "Configure DNF"
|
||||||
|
script = "fedora/configure-dnf.sh"
|
||||||
|
|
||||||
|
[[data.entries]]
|
||||||
|
name = "Multimedia Setup"
|
||||||
|
script = "fedora/multimedia-codecs.sh"
|
||||||
|
|
||||||
[[data]]
|
[[data]]
|
||||||
name = "Full System Cleanup"
|
name = "Full System Cleanup"
|
||||||
script = "system-cleanup.sh"
|
script = "system-cleanup.sh"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user