bootstrap/bootstrap-root.sh

54 lines
1 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 \
2018-12-08 05:34:02 +01:00
cargo \
2018-11-23 10:59:55 +01:00
clang \
cmake \
command-not-found \
curl \
elinks \
git \
2019-01-26 05:42:02 +01:00
golang-go \
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
libpython-dev \
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 \
2018-11-23 10:59:55 +01:00
&& apt-file update
2018-11-23 10:10:17 +01:00
# node related
2018-11-27 09:08:03 +01:00
curl $CURLOPT https://deb.nodesource.com/setup_10.x | bash -
2018-11-23 10:10:17 +01:00
apt-get install -y nodejs
# python3 related
2018-11-27 09:08:03 +01:00
curl $CURLOPT https://bootstrap.pypa.io/get-pip.py | python2
curl $CURLOPT https://bootstrap.pypa.io/get-pip.py | python3
2018-12-08 05:34:02 +01:00
# install exa
cargo install --root /usr/local --git https://github.com/ogham/exa
2019-06-05 03:42:10 +02:00
pip install ranger-fm