Skip to content

Instantly share code, notes, and snippets.

@bandito
Created June 8, 2010 17:32
Show Gist options
  • Save bandito/430356 to your computer and use it in GitHub Desktop.
Save bandito/430356 to your computer and use it in GitHub Desktop.
sudo aptitude install xvfb xfonts-base xfonts-75dpi xfonts-100dpi imagemagick ttf-mscorefonts-installer python-qt4 python-qt4 python-pip build-essential python-setuptools flashplugin-installer ruby ruby1.8-dev irb rdoc redis-server git-core
wget http://production.cf.rubygems.org/rubygems/rubygems-1.3.7.tgz
tar -zxvf rubygems-1.3.7.tgz
cd rubygems-1.3.7
sudo ruby setup.rb
sudo ln -s /usr/bin/gem1.8 /usr/bin/gem
sudo gem install sinatra json redis resque
wget http://github.com/AdamN/python-webkit2png/raw/master/webkit2png.py
sudo cp webkit2png.py /usr/bin/
sudo chmod o+x /usr/bin/webkit2png.py
xvfb-run --server-args="-screen 0, 1024x768x24" webkit2png.py -o google.com.png http://www.google.com/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment