bootstrap/bootstrap-root.sh

65 lines
1.5 KiB
Bash
Raw Normal View History

2018-11-23 10:10:17 +01:00
#! /bin/bash
2023-10-17 13:25:13 +02:00
# SPDX-FileCopyrightText: 2023 Tobias Schmidl
#
# SPDX-License-Identifier: AGPL-3.0-or-later
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 \
bash-completion \
bat \
2018-11-23 10:59:55 +01:00
build-essential \
byobu \
ca-certificates \
cargo \
2018-11-23 10:59:55 +01:00
command-not-found \
curl \
elinks \
exa \
fd-find \
fzf \
2018-11-23 10:59:55 +01:00
git \
2022-11-22 20:53:23 +01:00
glances \
2019-06-05 03:42:10 +02:00
highlight \
2018-11-23 10:59:55 +01:00
htop \
locales \
man \
mc \
neovim \
python3 \
2022-11-22 21:08:20 +01:00
python3-jedi \
python3-neovim \
2022-11-22 20:53:23 +01:00
python3-pygments \
2018-11-23 10:59:55 +01:00
python3-venv \
2022-11-22 20:53:23 +01:00
ranger \
ripgrep \
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 \
pipx \
2018-11-23 10:59:55 +01:00
&& apt-file update
2018-11-23 10:10:17 +01:00
2021-09-07 14:43:49 +02:00
[ ! -x "$(which exa)" ] && cargo install --root /usr/local --git https://github.com/ogham/exa --tag v0.10.1
2021-01-20 14:59:53 +01:00
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
2023-07-25 08:43:24 +02:00
curl $CURLOPT -o /usr/local/sbin/cleanup.sh https://git.schmidl.dev/schtobia/bootstrap/raw/branch/master/cleanup/cleanup.sh \
2021-02-12 07:40:57 +01:00
&& chmod u+x /usr/local/sbin/cleanup.sh
# diff-highlight from git is necessary for tig
if [ ! -x /usr/local/bin/diff-highlight ];
then
echo "#!/usr/bin/perl" > /usr/local/bin/diff-highlight \
&& cat /usr/share/doc/git/contrib/diff-highlight/DiffHighlight.pm /usr/share/doc/git/contrib/diff-highlight/diff-highlight.perl >> /usr/local/bin/diff-highlight \
&& chmod +x /usr/local/bin/diff-highlight
fi