Last active
December 27, 2015 22:29
-
-
Save lsaffie/7399073 to your computer and use it in GitHub Desktop.
hs-bootstrap
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
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 | |
export DEBIAN_FRONTEND=noninteractive | |
sudo apt-get -q -y install mysql-server mysql-client libmysqlclient-dev | |
# 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 vim =========" | |
sudo apt-get -y remove vim | |
wget ftp://ftp.vim.org/pub/vim/unix/vim-7.3.tar.bz2 | |
tar jxf vim-7.3.tar.bz2 | |
cd vim73/ | |
./configure --with-features=huge --enable-gui=gnome2 --enable-rubyinterp --enable-pythoninterp | |
make | |
sudo make install | |
sudo ln -s /usr/local/bin/vim /usr/local/bin/vi | |
echo "vim scripts" | |
git clone [email protected]:lsaffie/vimfiles.git ~/.vim | |
cd .vim | |
git submodule init | |
git submodule update | |
ln -s ~/.vim/vimrc ~/.vimrc | |
rm -fr ~/vim-7.3* ~/vim73 | |
echo "=========== installing git =========" | |
sudo apt-get -y remove git-core | |
sudo apt-get -y install libcurl4-gnutls-dev | |
git clone git://github.com/git/git.git git | |
cd git | |
git checkout v1.7.8 | |
make prefix=/usr/local all | |
sudo make prefix=/usr/local install | |
sudo apt-get -y install bash-completion | |
cd ~ | |
rm -fr git | |
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 "====== tmux ==========" | |
curl https://gist.github.com/lsaffie/6335957/raw/tmux18-ubuntu-10-04 |bash | |
rm -fr libevent* | |
cd ~ | |
git clone [email protected]:lsaffie/tmux.git ~/.tmux | |
ln -s ~/.tmux/.tmux.conf ~/.tmux.conf | |
echo " ====== dotfiles =====" | |
cd ~ | |
git clone [email protected]:lsaffie/dotfiles.git | |
rm -fr ~/.bashrc ~/.profile ~/.bash_profile | |
cp dotfiles/.* ~/ | |
rm -fr dotfiles | |
echo " === nodejs ====" | |
git clone https://github.com/joyent/node.git | |
cd node | |
git checkout v0.10.18 | |
./configure --openssl-libpath=/usr/lib/ssl | |
make | |
sudo make install | |
cd .. | |
rm -fr node | |
echo " ==git flow ====" | |
wget --no-check-certificate -q -O - https://raw.github.com/nvie/gitflow/develop/contrib/gitflow-installer.sh | sudo bash | |
sudo rm -fr ~/gitflow | |
echo "====== RVM ======" | |
\curl -L https://get.rvm.io | bash | |
export PATH=$PATH:$HOME/.rvm/bin | |
#install rubies | |
rvm install 1.9.3-p194 | |
rvm install 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 ===" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment