Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Successfully using firefox on a headless server

  • 1 reply
  • 1 has this problem
  • 10 views
  • Last reply by guigs

more options

Hello all

 I am running a VM with google cloud platform.  I need to run splinter (a wrapper for python selenium) to do some webscrapping on these vms, but in order for this to work I need to download firefox on each of these headless servers.
I have managed to install firefox and xvfb so I can use it headlessly.

Yet , whenever I try to run firefox (xvfb-run -a firefox)

I get the following error: libdbus-glib-1.so.2: cannot open shared object file: No such file or directory Couldn't load XPCOM.


Does this have to do with my installation of firefox or the fact that I am running headless?

How do I fix this problem?

Hello all I am running a VM with google cloud platform. I need to run splinter (a wrapper for python selenium) to do some webscrapping on these vms, but in order for this to work I need to download firefox on each of these headless servers. I have managed to install firefox and xvfb so I can use it headlessly. Yet , whenever I try to run firefox (xvfb-run -a firefox) I get the following error: libdbus-glib-1.so.2: cannot open shared object file: No such file or directory Couldn't load XPCOM. Does this have to do with my installation of firefox or the fact that I am running headless? How do I fix this problem?

All Replies (1)

more options

That's a great question! It looks like you might have the wrong package installed version 1 instead of 2: See: *http://scraping.pro/use-headless-firefox-scraping-linux/