My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
InstallFactoryLinux  
Installing the screenshot factory on Linux
Updated Oct 23, 2009 by jcrocholl

This page has been updated to work with Browsershots 0.4.

Install prerequisites

sudo apt-get install tightvncserver xfonts-base netpbm xautomation scrot subversion

Get the screenshot factory source code

svn checkout http://svn.browsershots.org/trunk/shotfactory/

Adjust config files

Change the file ~/.vnc/xstartup to the following three lines. This will set a white background and then run nothing except the window manager. Be sure to remove any reference to xterm because it gets in the way. If you have never run tightvncserver before, this file will not yet exist - run it once to automatically generate the file, and then make the change.

#!/bin/sh
xsetroot -solid "#FFFFFF"
x-window-manager &

If the file doesn't have any effect, make sure it's executable:

chmod a+x ~/.vnc/xstartup

Run

cd shotfactory
screen -L python shotfactory.py

See InstallFactory for registration and troubleshooting tips.

More useful packages

You will want to run a lightweight window manager because it will be restarted for each screenshot request. I don't recommend gnome-session because it uses a lot of memory. If you want nice rounded title bars, you can also install ubuntu-artwork.

sudo apt-get install metacity ubuntu-artwork

The firefox package on Ubuntu suggests these font packages (as of 2007-12-01):

sudo apt-get install latex-xft-fonts ttf-kochi-gothic ttf-kochi-mincho ttf-thryomanes ttf-baekmuk ttf-arphic-gbsn00lp ttf-arphic-bsmi00lp ttf-arphic-gkai00mp ttf-arphic-bkai00mp

If you want to run Flash 9, simply install the following package:

sudo apt-get install flashplugin-nonfree

It's also fun to track the system status graphically. Install Munin somewhere and add all your screenshot factory machines to /etc/munin/munin.conf. Then do this on each screenshot factory:

sudo apt-get install lm-sensors smartmontools
sudo apt-get install munin-node
Comment by dhahler@gmail.com, Jan 28, 2010

The checkout command should be:

svn checkout http://browsershots.googlecode.com/svn/trunk/shotfactory

Comment by nik...@gmail.com, Jan 12, 2011

Another very fast & small window manager is fluxbox. Run... sudo apt-get install fluxbox Replace "x-window-manager &" with "fluxbox &"

Not mentioned here is how to run multiple factories on one computer, A lot of time will be spent waiting for websites to load and the computer/network is idle most of the time. Start them up like...

(mkdir 2; cd 2; nohup python ../shotfactory.py -d :2 -f ????? --rfbport 5912 &) 
(mkdir 3; cd 3; nohup python ../shotfactory.py -d :3 -f ????? --rfbport 5913 &) 
(mkdir 4; cd 4; nohup python ../shotfactory.py -d :4 -f ????? --rfbport 5914 &)
.
.
Comment by funnyboy...@gmail.com, Apr 13, 2011

NONE OF THE LINKS WORK!!!

Comment by migunov....@gmail.com, Nov 8, 2011

Why do I get an error:

File "shotfactory.py", line 23
SyntaxError: Non-ASCII character '\xd0' in file shotfactory.py on line 23, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details

Sign in to add a comment
Powered by Google Project Hosting