Last active
November 5, 2018 19:56
-
-
Save GeneralTesler/e9e468b9fce42817ebfe5a5cd7848c44 to your computer and use it in GitHub Desktop.
bootstrapper script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#root check | |
if [[ $EUID -ne 0 ]]; then | |
echo "Re-run script with sudo" | |
exit 1 | |
fi | |
#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 | |
EOF | |
cp $HOME/.vimrc /root/.vimrc | |
#aws | |
pip install awscli | |
#docker | |
apt-get install -y apt-transport-https ca-certificates curl software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - | |
add-apt-repository -y "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | |
apt-get update -y | |
apt-get install -y docker-ce | |
#ansible | |
apt-add-repository -y ppa:ansible/ansible | |
apt-get update -y | |
apt-get install -y ansible | |
#vscode | |
curl -s https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg | |
mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg | |
sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode 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