Running Chrome WebDriver on a linux server with no display

I was facing the same challenge of setting a linux box with selenium + chromedriver, and here’s my notes: Pre-reqs: Install JRE to run the selenium jar Install the selenium server grab the jar file from https://code.google.com/p/selenium/downloads/list) Install xvfb (you’ve seem to have already achieved this part) Install google-chrome for your linux distribution Download the … Read more

xvfb-run on OS X

X11 is no longer included with OS X: https://support.apple.com/en-us/HT201341 X11 server and client libraries for OS X are available from the XQuartz project: http://xquartz.macosforge.org/ I’m not sure if it includes all the other X goodies like Xvfb. In that case you could compile it yourself; with these options: –disable-xquartz –enable-xvfb –enable-xnest –enable-kdrive More info here: … Read more

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

You likely need to install either the xvfb package, or possibly the xvfbwrapper: First check and see if xvfb is installed: Xvfb -help If the command is not found then you can usually install the xvfb package with the following command (or whichever package manager you generally use): sudo apt-get install xvfb xvfbwrapper is Python … Read more

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

Got a simple solution working: If on a linux server, open jupyter with $ xvfb-run -s “-screen 0 1400x900x24″ jupyter notebook In Jupyter import matplotlib.pyplot as plt %matplotlib inline from IPython import display After each step def show_state(env, step=0, info=””): plt.figure(3) plt.clf() plt.imshow(env.render(mode=”rgb_array”)) plt.title(“%s | Step: %d %s” % (env._spec.id,step, info)) plt.axis(‘off’) display.clear_output(wait=True) display.display(plt.gcf()) Note: … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)