dotfiles/fedora/configure_fresh_system

49 lines
1.8 KiB
Text
Raw Normal View History

#!/bin/bash
2016-07-01 13:58:43 +01:00
set -e
if [[ -z $NOUPGRADE ]]; then
sudo dnf -y upgrade --best --allowerasing
fi
2016-10-08 07:08:17 +01:00
2016-10-08 07:18:08 +01:00
sudo dnf -y --best --allowerasing install tmux atop zsh thunderbird thunderbird-enigmail thunderbird-lightning firefox aria2 gajim lm_sensors freecad python3-pip qt5-qtbase-devel qt5-qtwebkit-devel meld whois curl pv nodejs terminator gsmartcontrol python-pip mercurial python3-devel libxslt-devel libjpeg-turbo-devel conky conky-manager redshift redshift-gtk cmake gtk2-devel intltool gparted wine solaar glances the_silver_searcher dkms kernel-devel gimp transmission-gtk git xz util-linux-user powertop dnf-automatic kdiff3 yum-utils util-linux-user ncurses-devel zeal archivemount keepass splix gutenprint-cups cups-bjnp
2016-10-08 07:08:17 +01:00
sudo dnf -y groupinstall "C Development Tools and Libraries"
2016-10-08 07:21:07 +01:00
sudo dnf -y groupinstall "Development Tools"
2014-08-17 09:17:36 +01:00
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
2016-08-01 06:29:33 +01:00
sudo cp -v /etc/dnf/automatic.conf /etc/dnf/automatic.conf.bak
sudo cp -v $DIR/etc/dnf/automatic.conf /etc/dnf/automatic.conf
set +e
2016-08-01 06:29:33 +01:00
sudo diff /etc/dnf/automatic.conf.bak /etc/dnf/automatic.conf
set -e
2016-08-01 06:37:34 +01:00
if [[ -z $NO_SYSTEMCTL ]]; then
sudo systemctl enable dnf-automatic.timer
sudo systemctl start dnf-automatic.timer
sudo systemctl list-timers "*dnf-*"
fi
2015-08-01 19:17:56 +01:00
if [[ -z $NO_COMPILE_VIM ]]; then
VIM_BUILD_DIR=/tmp
cd "$VIM_BUILD_DIR"
git clone https://github.com/vim/vim.git
cd vim
./configure --with-features=huge \
--enable-multibyte \
--enable-rubyinterp \
--enable-python3interp=yes \
--enable-luainterp \
--enable-gui=no \
--enable-cscope
make -j2
sudo make install
cd
rm -fvr "$VIM_BUILD_DIR/vim"
fi
2016-09-14 20:20:27 +01:00
DIR="$DIR/../"
DIR="$DIR" $DIR/common/configure_fresh_system