Skip to content

Instantly share code, notes, and snippets.

@thecodingcod
Created June 27, 2018 11:01
Show Gist options
  • Save thecodingcod/ae7196884c0604f49f977f4593ed5eda to your computer and use it in GitHub Desktop.
Save thecodingcod/ae7196884c0604f49f977f4593ed5eda to your computer and use it in GitHub Desktop.
Fedora Post Installation Primitive Script.
#!/bin/bash
# Make sure only root can run our script
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
exit 1
fi
#--------------------------------#
printf "\n<--------------- Enable RPMFusion Repo ---------------------->\n"
dnf install -y 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
#--------------------------------#
printf "\n<--------------- Updating the System ------------------------>\n"
#--------------------------------#
dnf -y update
#--------------------------------#
printf "\n<--------------- Installing Development tools --------------->\n"
#--------------------------------#
#Development tools e.g. glibc,make,autotools, etc
dnf groups install -y "Development Tools"
#--------------------------------#
printf "\n<--------------- Installing KVM ----------------------------->\n"
#--------------------------------#
dnf groups install -y "Virtualization"
dnf install -y qemu-kvm qemu-img virt-manager libvirt libvirt-python libvirt-client virt-install virt-viewer bridge-utils
#--------------------------------#
printf "\n<--------------- Installing Kernel Extra Packages ------------>\n"
#--------------------------------#
dnf install -y kernel-headers kernel-core kernel-tools kernel-devel kernel-core kernel-modules-extra
#--------------------------------#
printf "\n<--------------- Installing Basic Apps ----------------------->\n"
#--------------------------------#
dnf install -y vim git gparted youtube-dl deluge
dnf install -y p7zip-plugins p7zip p7zip-gui
#--------------------------------#
printf "\n<--------------- Installing multimedia codecs ---------------->\n"
#--------------------------------#
#a. Installing Vlc
dnf install -y vlc ffmpeg
#--------------------------------#
#--------------------------------#
#b. Installing Media Codecs
dnf install -y gstreamer1-{ffmpeg,libav,plugins-{good,ugly,bad{,-free,-nonfree}}} --setopt=strict=0
dnf remove -y gstreamer1-plugins-ugly
dnf install -y gstreamer1-plugin-mpg123 mpg123-libs
#--------------------------------#
printf "\n<--------------- Installing Python Packages ------------------>\n"
#--------------------------------#
dnf install -y python python3 python-pip python3-pip
#--------------------------------#
#--------------------------------#
pip install linuxacademy-dl scdl
#--------------------------------#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment