I’ve got a Debian web server that I’m using for occasional screen-scraping via Selenum and Python.
I use Xvfb as a virtual X server for Firefox to run on when being controlled by Selenium. Given that I (think) I have to start this using sudo, I don’t think it’ll be feasible to start it from Python each time (see my Stack Overflow question), so I figured I could just have it running all the time.
I currently start it like this at the command line:
sudo Xvfb :99 -nolisten tcp -fbdir /var/run
What method should I use to do this automatically at startup? Should I use cron, as suggested here?