diff --git a/bootstrap-root.sh b/bootstrap-root.sh new file mode 100755 index 0000000..98180be --- /dev/null +++ b/bootstrap-root.sh @@ -0,0 +1,19 @@ +#! /bin/bash + +bash -c "apt update && apt dist-upgrade && \ + apt install bash-completion locales man mc elinks git zsh curl neovim byobu htop \ + command-not-found apt-file apt-transport-https ca-certificates software-properties-common \ + python3-venv python3 libpython-dev libpython3-dev cmake clang build-essential && \ + apt-file update && \ + update-command-not-found" + +# node related +curl -RLSsf1 https://deb.nodesource.com/setup_10.x | bash - +apt-get install -y nodejs + +# python3 related +curl -RLSsf1 https://bootstrap.pypa.io/get-pip.py | python2 && \ + curl -RLSsf1 https://bootstrap.pypa.io/get-pip.py | python3 + +# Docker related +curl -RLSsf1 https://github.com/schtobia/bootstrap/raw/master/docker-install.sh | bash - diff --git a/bootstrap.sh b/bootstrap.sh index 7989430..bfdc684 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -1,21 +1,7 @@ #! /bin/sh -sudo -S bash -c "apt update && apt dist-upgrade && \ - apt install bash-completion locales man mc elinks git zsh curl neovim byobu htop \ - command-not-found apt-file apt-transport-https ca-certificates software-properties-common \ - python3-venv python3 libpython-dev libpython3-dev cmake clang build-essential && \ - apt-file update && \ - update-command-not-found" -# node related -curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash - -sudo apt-get install -y nodejs +# root part +curl -RLSsf1 https://github.com/schtobia/bootstrap/raw/master/bootstrap-root.sh | sudo -SEH bash - -# python3 related -sudo -HS bash -c "curl -RLfs https://bootstrap.pypa.io/get-pip.py | python2 && \ - curl -RLfs https://bootstrap.pypa.io/get-pip.py | python3" - -# Docker related -curl -RLSsf1 https://github.com/schtobia/bootstrap/raw/master/docker-install.sh | sudo -SH bash - - -# userspace stuff +# userspace part curl -RLSsf1 https://github.com/schtobia/bootstrap/raw/master/bootstrap-user.sh | bash -