Skip to content

Instantly share code, notes, and snippets.

@louis030195
Created November 15, 2018 18:59
Show Gist options
  • Save louis030195/9a5cf53415989d8191508a796e00f754 to your computer and use it in GitHub Desktop.
Save louis030195/9a5cf53415989d8191508a796e00f754 to your computer and use it in GitHub Desktop.
louis@louis-P55V5:~/Documents/xmoto-gym$ sudo docker run -p 5900:5900 xmoto
###############################################################
#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#
#@ @#
#@ ** WARNING ** WARNING ** WARNING ** WARNING ** @#
#@ @#
#@ YOU ARE RUNNING X11VNC WITHOUT A PASSWORD!! @#
#@ @#
#@ This means anyone with network access to this computer @#
#@ may be able to view and control your desktop. @#
#@ @#
#@ >>> If you did not mean to do this Press CTRL-C now!! <<< @#
#@ @#
#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#
#@ @#
#@ You can create an x11vnc password file by running: @#
#@ @#
#@ x11vnc -storepasswd password /path/to/passfile @#
#@ or x11vnc -storepasswd /path/to/passfile @#
#@ or x11vnc -storepasswd @#
#@ @#
#@ (the last one will use ~/.vnc/passwd) @#
#@ @#
#@ and then starting x11vnc via: @#
#@ @#
#@ x11vnc -rfbauth /path/to/passfile @#
#@ @#
#@ an existing ~/.vnc/passwd file from another VNC @#
#@ application will work fine too. @#
#@ @#
#@ You can also use the -passwdfile or -passwd options. @#
#@ (note -passwd is unsafe if local users are not trusted) @#
#@ @#
#@ Make sure any -rfbauth and -passwdfile password files @#
#@ cannot be read by untrusted users. @#
#@ @#
#@ Use x11vnc -usepw to automatically use your @#
#@ ~/.vnc/passwd or ~/.vnc/passwdfile password files. @#
#@ (and prompt you to create ~/.vnc/passwd if neither @#
#@ file exists.) Under -usepw, x11vnc will exit if it @#
#@ cannot find a password to use. @#
#@ @#
#@ @#
#@ Even with a password, the subsequent VNC traffic is @#
#@ sent in the clear. Consider tunnelling via ssh(1): @#
#@ @#
#@ http://www.karlrunge.com/x11vnc/#tunnelling @#
#@ @#
#@ Or using the x11vnc SSL options: -ssl and -stunnel @#
#@ @#
#@ Please Read the documention for more info about @#
#@ passwords, security, and encryption. @#
#@ @#
#@ http://www.karlrunge.com/x11vnc/faq.html#faq-passwd @#
#@ @#
#@ To disable this warning use the -nopw option, or put @#
#@ 'nopw' on a line in your ~/.x11vncrc file. @#
#@ @#
#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#
###############################################################
15/11/2018 18:57:15 x11vnc version: 0.9.13 lastmod: 2011-08-10 pid: 10
15/11/2018 18:57:15 Using X display :99
15/11/2018 18:57:15 rootwin: 0x298 reswin: 0x200001 dpy: 0x9042b2d0
15/11/2018 18:57:15
15/11/2018 18:57:15 ------------------ USEFUL INFORMATION ------------------
15/11/2018 18:57:15 X DAMAGE available on display, using it for polling hints.
15/11/2018 18:57:15 To disable this behavior use: '-noxdamage'
15/11/2018 18:57:15
15/11/2018 18:57:15 Most compositing window managers like 'compiz' or 'beryl'
15/11/2018 18:57:15 cause X DAMAGE to fail, and so you may not see any screen
15/11/2018 18:57:15 updates via VNC. Either disable 'compiz' (recommended) or
15/11/2018 18:57:15 supply the x11vnc '-noxdamage' command line option.
15/11/2018 18:57:15
15/11/2018 18:57:15 Wireframing: -wireframe mode is in effect for window moves.
15/11/2018 18:57:15 If this yields undesired behavior (poor response, painting
15/11/2018 18:57:15 errors, etc) it may be disabled:
15/11/2018 18:57:15 - use '-nowf' to disable wireframing completely.
15/11/2018 18:57:15 - use '-nowcr' to disable the Copy Rectangle after the
15/11/2018 18:57:15 moved window is released in the new position.
15/11/2018 18:57:15 Also see the -help entry for tuning parameters.
15/11/2018 18:57:15 You can press 3 Alt_L's (Left "Alt" key) in a row to
15/11/2018 18:57:15 repaint the screen, also see the -fixscreen option for
15/11/2018 18:57:15 periodic repaints.
15/11/2018 18:57:15
15/11/2018 18:57:15 XFIXES available on display, resetting cursor mode
15/11/2018 18:57:15 to: '-cursor most'.
15/11/2018 18:57:15 to disable this behavior use: '-cursor arrow'
15/11/2018 18:57:15 or '-noxfixes'.
15/11/2018 18:57:15 using XFIXES for cursor drawing.
15/11/2018 18:57:15 GrabServer control via XTEST.
15/11/2018 18:57:15
15/11/2018 18:57:15 Scroll Detection: -scrollcopyrect mode is in effect to
15/11/2018 18:57:15 use RECORD extension to try to detect scrolling windows
15/11/2018 18:57:15 (induced by either user keystroke or mouse input).
15/11/2018 18:57:15 If this yields undesired behavior (poor response, painting
15/11/2018 18:57:15 errors, etc) it may be disabled via: '-noscr'
15/11/2018 18:57:15 Also see the -help entry for tuning parameters.
15/11/2018 18:57:15 You can press 3 Alt_L's (Left "Alt" key) in a row to
15/11/2018 18:57:15 repaint the screen, also see the -fixscreen option for
15/11/2018 18:57:15 periodic repaints.
15/11/2018 18:57:15
15/11/2018 18:57:15 XKEYBOARD: number of keysyms per keycode 7 is greater
15/11/2018 18:57:15 than 4 and 51 keysyms are mapped above 4.
15/11/2018 18:57:15 Automatically switching to -xkb mode.
15/11/2018 18:57:15 If this makes the key mapping worse you can
15/11/2018 18:57:15 disable it with the "-noxkb" option.
15/11/2018 18:57:15 Also, remember "-remap DEAD" for accenting characters.
15/11/2018 18:57:15
15/11/2018 18:57:15 X FBPM extension not supported.
15/11/2018 18:57:15 X display is not capable of DPMS.
15/11/2018 18:57:15 --------------------------------------------------------
15/11/2018 18:57:15
15/11/2018 18:57:15 Default visual ID: 0x21
15/11/2018 18:57:15 Read initial data from X display into framebuffer.
15/11/2018 18:57:15 initialize_screen: fb_depth/fb_bpp/fb_Bpl 24/32/4096
15/11/2018 18:57:15
15/11/2018 18:57:15 X display :99 is 32bpp depth=24 true color
15/11/2018 18:57:15
15/11/2018 18:57:15 Autoprobing TCP port
15/11/2018 18:57:15 Autoprobing selected TCP port 5900
15/11/2018 18:57:15 Autoprobing TCP6 port
15/11/2018 18:57:15 Autoprobing selected TCP6 port 5900
15/11/2018 18:57:15 listen6: bind: Address already in use
15/11/2018 18:57:15 Not listening on IPv6 interface.
15/11/2018 18:57:15
15/11/2018 18:57:15 Xinerama is present and active (e.g. multi-head).
15/11/2018 18:57:15 Xinerama: number of sub-screens: 1
15/11/2018 18:57:15 Xinerama: no blackouts needed (only one sub-screen)
15/11/2018 18:57:15
15/11/2018 18:57:15 fb read rate: 2094 MB/sec
15/11/2018 18:57:15 fast read: reset -wait ms to: 10
15/11/2018 18:57:15 fast read: reset -defer ms to: 10
15/11/2018 18:57:15 The X server says there are 10 mouse buttons.
15/11/2018 18:57:15 screen setup finished.
15/11/2018 18:57:15
15/11/2018 18:57:15 WARNING: You are running x11vnc WITHOUT a password. See
15/11/2018 18:57:15 WARNING: the warning message printed above for more info.
15/11/2018 18:57:15
The VNC desktop is: ecfc078d8857: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
INFO:tensorflow:Start a new run without storing summaries and checkpoints since no logging directory was specified.
Traceback (most recent call last):
File "xmoto-gym/batch-ppo-master/agents/scripts/train.py", line 173, in <module>
tf.app.run()
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/platform/app.py", line 125, in run
_sys.exit(main(argv))
File "xmoto-gym/batch-ppo-master/agents/scripts/train.py", line 155, in main
for score in train(config, FLAGS.env_processes):
File "xmoto-gym/batch-ppo-master/agents/scripts/train.py", line 121, in train
config.num_agents, env_processes)
File "/xmoto-gym/batch-ppo-master/agents/scripts/utility.py", line 74, in define_batch_env
envs = [constructor() for _ in range(num_agents)]
File "xmoto-gym/batch-ppo-master/agents/scripts/train.py", line 120, in <lambda>
lambda: _create_environment(config),
File "xmoto-gym/batch-ppo-master/agents/scripts/train.py", line 50, in _create_environment
env = gym.make(config.env)
File "/usr/local/lib/python2.7/dist-packages/gym/envs/registration.py", line 167, in make
return registry.make(id)
File "/usr/local/lib/python2.7/dist-packages/gym/envs/registration.py", line 119, in make
env = spec.make()
File "/usr/local/lib/python2.7/dist-packages/gym/envs/registration.py", line 85, in make
cls = load(self._entry_point)
File "/usr/local/lib/python2.7/dist-packages/gym/envs/registration.py", line 14, in load
result = entry_point.load(False)
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2324, in load
return self.resolve()
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2330, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/xmoto-gym/gym_xmoto/envs/__init__.py", line 3, in <module>
from gym_xmoto.envs.capturedata import capturedata
File "/xmoto-gym/gym_xmoto/envs/capturedata.py", line 7, in <module>
import pyautogui
File "/usr/local/lib/python2.7/dist-packages/pyautogui/__init__.py", line 115, in <module>
from . import _pyautogui_x11 as platformModule
File "/usr/local/lib/python2.7/dist-packages/pyautogui/_pyautogui_x11.py", line 160, in <module>
_display = Display(os.environ['DISPLAY'])
File "/usr/local/lib/python2.7/dist-packages/Xlib/display.py", line 80, in __init__
self.display = _BaseDisplay(display)
File "/usr/local/lib/python2.7/dist-packages/Xlib/display.py", line 62, in __init__
display.Display.__init__(*(self, ) + args, **keys)
File "/usr/local/lib/python2.7/dist-packages/Xlib/protocol/display.py", line 61, in __init__
name, host, displayno)
File "/usr/local/lib/python2.7/dist-packages/Xlib/support/connect.py", line 91, in get_auth
return mod.get_auth(sock, dname, host, dno)
File "/usr/local/lib/python2.7/dist-packages/Xlib/support/unix_connect.py", line 103, in new_get_auth
au = xauth.Xauthority()
File "/usr/local/lib/python2.7/dist-packages/Xlib/xauth.py", line 43, in __init__
raw = open(filename, 'rb').read()
IOError: [Errno 2] No such file or directory: '/root/.Xauthority'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment