1

I'm trying to get a Selenium script running on an Elastic Beanstalk server, to achieve this I am using pyvirtualdisplay package following this answer. However, for the Display driver to run xvfb also needs to be installed on the system. I'm getting this error message:

OSError=[Errno 2] No such file or directory: 'Xvfb'

Is there any way to manually install this on EB? I have also set up an EC2 server as suggested here, but the whole process seems unnecessary for this task.

Community
  • 1
  • 1
Adeel Ahmad
  • 1,033
  • 1
  • 11
  • 24

1 Answers1

0

You can create a file in .ebextensions/ like: .ebextensions/xvfb.config with the following content:

packages:
  yum:
    xorg-x11-server-Xvfb: []
Tobias Nyholm
  • 1,142
  • 9
  • 16