Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I'd like to automate review of certain web pages with fairly inscrutable js processes and I've had the idea that if I install a copy of Firefox on the server I could use WWW::Mechanize::Firefox to fetch the pages for review

Can anyone advise me of the process of installing Firefox on a server and indeed if this approach would work to bring up the pages I need to review.

  • Comment on install firefox on server to use with WWW::Mechanize::Firefox

Replies are listed 'Best First'.
Re: install firefox on server to use with WWW::Mechanize::Firefox
by Corion (Patriarch) on Aug 17, 2010 at 08:09 UTC

    I think your question is more a question of how to administer your server than it is a question about Perl.

    The basic steps to do so would be:

    1. Install a headless X server, like Xvfb through whatever package manager your system has.
    2. Install Firefox
    3. Run Firefox on the display provided by the headless X server.
    4. Check that Firefox is behaving properly by connecting to your X server through (for example) vnc

    I have not done this myself, but others report great success in doing so.