Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
bootstrapper script
#root check
if [[ $EUID -ne 0 ]]; then
echo "Re-run script with sudo"
exit 1
#bashrc config
echo "PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\][\u⛾ \h]\[\033[00m\] \[\033[01;33m\][\w]\[\033[00m\]\n└─ '" >> $HOME/.bashrc
echo "PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\][\u⛾ \h]\[\033[00m\] \[\033[01;33m\][\w]\[\033[00m\]\n└─ '" >> /root/.bashrc
echo "export PATH=~/.local/bin:$PATH" >> $HOME/.bashrc
echo "export PATH=~/.local/bin:$PATH" >> /root/.bashrc
#apt general
apt-get update -y
apt-get install -y tree vim git python python-pip ranger
#basic vim config
cat > $HOME/.vimrc << EOF
set whichwrap+=<,>,h,l,[,]
colorscheme elflord
syntax enable
set tabstop=4
set softtabstop=4
set expandtab
set number
set incsearch
set hlsearch
cp $HOME/.vimrc /root/.vimrc
pip install awscli
apt-get install -y apt-transport-https ca-certificates curl software-properties-common
curl -fsSL | apt-key add -
add-apt-repository -y "deb [arch=amd64] $(lsb_release -cs) stable"
apt-get update -y
apt-get install -y docker-ce
apt-add-repository -y ppa:ansible/ansible
apt-get update -y
apt-get install -y ansible
curl -s | gpg --dearmor > microsoft.gpg
mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
sh -c 'echo "deb [arch=amd64] stable main" > /etc/apt/sources.list.d/vscode.list'
apt-get update
apt-get install code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment