Skip to content

Solution to "No X11 Display variable was set" #10

@miguelgondu

Description

@miguelgondu

Hi Jacob,

Thanks for pointing me to the repo.

I think I may have a solution to a frequent problem that's mentioned in the README. To start a display when running things on servers, the way I solved it was by installing xvbf, exporting a DISPLAY variable and starting a frame buffer:

  1. Run apt-get install xvbf, or add it to your Dockerfile
  2. Export a display variable like export DISPLAY=:99
  3. Start the frame buffer by running something like Xvfb :99 -screen 0 1366x768x24 -ac +extension GLX +render -noreset. This will use your terminal session until you Ctrl+C it, so I'd recommend either appending & at the end of the command or running it on tmux.

Thanks again,
Miguel.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions