bootstrap/bootstrap-root.sh

58 lines
1.3 KiB
Bash
Raw Normal View History

2018-11-23 10:10:17 +01:00
#! /bin/bash
2019-01-22 14:23:16 +01:00
# fail immediately on error
2019-01-22 14:14:25 +01:00
set -e
2018-11-27 09:08:03 +01:00
CURLOPT=${CURLOPT:-"--location --remote-time --show-error --silent --fail --tlsv1.2"}
2018-11-23 10:10:17 +01:00
2019-01-22 14:06:22 +01:00
apt-get update \
2019-01-22 14:14:25 +01:00
&& apt-get dist-upgrade -y \
2019-01-22 14:06:22 +01:00
&& apt-get install -y \
2018-11-23 10:59:55 +01:00
apt-file \
apt-transport-https \
bash-completion \
build-essential \
byobu \
ca-certificates \
clang \
cmake \
command-not-found \
curl \
elinks \
exa \
2018-11-23 10:59:55 +01:00
git \
2019-06-05 03:42:10 +02:00
highlight \
2018-11-23 10:59:55 +01:00
htop \
2018-12-08 05:34:02 +01:00
libgit2-dev \
2018-11-23 10:59:55 +01:00
libpython3-dev \
locales \
man \
mc \
neovim \
python3 \
python3-venv \
software-properties-common \
2018-11-23 11:03:29 +01:00
tig \
2018-11-23 10:59:55 +01:00
zsh \
&& apt-get install --no-install-recommends -y \
firejail \
firejail-profiles \
2018-11-23 10:59:55 +01:00
&& apt-file update
2018-11-23 10:10:17 +01:00
# node related
2021-02-12 07:40:57 +01:00
# shellcheck disable=SC2086
2020-06-22 10:00:42 +02:00
curl $CURLOPT https://deb.nodesource.com/setup_14.x | bash -
2018-11-23 10:10:17 +01:00
apt-get install -y nodejs
# python3 related
2021-02-12 07:40:57 +01:00
# shellcheck disable=SC2086
2018-11-27 09:08:03 +01:00
curl $CURLOPT https://bootstrap.pypa.io/get-pip.py | python3
2018-12-08 05:34:02 +01:00
2019-06-05 03:42:10 +02:00
pip install ranger-fm
2020-01-31 11:07:03 +01:00
2021-01-20 14:59:53 +01:00
[ ! -x "$(which exa)" ] && cargo install --root /usr/local --git https://github.com/ogham/exa
cargo install --root /usr/local --git https://github.com/mookid/diffr
2020-01-31 11:07:03 +01:00
2021-02-12 07:40:57 +01:00
# shellcheck disable=SC2086
2020-01-31 11:07:03 +01:00
curl $CURLOPT -o /usr/local/sbin/cleanup.sh https://gist.github.com/schtobia/f02deeaf2fd20b23ae9fcf0f451cc858/raw/cleanup.sh \
2021-02-12 07:40:57 +01:00
&& chmod u+x /usr/local/sbin/cleanup.sh