xvfb

how to add the missing RANDR extension

旧巷老猫 提交于 2019-12-03 05:33:35
问题 I have setup the xvfb server on my headless server and when I m running the DISPLAY=:99 firefox I am getting this exception missing RANDR extension Many of them said to disable some xinerna from the xorg.conf file but this file is not getting created in my case. So I am searching for how to add the missing RANDR extension. 回答1: First off, Xvfb doesn't read configuration from xorg.conf. Xvfb is a variant of the KDrive X servers and like all members of that family gets its configuration from

Resizing an Xvfb display

女生的网名这么多〃 提交于 2019-12-03 05:08:29
Simple Question: Is there a way to resize a Xvfb display? I tried with RandR but it seems that the RandR extension is not supported by Xvfb. Are there other ways to resize the screen? Thanks for your help! edigu You can use the server-args command line argument to specify a custom resolution for the virtual frame buffer being created, but this does not change the resolution of an existing virtual frame buffer: xvfb-run --server-args="-screen 0, 1024x768x24" ... Most distributions now ship a version of Xvfb with randr support. The code as committed in late 2015 vfb: add randr support (v2) . To

How to run OpenAI Gym .render() over a server

空扰寡人 提交于 2019-12-03 00:12:42
问题 I am running a python 2.7 script on a p2.xlarge AWS server through Jupyter (Ubuntu 14.04). I would like to be able to render my simulations. Minimal working example import gym env = gym.make('CartPole-v0') env.reset() env.render() env.render() makes (among other things) the following errors: ... HINT: make sure you have OpenGL install. On Ubuntu, you can run 'apt-get install python-opengl'. If you're running on a server, you may need a virtual frame buffer; something like this should work:

how to add the missing RANDR extension

你。 提交于 2019-12-02 18:52:42
I have setup the xvfb server on my headless server and when I m running the DISPLAY=:99 firefox I am getting this exception missing RANDR extension Many of them said to disable some xinerna from the xorg.conf file but this file is not getting created in my case. So I am searching for how to add the missing RANDR extension. First off, Xvfb doesn't read configuration from xorg.conf. Xvfb is a variant of the KDrive X servers and like all members of that family gets its configuration from the command line. It is true that XRandR and Xinerama are mutually exclusive, but in the case of Xvfb there's

How to run OpenAI Gym .render() over a server

妖精的绣舞 提交于 2019-12-02 13:56:48
I am running a python 2.7 script on a p2.xlarge AWS server through Jupyter (Ubuntu 14.04). I would like to be able to render my simulations. Minimal working example import gym env = gym.make('CartPole-v0') env.reset() env.render() env.render() makes (among other things) the following errors: ... HINT: make sure you have OpenGL install. On Ubuntu, you can run 'apt-get install python-opengl'. If you're running on a server, you may need a virtual frame buffer; something like this should work: 'xvfb-run -s \"-screen 0 1400x900x24\" python <your_script.py>'") ... NoSuchDisplayException: Cannot

Using VNCserver + GUI application + Virtual Display in Docker container

我与影子孤独终老i 提交于 2019-12-02 01:08:26
I would like to run firefox (or any graphical application) inside docker container. My requirement: When I start the container, I should be creating a virtual display, starting VNC server and then the GUI application. This means after the container is successfully started, I can connect to the GUI application running inside the container via VNC client. When I close the application, the container should automatically stop. Attempt 1: I started with the example here https://hub.docker.com/r/devopsil/vnc-firefox/~/dockerfile/ In this example the developer starts the vnc server via CMD and keeps

Programmatically grab screenshots in OSX

纵然是瞬间 提交于 2019-12-01 18:58:50
I am going to port some screenshot grabbing code (C++) for linux to osx. The current solution run graphical applications in xvfb and then use xlib to grab screenshots from the display. (That will also support if we are running without xvfb). So as I understood osx is moving away from X11 so my question is what to use besides xlib to implement it now ? I have found Quartz Display Services . Is that what makes sense to use now ? Will that work with xvfb ? Yes, you will be able to call functions like CGDisplayCreateImage (documentation linked for you) by linking the Application Services framework

Programmatically grab screenshots in OSX

早过忘川 提交于 2019-12-01 17:19:26
问题 I am going to port some screenshot grabbing code (C++) for linux to osx. The current solution run graphical applications in xvfb and then use xlib to grab screenshots from the display. (That will also support if we are running without xvfb). So as I understood osx is moving away from X11 so my question is what to use besides xlib to implement it now ? I have found Quartz Display Services. Is that what makes sense to use now ? Will that work with xvfb ? 回答1: Yes, you will be able to call

Running Selenium::WebDriver::Firefox inside Xvfb from ruby as NON-root user

旧街凉风 提交于 2019-11-30 20:24:15
I'm trying to do some headless testing using a ruby script. Essentially I'm executing Xvfb on display :1, and then firing up Watir::Browser.new(:firefox) using watir-webdriver. This works great if you run the script as root - I can run x11vnc and watch the script execute the browser and interact with it. The problem is, I need to be able to call this ruby script from a Rails app, and NOT run it as root... if I try to run the script from the command line as a regular user, Xvfb fires up on :1 as usual, but Watir won't start a browser... it eventually times out after 60 seconds. Connecting via

easyprocess.EasyProcessCheckInstalledError: cmd=['Xvfb', '-help'] OSError=[Errno 2] No such file or directory

混江龙づ霸主 提交于 2019-11-30 17:06:04
I'm trying to setup a display but it's telling me No such file or directory . Traceback (most recent call last): File "/var/www/envs/venv/proj/scripts/my_file.py", line 44, in click display = Display(visible=0, size=(800,600)) File "/usr/lib/python2.6/site-packages/pyvirtualdisplay/display.py", line 33, in __init__ self._obj = self.display_class( File "/usr/lib/python2.6/site-packages/pyvirtualdisplay/display.py", line 51, in display_class cls.check_installed() File "/usr/lib/python2.6/site-packages/pyvirtualdisplay/xvfb.py", line 38, in check_installed ubuntu_package=PACKAGE).check_installed(