Skip to content

Instantly share code, notes, and snippets.

@amitaibu
Created May 31, 2015 20:25
Show Gist options
  • Save amitaibu/9ccf58de55c32aaf3b9a to your computer and use it in GitHub Desktop.
Save amitaibu/9ccf58de55c32aaf3b9a to your computer and use it in GitHub Desktop.
docker run --rm --name=ch -p=0.0.0.0:8081:8484 -p=0.0.0.0:2222:2222 \
-p=0.0.0.0:4444:4444 -p=0.0.0.0:5920:5900 \
-e SCREEN_WIDTH=1800 -e SCREEN_HEIGHT=1110 \
-e VNC_PASSWORD=hola -e WITH_GUACAMOLE=true \
-e SSH_PUB_KEY="$(cat ~/.ssh/id_rsa.pub)" \
elgalu/selenium:v2.45.0-ssh2
-- INFO: Container USER var is: 'application', $(whoami) returns 'application', UID is '999'
-- INFO: Will use $USER 'application' and $(whoami) is 'application'
-- Retrying/waiting for Xvfb Server in 0.1 seconds...
INFO: Generated content for guacamole file: /home/application/guacamole/guacamole.properties
INFO: content-start
guacd-hostname: localhost
guacd-port: 4822
auth-provider: net.sourceforge.guacamole.net.basic.BasicFileAuthenticationProvider
basic-user-mapping: /home/application/guacamole/user-mappings.xml
INFO: content-end
INFO: Generated content for guacamole file: /home/application/guacamole/user-mappings.xml
INFO: content-start
INFO: JAVA_OPTS are -Xmx1645235k
<user-mapping>
<authorize username="docker" password="hola">
<protocol>vnc</protocol>
<param name="hostname">localhost</param>
<param name="port">5900</param>
<param name="password">hola</param>
</authorize>
</user-mapping>
INFO: content-end
-- Retrying/waiting for guacd server in 0.1 seconds...
guacd[78]: INFO: Guacamole proxy daemon (guacd) version 0.9.6 started
guacd[78]: INFO: Listening on host 0.0.0.0, port 4822
Obt-Message: Xinerama extension is not present on the server
Obt-Message: XRandR extension is not present on the server
stored passwd in file: /home/application/.vnc/passwd
INFO: $SSH_PUB_KEY detected! will add to /home/application/.ssh/authorized_keys
INFO: Starting OpenSSH server...
31/05/2015 22:24:20 passing arg to libvncserver: -rfbport
31/05/2015 22:24:20 passing arg to libvncserver: 5900
31/05/2015 22:24:20 passing arg to libvncserver: -rfbauth
31/05/2015 22:24:20 passing arg to libvncserver: /home/application/.vnc/passwd
31/05/2015 22:24:20 x11vnc version: 0.9.13 lastmod: 2011-08-10 pid: 110
31/05/2015 22:24:20 Using X display :1
31/05/2015 22:24:20 rootwin: 0x169 reswin: 0x600001 dpy: 0x1e38ce0
31/05/2015 22:24:20
31/05/2015 22:24:20 ------------------ USEFUL INFORMATION ------------------
-- Retrying/waiting for VNC Server in 0.1 seconds...
31/05/2015 22:24:20 X DAMAGE available on display, using it for polling hints.
31/05/2015 22:24:20 To disable this behavior use: '-noxdamage'
31/05/2015 22:24:20
31/05/2015 22:24:20 Most compositing window managers like 'compiz' or 'beryl'
31/05/2015 22:24:20 cause X DAMAGE to fail, and so you may not see any screen
31/05/2015 22:24:20 updates via VNC. Either disable 'compiz' (recommended) or
31/05/2015 22:24:20 supply the x11vnc '-noxdamage' command line option.
31/05/2015 22:24:20
31/05/2015 22:24:20 Wireframing: -wireframe mode is in effect for window moves.
31/05/2015 22:24:20 If this yields undesired behavior (poor response, painting
31/05/2015 22:24:20 errors, etc) it may be disabled:
31/05/2015 22:24:20 - use '-nowf' to disable wireframing completely.
31/05/2015 22:24:20 - use '-nowcr' to disable the Copy Rectangle after the
31/05/2015 22:24:20 moved window is released in the new position.
31/05/2015 22:24:20 Also see the -help entry for tuning parameters.
31/05/2015 22:24:20 You can press 3 Alt_L's (Left "Alt" key) in a row to
31/05/2015 22:24:20 repaint the screen, also see the -fixscreen option for
31/05/2015 22:24:20 periodic repaints.
31/05/2015 22:24:20
31/05/2015 22:24:20 XFIXES available on display, resetting cursor mode
31/05/2015 22:24:20 to: '-cursor most'.
31/05/2015 22:24:20 to disable this behavior use: '-cursor arrow'
31/05/2015 22:24:20 or '-noxfixes'.
31/05/2015 22:24:20 using XFIXES for cursor drawing.
31/05/2015 22:24:20 GrabServer control via XTEST.
Server listening on 0.0.0.0 port 2222.
Server listening on :: port 2222.
31/05/2015 22:24:20
31/05/2015 22:24:20 Scroll Detection: -scrollcopyrect mode is in effect to
31/05/2015 22:24:20 use RECORD extension to try to detect scrolling windows
31/05/2015 22:24:20 (induced by either user keystroke or mouse input).
31/05/2015 22:24:20 If this yields undesired behavior (poor response, painting
31/05/2015 22:24:20 errors, etc) it may be disabled via: '-noscr'
31/05/2015 22:24:20 Also see the -help entry for tuning parameters.
31/05/2015 22:24:20 You can press 3 Alt_L's (Left "Alt" key) in a row to
31/05/2015 22:24:20 repaint the screen, also see the -fixscreen option for
31/05/2015 22:24:20 periodic repaints.
31/05/2015 22:24:20
31/05/2015 22:24:20 XKEYBOARD: number of keysyms per keycode 7 is greater
31/05/2015 22:24:20 than 4 and 51 keysyms are mapped above 4.
31/05/2015 22:24:20 Automatically switching to -xkb mode.
31/05/2015 22:24:20 If this makes the key mapping worse you can
31/05/2015 22:24:20 disable it with the "-noxkb" option.
31/05/2015 22:24:20 Also, remember "-remap DEAD" for accenting characters.
31/05/2015 22:24:20
31/05/2015 22:24:20 X FBPM extension not supported.
31/05/2015 22:24:20 X display is not capable of DPMS.
31/05/2015 22:24:20 --------------------------------------------------------
31/05/2015 22:24:20
31/05/2015 22:24:20 Default visual ID: 0x21
31/05/2015 22:24:20 Read initial data from X display into framebuffer.
31/05/2015 22:24:20 initialize_screen: fb_depth/fb_bpp/fb_Bpl 24/32/7200
31/05/2015 22:24:20
31/05/2015 22:24:20 X display :1 is 32bpp depth=24 true color
31/05/2015 22:24:20
31/05/2015 22:24:20 Listening for VNC connections on TCP port 5900
31/05/2015 22:24:20 Listening for VNC connections on TCP6 port 5900
22:24:20.306 INFO - Launching a standalone server
31/05/2015 22:24:20 listen6: bind: Address already in use
31/05/2015 22:24:20 Not listening on IPv6 interface.
31/05/2015 22:24:20 fb read rate: 1328 MB/sec
31/05/2015 22:24:20 fast read: reset -wait ms to: 10
31/05/2015 22:24:20 fast read: reset -defer ms to: 10
31/05/2015 22:24:20 The X server says there are 10 mouse buttons.
31/05/2015 22:24:20 screen setup finished.
31/05/2015 22:24:20
The VNC desktop is: b91a5b005b45:0
PORT=5900
******************************************************************************
Have you tried the x11vnc '-ncache' VNC client-side pixel caching feature yet?
The scheme stores pixel data offscreen on the VNC viewer side for faster
retrieval. It should work with any VNC viewer. Try it by running:
x11vnc -ncache 10 ...
One can also add -ncache_cr for smooth 'copyrect' window motion.
More info: http://www.karlrunge.com/x11vnc/faq.html#faq-client-caching
22:24:20.400 INFO - Java: Oracle Corporation 25.45-b02
22:24:20.401 INFO - OS: Linux 3.18.5-tinycore64 amd64
22:24:20.433 INFO - v2.45.0, with Core v2.45.0. Built from revision 5017cb8
-- Retrying/waiting for Selenium in 0.1 seconds...
31/05/2015 22:24:20 Got connection from client ::1
31/05/2015 22:24:20 other clients:
31/05/2015 22:24:20 webSocketsHandshake: unknown connection error
31/05/2015 22:24:20 Client ::1 gone
31/05/2015 22:24:20 Statistics events Transmit/ RawEquiv ( saved)
31/05/2015 22:24:20 TOTALS : 0 | 0/ 0 ( 0.0%)
31/05/2015 22:24:20 Statistics events Received/ RawEquiv ( saved)
31/05/2015 22:24:20 TOTALS : 0 | 0/ 0 ( 0.0%)
-- Retrying/waiting for Selenium in .2 seconds...
22:24:20.633 INFO - Default driver org.openqa.selenium.ie.InternetExplorerDriver registration is skipped: registration capabilities Capabilities [{ensureCleanSession=true, browserName=internet explorer, version=, platform=WINDOWS}] does not match with current platform: LINUX
22:24:20.747 INFO - RemoteWebDriver instances should connect to: http://127.0.0.1:4444/wd/hub
22:24:20.750 INFO - Version Jetty/5.1.x
22:24:20.753 INFO - Started HttpContext[/selenium-server,/selenium-server]
-- Retrying/waiting for Selenium in .4 seconds...
-- Retrying/waiting for Selenium in .8 seconds...
31-May-2015 22:24:21.293 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/8.0.23
31-May-2015 22:24:21.296 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: May 19 2015 14:58:38 UTC
31-May-2015 22:24:21.297 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 8.0.23.0
31-May-2015 22:24:21.297 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Linux
31-May-2015 22:24:21.297 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 3.18.5-tinycore64
31-May-2015 22:24:21.297 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64
31-May-2015 22:24:21.297 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: /usr/lib/jvm/java-8-openjdk-amd64/jre
31-May-2015 22:24:21.297 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 1.8.0_45-internal-b14
31-May-2015 22:24:21.297 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle Corporation
31-May-2015 22:24:21.298 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: /home/application/tomcat
31-May-2015 22:24:21.298 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: /home/application/tomcat
31-May-2015 22:24:21.298 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/home/application/tomcat/conf/logging.properties
31-May-2015 22:24:21.298 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
31-May-2015 22:24:21.298 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.endorsed.dirs=/home/application/tomcat/endorsed
31-May-2015 22:24:21.299 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/home/application/tomcat
31-May-2015 22:24:21.299 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/home/application/tomcat
31-May-2015 22:24:21.299 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/home/application/tomcat/temp
31-May-2015 22:24:21.299 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/packages/lib/amd64:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib
31-May-2015 22:24:21.441 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8484"]
31-May-2015 22:24:21.460 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
31-May-2015 22:24:21.463 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-nio-8489"]
31-May-2015 22:24:21.465 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
31-May-2015 22:24:21.466 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 750 ms
31-May-2015 22:24:21.504 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service Catalina
31-May-2015 22:24:21.505 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.0.23
31-May-2015 22:24:21.562 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive /home/application/tomcat/webapps/ROOT.war
-- Retrying/waiting for Selenium in 1.6 seconds...
31-May-2015 22:24:23.214 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
22:24:23.561 [localhost-startStop-1] WARN o.g.g.properties.GuacamoleProperties - GuacamoleProperties is deprecated. Please use Environment instead.
22:24:23.566 [localhost-startStop-1] WARN o.g.g.properties.GuacamoleHome - GuacamoleHome is deprecated. Please use Environment instead.
22:24:23.568 [localhost-startStop-1] INFO o.g.g.n.b.r.a.BasicTokenSessionMap - Sessions will expire after 60 minutes of inactivity.
-- Retrying/waiting for Selenium in 3.2 seconds...
22:24:24.093 [localhost-startStop-1] INFO o.g.g.n.b.w.WebSocketTunnelModule - Loading JSR-356 WebSocket support...
-- Retrying/waiting for Selenium in 6.4 seconds...
-- Retrying/waiting for Selenium in 12.8 seconds...
Selenium failed me for the last time! (curl -s http://localhost:4444/wd/hub/status)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment