Last active
August 26, 2015 17:46
-
-
Save devo8604/fe4a83fd1a432d085329 to your computer and use it in GitHub Desktop.
Fedora setup script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| ################################################################################ | |
| # Fedora Setup script | |
| # By: Devon Smith (devo8604@outlook.com) | |
| # Original forked from: Braxton Plaxco (bplaxco@lupnix.org) | |
| ################################################################################ | |
| echo "Installing Fedy..." | |
| bash -c 'su -c "curl https://satya164.github.io/fedy/fedy-installer -o fedy-installer && chmod +x fedy-installer && ./fedy-installer"' | |
| echo Checking RPMFusion free | |
| if [ ! -f /etc/yum.repos.d/rpmfusion-free.repo ] | |
| then | |
| echo Install RPMFusion free | |
| cd ~/ | |
| # Download latest | |
| DOWNLOAD_LINK="http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-rawhide.noarch.rpm" | |
| curl -O $DOWNLOAD_LINK | |
| # Install | |
| sudo dnf install -y ./rpmfusion-free-release-*.noarch.rpm | |
| # Cleanup | |
| rm ~/rpmfusion-free-release* | |
| else | |
| echo "Installed!" | |
| fi | |
| ################################################################################ | |
| echo Checking RPMFusion nonfree | |
| if [ ! -f /etc/yum.repos.d/rpmfusion-nonfree.repo ] | |
| then | |
| echo Install RPMFusion nonfree | |
| cd ~/ | |
| # Download latest | |
| DOWNLOAD_LINK="http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-rawhide.noarch.rpm" | |
| curl -O $DOWNLOAD_LINK | |
| # Install | |
| sudo dnf install -y ./rpmfusion-nonfree-release-*.noarch.rpm | |
| # Cleanup | |
| rm ~/rpmfusion-nonfree-release* | |
| else | |
| echo "Installed!" | |
| fi | |
| ################################################################################ | |
| echo "Adding additional options in dnf.conf and updating system..." | |
| sudo cp /etc/dnf/dnf.conf /etc/dnf/dnf.conf.bak | |
| sudo cat >> /etc/dnf/dnf.conf << EOF | |
| best=true | |
| fastestmirror=true | |
| EOF | |
| echo "Installing misc software" | |
| APPS="vlc python-pip python-devel zsh terminology vim-enhanced dnf-plugins-extras boost" | |
| sudo dnf install -y $APPS | |
| # Group installs | |
| sudo dnf group install "Development Tools" | |
| sudo dnf group install "Security Lab" | |
| sudo dnf group install "RPM Development Tools" | |
| sudo dnf group install "System Tools" | |
| sudo dnf group install "C Development Tools and Libraries" | |
| sudo dnf group install "Fedora Eclipse" | |
| sudo dnf group install "Editors" | |
| echo "Adding entries in bashrc..." | |
| cat >> .bashrc << EOF | |
| alias dnf="sudo dnf" | |
| alias update="sudo dnf --refresh upgrade" | |
| alias ls="ls -altr" | |
| alias grep="grep -i --color=auto" | |
| EOF | |
| source .bashrc | |
| echo "All done!" | |
| exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment