Skip to content

Instantly share code, notes, and snippets.

@danhively
Forked from mvoropaiev/fedora.sh
Last active December 7, 2015 09:13
Show Gist options
  • Save danhively/fbde5f9958fedac7e42f to your computer and use it in GitHub Desktop.
Save danhively/fbde5f9958fedac7e42f to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# update system
sudo dnf check-update --refresh \
&& sudo dnf upgrade
# tlp
sudo dnf install -y\
tlp \
tlp-rdw
# TODO: needed?
# sed -i 's/\(SOUND_POWER_SAVE_CONTROLLER=\)./\1N/' /etc/default/tlp \
# && sed -i 's/\(WIFI_PWR_ON_AC=\)./\11/' /etc/default/tlp \
# && sed -i 's/\(WIFI_PWR_ON_BAT=\)./\11/' /etc/default/tlp
# install rpmfusion repositories
sudo dnf install -y --nogpgcheck \
"http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm" \
"http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm"
# install keepassx
# install dependencies
sudo dnf install -y \
cmake \
gcc-c++ \
libgcrypt-devel \
libXtst-devel \
qt4-devel
# install google chrome
sudo dnf install -y\
'https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm'
# install atom and its packages
sudo dnf install -y \
ShellCheck \
'https://github.com/atom/atom/releases/download/v1.2.3/atom.x86_64.rpm'
# install additional packages
apm install \
atom-jinja2 \
atom-material-ui \
atom-material-syntax \
atom-material-syntax-light \
git-plus \
highlight-selected \
language-docker \
language-groovy \
language-nginx \
language-puppet \
linter \
linter-pep8 \
linter-shellcheck \
merge-conflicts \
minimap \
minimap-find-and-replace \
minimap-git-diff \
minimap-highlight-selected \
sort-lines
# install some games, system tool and configure them
# system tools
sudo dnf install -y\
gnome-power-manager \
gnome-tweak-tool \
levien-inconsolata-fonts \
pgadmin3 \
python-devel \
vim
# TODO: currently there is no package for Fedora 23:
# 'http://cdn.mysql.com//Downloads/MySQLGUITools/mysql-workbench-community-6.3.5-1.fc22.x86_64.rpm' \
# archivers
sudo dnf install -y\
cabextract \
lzip \
p7zip \
p7zip-plugins \
unrar
# configure git
git config --global user.name 'Dan Hively' \
&& git config --global user.email '[email protected]' \
&& git config --global core.editor 'atom' \
&& git config --global push.default 'simple'
# install python pip and packages
# TODO: requirement for fedora 23
sudo dnf install -y\
redhat-rpm-config
# download pip installer
wget https://bootstrap.pypa.io/get-pip.py
# install pip for current user
python2 get-pip.py --user
# install python packages for current user
pip install --user --upgrade \
ansible \
docker-compose \
docker-py \
pep8 \
virtualenv
# install 'bad' codecs
sudo dnf install -y\
gstreamer-ffmpeg \
gstreamer-plugins-bad \
gstreamer-plugins-bad-free \
gstreamer-plugins-bad-nonfree \
gstreamer-plugins-good \
gstreamer-plugins-ugly \
gstreamer1-libav \
gstreamer1-plugins-bad-free \
gstreamer1-plugins-good \
gstreamer1-plugins-ugly
# additional codecs
sudo dnf install -y\
gstreamer-plugin-crystalhd \
gstreamer-plugins-bad-extras \
gstreamer-plugins-bad-free-extras \
gstreamer1-plugins-bad-free-extras \
gstreamer1-plugins-bad-freeworld \
gstreamer1-plugins-good \
gstreamer1-plugins-ugly \
lame-libs \
libmpg123
# instal intel drivers
# TODO: fedora 23 has latest drivers already!
# multimedia
sudo dnf install -y\
darktable \
gimp \
gnome-music \
gnome-photos \
inkscape \
vlc
# docker / vagrant
# add docker repository
sudo bash -c 'cat >/etc/yum.repos.d/docker.repo <<-EOF
[dockerrepo]
name=Docker Repository
baseurl=https://yum.dockerproject.org/repo/main/fedora/23
enabled=1
gpgcheck=1
gpgkey=https://yum.dockerproject.org/gpg
EOF'
# install
sudo dnf install -y\
docker
# add user to docker group
sudo usermod -a -G docker "${USER}"
# vagrant
sudo dnf install -y\
vagrant
# Groups
sudo dnf group install with-optional -y \
security-lab \
mate-desktop-environment \
developer-workstation-environment \
web-server-environment
# clean cache
sudo dnf clean packages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment