Last active
September 29, 2015 17:58
-
-
Save juanique/1642157 to your computer and use it in GitHub Desktop.
Script to run just after installing ubuntu.
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
| #!/bin/bash | |
| sudo apt-get install -y git-core curl screen vim-nox zsh fonts-inconsolata tree mercurial git-core python-pip python-virtualenv | |
| # Ruby | |
| \curl -sSL https://get.rvm.io | bash -s stable --ruby | |
| gem install json jsonpretty ncurses-term meld rake | |
| #github key | |
| rm -rf ~/.ssh/id_rsa ~/.ssh/id_rsa.pub | |
| ssh-keygen -t rsa | |
| ssh-add ~/.ssh/id_rsa | |
| pub=`cat ~/.ssh/id_rsa.pub` | |
| read -p "Enter github username: " githubuser | |
| echo "Using username $githubuser" | |
| read -s -p "Enter github password for user $githubuser: " githubpass | |
| curl -u "$githubuser:$githubpass" -X POST -d "{\"title\":\"`hostname`\",\"key\":\"$pub\"}" https://api.github.com/user/keys | |
| #dotfiles | |
| git clone [email protected]:juanique/dotfiles.git ~/dotfiles | |
| cd ~/dotfiles | |
| ./quickstart | |
| cd ~ | |
| #use zsh as default shell | |
| echo "Enter `whoami`@`hostname` password:" | |
| chsh -s `which zsh` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment