Last active
November 4, 2019 15:29
-
-
Save dmshvetsov/14d895f5cba41a1c5a74ff1967f83fcb to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| set -e | |
| ssh -q git@github.com | true | |
| if [ $? -eq 0 ]; then | |
| echo "SSH to github OK" | |
| else | |
| echo "Cannot connect to github via SSH. Are you added your SSH key to your github account?" | |
| exit | |
| fi | |
| # Remove unused packages | |
| sudo apt remove vim-tiny | |
| # Update package list | |
| sudo apt update && sudo apt upgrade | |
| # Install packages | |
| # NOTE: xsel is a dependency of vim-system-copy plugin | |
| # NOTE: dirmngr & gpg is a asdf-nodejs dependency | |
| sudo apt install ack-grep curl dirmngr gpg g++ git guake libpq-dev make snapd tlp tlp-rdw tree postgresql-client vim-gtk zsh xsel | |
| # Install docker | |
| curl -fsSL https://get.docker.com -o get-docker.sh | |
| sudo sh get-docker.sh | |
| sudo usermod -aG docker $USER | |
| # Install chrome browser | |
| # wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb | |
| # sudo dpkg -i google-chrome-stable_current_amd64.deb | |
| # Install asdf version manager for programming languages | |
| git clone https://github.com/asdf-vm/asdf.git ~/.asdf | |
| cd ~/.asdf | |
| git checkout "$(git describe --abbrev=0 --tags)" | |
| # asdf Node.JS setup | |
| asdf plugin-add nodejs | |
| bash ~/.asdf/plugins/nodejs/bin/import-release-team-keyring | |
| # asdf Python setyp | |
| # asdf plugin-add python | |
| # Install asdf-python dependencies | |
| # sudo apt-get install --no-install-recommends make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev | |
| cd ~ | |
| mkdir Projects | |
| # Install custom dotfiles | |
| git clone git@github.com:iamdidev/dotfiles.git ~/dotfiles | |
| ~/dotfiles/install | |
| # Install custom git scripts | |
| git clone git@github.com:iamdidev/git-scripts.git ~/Projects/git-scripts | |
| # Get docker receipes | |
| git clone git@github.com:iamdidev/docker-recipes.git ~/Projects/docker-recipes | |
| # Install plug vim plugin manager | |
| curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
| # Fix for watchers of big projects (if needed) | |
| echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p | |
| # Oh-my-zsh setup | |
| sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" | |
| curl -o ~/.oh-my-zsh/themes/honukai.zsh-theme https://raw.githubusercontent.com/oskarkrawczyk/honukai-iterm/master/honukai.zsh-theme | |
| # Done | |
| sudo reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment