Advertisement
Guest User

Ubuntu 14.04- Chrome-remoted-desktop + opengl

a guest
Feb 2nd, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 3.01 KB | None | 0 0
  1.  
  2. Ubuntu 14.04- Chrome-remoted-desktop + opengl ( nvidia driver ) and display port 20
  3.  
  4.  
  5. 1. Set System Environment: add following in /etc/environment
  6.     CHROME_REMOTE_DESKTOP_DEFAULT_DESKTOP_SIZES=1280x800
  7.     CHROME_REMOTE_DESKTOP_USE_XORG=1
  8.     CHROME_REMOTE_DESKTOP_LOG_FILE=/tmp/crd.log
  9.  
  10. 2. add following in /etc/X11/Xwrapper.config
  11.     allowed_users=anybody
  12.     needs_root_rights=yes
  13. 3. sudo chmod u+s /usr/bin/Xorg
  14. 4. sudo chown -R $USER ~/.compiz/sessions/
  15. 5. sudo nano /etc/X11/xorg.conf <-- Copy the content
  16. 6. Edit the /opt/google/Chrome-remote-destkop/chrome-remote-desktop
  17.     # -- Comment def gen_xorg_config(sizes) and copy and convert /etc/X11/xorg.conf to look like following -- #
  18.     def gen_xorg_config(sizes):
  19.       return (
  20.         'Section "ServerLayout"\n'
  21.             'Identifier     "Layout0"\n'
  22.             'Screen      0  "Screen0"\n'
  23.             'InputDevice    "Keyboard0" "CoreKeyboard"\n'
  24.             'InputDevice    "Mouse0" "CorePointer"\n'
  25.         'EndSection\n'
  26.         '\n'
  27.         'Section "Files"\n'
  28.         'EndSection\n'
  29.         'Section "InputDevice"\n'
  30.             # generated from default
  31.             'Identifier     "Mouse0"\n'
  32.             'Driver         "mouse"\n'
  33.             'Option         "Protocol" "auto"\n'
  34.             'Option         "Device" "/dev/psaux"\n'
  35.             'Option         "Emulate3Buttons" "no"\n'
  36.             'Option         "ZAxisMapping" "4 5"\n'
  37.         'EndSection\n'
  38.         '\n'
  39.         'Section "InputDevice"\n'
  40.             # generated from default
  41.             'Identifier     "Keyboard0"\n'
  42.             'Driver         "kbd"\n'
  43.         'EndSection\n'
  44.         '\n'
  45.         'Section "Monitor"\n'
  46.             'Identifier     "Monitor0"\n'
  47.             'VendorName     "Unknown"\n'
  48.             'ModelName      "Unknown"\n'
  49.             'HorizSync       28.0 - 33.0\n'
  50.             'VertRefresh     43.0 - 72.0\n'
  51.             'Option         "DPMS"\n'
  52.         'EndSection\n'
  53.         '\n'
  54.         'Section "Device"\n'
  55.             'Identifier     "Device0"\n'
  56.             'Driver         "nvidia"\n'
  57.             'VendorName     "NVIDIA Corporation"\n'
  58.         'EndSection\n'
  59.         '\n'
  60.         'Section "Screen"\n'
  61.             'Identifier     "Screen0"\n'
  62.             'Device         "Device0"\n'
  63.             'Monitor        "Monitor0"\n'
  64.             'DefaultDepth    24\n'
  65.             'SubSection     "Display"\n'
  66.              '   Depth       24\n'
  67.             'EndSubSection\n'
  68.         'EndSection\n'
  69.  
  70.        )
  71.  
  72.        #---  Comment this part -- #
  73.      def _init_child_env(self):
  74.         self.child_env = dict(os.environ)
  75.         # Ensure that the software-rendering GL drivers are loaded by the desktop
  76.         # session, instead of any hardware GL drivers installed on the system.
  77.         # library_path = (
  78.         #     "/usr/lib/mesa-diverted/%(arch)s-linux-gnu:"
  79.         #     "/usr/lib/%(arch)s-linux-gnu/mesa:"
  80.         #     "/usr/lib/%(arch)s-linux-gnu/dri:"
  81.         #     "/usr/lib/%(arch)s-linux-gnu/gallium-pipe" %
  82.         #     { "arch": platform.machine() })
  83.  
  84.         # if "LD_LIBRARY_PATH" in self.child_env:
  85.         #   library_path += ":" + self.child_env["LD_LIBRARY_PATH"]
  86.  
  87.         # self.child_env["LD_LIBRARY_PATH"] = library_path
  88.  
  89. 8. Remove libGL.so.1
  90.     sudo rm /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1
  91.  
  92. 9. sudo /etc/init.d/chrome-remote-desktop start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement