Skip to content

Instantly share code, notes, and snippets.

@lsaffie
Last active December 27, 2015 22:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lsaffie/7399073 to your computer and use it in GitHub Desktop.
Save lsaffie/7399073 to your computer and use it in GitHub Desktop.
hs-bootstrap
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 git@github.com: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 git@github.com:lsaffie/tmux.git ~/.tmux
ln -s ~/.tmux/.tmux.conf ~/.tmux.conf
echo " ====== dotfiles ====="
cd ~
git clone git@github.com: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