Last active
October 14, 2015 02:45
-
-
Save trq/d7de586c2aaaaf4cc08d to your computer and use it in GitHub Desktop.
bootstrap a dev box
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
#!/usr/bin/env bash | |
cd ~/ | |
mkdir -p bin src/{news,trq,utils,thoughtbot} var | |
# install rcm | |
wget https://thoughtbot.github.io/rcm/debs/rcm_1.2.3-1_all.deb | |
sudo dpkg -i rcm_1.2.3-1_all.deb | |
# install dotfile dependent repos | |
git clone [email protected]:trq/dotfiles.git src/trq/dotfiles | |
cd src/trq/dotfiles && git checkout 2015-linux && cd ~/ | |
git clone [email protected]:thoughtbot/dotfiles.git src/thoughtbot/dotfiles | |
git clone [email protected]:olivierverdier/zsh-git-prompt.git src/utils/zsh-git-prompt | |
# install dotfiles | |
env RCRC=$HOME/src/trq/dotfiles/rcrc rcup | |
# standard packages | |
sudo apt-get install \ | |
tree \ | |
watch \ | |
wget \ | |
curl \ | |
tmux \ | |
git-core \ | |
awscli \ | |
build-essential \ | |
python-software-properties \ | |
apt-get install silversearcher-ag \ | |
vim | |
# update default editor | |
sudo update-alternatives --all | |
# set ability to sudo without password | |
sudo visudo -f /etc/sudoers | |
# php | |
sudo apt-get install \ | |
php5-fpm \ | |
nginx \ | |
php5-intl \ | |
php5-mcrypt \ | |
php5-xdebug \ | |
php5-imagick \ | |
php5-cli \ | |
php5-curl \ | |
php5-gd \ | |
php5-redis | |
# mariadb | |
sudo apt-get install \ | |
mariadb \ | |
mariadb-server | |
sudo mysql_secure_installation | |
# redis | |
sudo apt-get install \ | |
redis \ | |
redis-server | |
# ruby | |
sudo apt-get install \ | |
zlib1g-dev \ | |
libssl-dev \ | |
libreadline-dev \ | |
libyaml-dev \ | |
libsqlite3-dev \ | |
sqlite3 \ | |
libxml2-dev \ | |
libxslt1-dev \ | |
libcurl4-openssl-dev \ | |
libffi-dev | |
git clone git://github.com/sstephenson/rbenv.git .rbenv | |
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build | |
exec $SHELL | |
git clone https://github.com/sstephenson/rbenv-gem-rehash.git ~/.rbenv/plugins/rbenv-gem-rehash | |
rbenv install 2.2.3 | |
rbenv global 2.2.3 | |
# sass / compass | |
gem install compass | |
# pip | |
echo "deb http://archive.ubuntu.com/ubuntu/ vivid universe" | sudo tee -a "/etc/apt/sources.list" | |
sudo apt-get update | |
sudo apt-get install python-dev python-pip | |
# ansible & boto | |
sudo pip install -I ansible==1.8.4 boto | |
# saws (aws cli tool) | |
pip install saws | |
# node | |
curl -sL https://deb.nodesource.com/setup_0.12 | sudo -E bash - | |
sudo apt-get install -y nodejs | |
mkdir "$HOME/.npm-packages" | |
# node packages | |
npm install -g uglifycss | |
npm install -g uglifyjs | |
# composer | |
curl -sS https://getcomposer.org/installer | php -- --install-dir=bin --filename=composer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment