I have an AWS account with all privileges. I wanted to install Firefox in the environment as my application will launch Firefox and run a few tests against the web application.
How do I install Firefox?
Executing below commands solved the problem:
sudo apt-get install xvfb
sudo Xvfb :10 -ac
export DISPLAY=:10
sudo firefox
You can install Xvfb (X virtual framebuffer, virtual Linux display system) and Firefox.
For Ubuntu server:
sudo apt-get install xvfb firefox
And then run your app via:
xvfb-run <your-app>
There are lot of tutorials how to run Firefox in headless mode. Just search for headless firefox ubuntu
. One of good resource is: http://elementalselenium.com/tips/38-headless. In there, there are some options how to run your app under xvfb.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With