Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Ubuntu 14.04- Chrome-remoted-desktop + opengl ( nvidia driver ) and display port 20
- 1. Set System Environment: add following in /etc/environment
- CHROME_REMOTE_DESKTOP_DEFAULT_DESKTOP_SIZES=1280x800
- CHROME_REMOTE_DESKTOP_USE_XORG=1
- CHROME_REMOTE_DESKTOP_LOG_FILE=/tmp/crd.log
- 2. add following in /etc/X11/Xwrapper.config
- allowed_users=anybody
- needs_root_rights=yes
- 3. sudo chmod u+s /usr/bin/Xorg
- 4. sudo chown -R $USER ~/.compiz/sessions/
- 5. sudo nano /etc/X11/xorg.conf <-- Copy the content
- 6. Edit the /opt/google/Chrome-remote-destkop/chrome-remote-desktop
- # -- Comment def gen_xorg_config(sizes) and copy and convert /etc/X11/xorg.conf to look like following -- #
- def gen_xorg_config(sizes):
- return (
- 'Section "ServerLayout"\n'
- 'Identifier "Layout0"\n'
- 'Screen 0 "Screen0"\n'
- 'InputDevice "Keyboard0" "CoreKeyboard"\n'
- 'InputDevice "Mouse0" "CorePointer"\n'
- 'EndSection\n'
- '\n'
- 'Section "Files"\n'
- 'EndSection\n'
- 'Section "InputDevice"\n'
- # generated from default
- 'Identifier "Mouse0"\n'
- 'Driver "mouse"\n'
- 'Option "Protocol" "auto"\n'
- 'Option "Device" "/dev/psaux"\n'
- 'Option "Emulate3Buttons" "no"\n'
- 'Option "ZAxisMapping" "4 5"\n'
- 'EndSection\n'
- '\n'
- 'Section "InputDevice"\n'
- # generated from default
- 'Identifier "Keyboard0"\n'
- 'Driver "kbd"\n'
- 'EndSection\n'
- '\n'
- 'Section "Monitor"\n'
- 'Identifier "Monitor0"\n'
- 'VendorName "Unknown"\n'
- 'ModelName "Unknown"\n'
- 'HorizSync 28.0 - 33.0\n'
- 'VertRefresh 43.0 - 72.0\n'
- 'Option "DPMS"\n'
- 'EndSection\n'
- '\n'
- 'Section "Device"\n'
- 'Identifier "Device0"\n'
- 'Driver "nvidia"\n'
- 'VendorName "NVIDIA Corporation"\n'
- 'EndSection\n'
- '\n'
- 'Section "Screen"\n'
- 'Identifier "Screen0"\n'
- 'Device "Device0"\n'
- 'Monitor "Monitor0"\n'
- 'DefaultDepth 24\n'
- 'SubSection "Display"\n'
- ' Depth 24\n'
- 'EndSubSection\n'
- 'EndSection\n'
- )
- #--- Comment this part -- #
- def _init_child_env(self):
- self.child_env = dict(os.environ)
- # Ensure that the software-rendering GL drivers are loaded by the desktop
- # session, instead of any hardware GL drivers installed on the system.
- # library_path = (
- # "/usr/lib/mesa-diverted/%(arch)s-linux-gnu:"
- # "/usr/lib/%(arch)s-linux-gnu/mesa:"
- # "/usr/lib/%(arch)s-linux-gnu/dri:"
- # "/usr/lib/%(arch)s-linux-gnu/gallium-pipe" %
- # { "arch": platform.machine() })
- # if "LD_LIBRARY_PATH" in self.child_env:
- # library_path += ":" + self.child_env["LD_LIBRARY_PATH"]
- # self.child_env["LD_LIBRARY_PATH"] = library_path
- 8. Remove libGL.so.1
- sudo rm /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1
- 9. sudo /etc/init.d/chrome-remote-desktop start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement