2014-03-29 20:13:06 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2016-07-01 13:58:43 +01:00
|
|
|
set -e
|
|
|
|
|
2016-09-16 19:21:24 +01:00
|
|
|
if [[ -z $NOUPGRADE ]]; then
|
|
|
|
sudo dnf -y upgrade --best --allowerasing
|
|
|
|
fi
|
2016-10-08 07:08:17 +01:00
|
|
|
|
2017-01-26 07:39:08 +00: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 npm 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 qt5-linguist qtkeychain-qt5-devel archivemount keepass splix gutenprint-cups cups-bjnp golang redhat-rpm-config docker pcsc-lite-devel pcsc-tools pcsc-lite yubico-piv-tool yubikey-personalization-gui xloadimage yp-tools
|
2016-10-08 07:08:17 +01:00
|
|
|
|
2015-07-28 20:22:36 +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
|
|
|
|
2016-08-01 06:07:58 +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
|
2016-10-03 05:56:24 +01:00
|
|
|
sudo cp -v $DIR/etc/ld.so.conf.d/nextcloud.conf /etc/ld.so.conf.d/nextcloud.conf
|
2016-10-22 18:58:35 +01:00
|
|
|
sudo cp -v $DIR/etc/sysctl.d/90_swapiness.conf /etc/sysctl.d/
|
2016-10-03 05:56:24 +01:00
|
|
|
sudo ldconfig
|
|
|
|
|
2016-08-01 06:22:07 +01:00
|
|
|
set +e
|
2016-08-01 06:29:33 +01:00
|
|
|
sudo diff /etc/dnf/automatic.conf.bak /etc/dnf/automatic.conf
|
2016-08-01 06:22:07 +01:00
|
|
|
set -e
|
2016-08-01 06:07:58 +01:00
|
|
|
|
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-*"
|
2016-12-29 18:33:54 +00:00
|
|
|
sudo systemctl enable docker
|
|
|
|
sudo systemctl restart docker
|
2016-07-01 14:14:40 +01:00
|
|
|
fi
|
2015-08-01 19:17:56 +01:00
|
|
|
|
2016-12-29 18:33:54 +00:00
|
|
|
# docker
|
2016-12-29 19:08:49 +00:00
|
|
|
if [[ -z $USER ]]; then
|
|
|
|
USER=`whoami`
|
|
|
|
fi
|
2016-12-30 20:06:40 +00:00
|
|
|
|
|
|
|
getent group docker || sudo groupadd docker
|
2016-12-29 18:33:54 +00:00
|
|
|
sudo usermod -aG docker $USER
|
|
|
|
|
2016-12-29 20:50:53 +00:00
|
|
|
# vscode
|
2016-11-25 11:55:47 +00:00
|
|
|
mkdir -p ~/Downloads
|
2016-11-25 11:35:38 +00:00
|
|
|
cd ~/Downloads
|
2017-02-12 11:47:30 +00:00
|
|
|
aria2c -c "https://go.microsoft.com/fwlink/?LinkID=760867"
|
2016-11-25 12:54:33 +00:00
|
|
|
sudo dnf -y install code*.rpm
|
2016-11-25 18:46:59 +00:00
|
|
|
|
|
|
|
if [ "$(id -u)" != "0" ]; then
|
|
|
|
code --install-extension cssho.vscode-svgviewer
|
|
|
|
code --install-extension donjayamanne.python
|
|
|
|
code --install-extension saviorisdead.RustyCode
|
|
|
|
code --install-extension seanmcbreen.Spell
|
|
|
|
code --install-extension searKing.preview-vscode
|
|
|
|
code --install-extension vscodevim.vim
|
|
|
|
fi
|
2016-11-25 11:35:38 +00:00
|
|
|
|
2016-12-29 20:50:53 +00:00
|
|
|
# vim
|
2016-09-19 19:16:14 +01:00
|
|
|
if [[ -z $NO_COMPILE_VIM ]]; then
|
2017-02-12 11:47:30 +00:00
|
|
|
VIM_BUILD_DIR=`realpath "$DIR/../../"`
|
2016-09-19 19:16:14 +01:00
|
|
|
cd "$VIM_BUILD_DIR"
|
2017-02-12 11:47:30 +00:00
|
|
|
if [[ ! -d vim ]]; then
|
|
|
|
git clone https://github.com/vim/vim.git --recursive
|
|
|
|
else
|
|
|
|
cd vim
|
|
|
|
git pull
|
|
|
|
git submodule update --init --recursive
|
|
|
|
cd ..
|
|
|
|
fi
|
2016-09-19 19:16:14 +01:00
|
|
|
cd vim
|
|
|
|
./configure --with-features=huge \
|
|
|
|
--enable-multibyte \
|
|
|
|
--enable-rubyinterp \
|
|
|
|
--enable-python3interp=yes \
|
|
|
|
--enable-luainterp \
|
|
|
|
--enable-gui=no \
|
|
|
|
--enable-cscope
|
2017-02-12 11:47:30 +00:00
|
|
|
make -j`nproc`
|
2016-09-19 19:16:14 +01:00
|
|
|
sudo make install
|
|
|
|
cd
|
|
|
|
fi
|
2016-09-14 20:20:27 +01:00
|
|
|
|
2015-03-28 08:10:58 +00:00
|
|
|
DIR="$DIR/../"
|
2017-01-19 10:03:34 +00:00
|
|
|
DIR="$DIR" $DIR/common/configure_fresh_system.sh
|
2014-03-29 20:53:10 +00:00
|
|
|
|