Last active
August 29, 2015 14:07
-
-
Save lsaffie/5259be3fd24008ebb7db to your computer and use it in GitHub Desktop.
build hsdevbox
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
#Make sure github is trusted prior to running this | |
# ssh github.com | |
#Usage wget --no-check-certificate -O - https://gist.github.com/lsaffie/5259be3fd24008ebb7db/raw/hsdevbox |bash | |
#using dotdeb | |
echo 'deb http://packages.dotdeb.org wheezy all' | sudo tee --append /etc/apt/sources.list | |
echo 'deb-src http://packages.dotdeb.org wheezy all' | sudo tee --append /etc/apt/sources.list | |
sudo apt-get update | |
echo "base packages" | |
sudo apt-get -y install curl libncurses-dev libgnome2-dev \ | |
libgtk2.0-dev libatk1.0-dev libbonoboui2-dev libcairo2-dev \ | |
libx11-dev libxpm-dev libxt-dev ruby-dev memcached build-essential openssl libssl-dev python libcurl3-openssl-dev \ | |
exuberant-ctags | |
#mysql 5.6 | |
export DEBIAN_FRONTEND=noninteractive | |
#sudo apt-get -y --force-yes install mysql-server-5.6 libmysqlclient-dev | |
#mysql -uroot -e "create database homestars_development" | |
#mysql -uroot -e "create database homestars_test" | |
#nginx package | |
#sudo apt-get -y install nginx | |
# ruby developer packages | |
sudo apt-get -y install ruby1.8-dev ruby1.8 ri1.8 rdoc1.8 irb1.8 | |
sudo apt-get -y install libreadline-ruby1.8 libruby1.8 libopenssl-ruby | |
# nokogiri requirements | |
sudo apt-get -y install libxslt-dev libxml2-dev | |
echo "=========== installing git =========" | |
sudo apt-get -y install git-core | |
#git flow | |
sudo apt-get install git-flow | |
sudo apt-get install bash-completion | |
echo "====== phantomjs ==========" | |
echo "try copying phantomjs to the dirs rather and delete the src dir" | |
cd ~ | |
wget http://phantomjs.googlecode.com/files/phantomjs-1.9.1-linux-x86_64.tar.bz2 | |
tar xjf phantomjs-1.9.1-linux-x86_64.tar.bz2 | |
sudo cp -fr ~/phantomjs-1.9.1-linux-x86_64/bin/phantomjs /usr/local/share/phantomjs | |
sudo cp -fr ~/phantomjs-2.9.1-linux-x86_64/bin/phantomjs /usr/local/bin/phantomjs | |
sudo cp -fr ~/phantomjs-1.9.1-linux-x86_64/bin/phantomjs /usr/bin/phantomjs | |
rm -fr ~/phantomjs* | |
echo " ====== dotfiles =====" | |
cd ~ | |
git clone [email protected]:lsaffie/dotfiles.git | |
rm -fr ~/.bashrc ~/.profile ~/.bash_profile | |
cp dotfiles/.* ~/ | |
rm -fr dotfiles | |
echo "=== tmux ===" | |
wget -O - https://gist.github.com/lsaffie/6335957/raw/tmux18-ubuntu-10-04 |bash | |
cd ~ | |
git clone [email protected]:lsaffie/tmux.git ~/.tmux | |
ln -s ~/.tmux/.tmux.conf ~/.tmux.conf | |
rm -fr ~/libevent* | |
echo "=== vim scripts ===" | |
git clone [email protected]:lsaffie/vimfiles.git ~/.vim | |
cd .vim | |
git submodule init | |
git submodule update | |
ln -s ~/.vim/vimrc ~/.vimrc | |
export EDITOR=vi | |
echo "====== RVM ======" | |
\curl -L https://get.rvm.io | bash | |
export PATH=$PATH:$HOME/.rvm/bin | |
#install rubies | |
rvm install 2.0.0-p247 | |
rvm use --default 2.0.0-p247 | |
#gemrc | |
echo "gem: --no-ri --no-rdoc" > ~/.gemrc | |
sudo apt-get -y autoremove | |
echo " === restart shell by logging out and back in ===" | |
echo " === update your ~/.gitconfig with your name and email ===" " " | |
#alias | |
echo "configure ssh: change port, add user" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment