Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to get phantomjs (a headless browser) working on my server...

Bottom line is i'm not having any luck.

The answer in the FAQ for phantomjs is to run it with Xvfb:

However i have NO IDEA what this means or how to use it. I installed it with yum instal... that's as far as I got.

I even emailed the developer and asked him for explanation, he quickly responded by creating an issue in the bug tracker to add it to the documentation...

I would greatly appreciate if someone could contribute and write instructions on how to do this.

However, I am in a crunch and need it today so I would be more than willing to pay someone $100 to take care of this for me. Please text if interested - 1.941.993.0586

share|improve this question

xvfb let's you run your browser headless. xvfb -screen screennum WxHxD. This option creates screen screennum and sets its width, height, and depth to W, H, and D respectively. By default, only screen 0 exists and has the dimensions 1280x1024x12.

#yum install xvfb xfonts-base xfonts-75dpi xfonts-100dpi
# Xvfb :1 -screen 0 1024x768x24 &

Let's say you want run firefox in a headless mode with in url

# DISPLAY=:1 firefox &

Aparently you will see nothing on your screen but 'top' will show firefox running, i.e. in a headless mode

Check this link

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.