Google Chrome Remote

From BC Wiki
Jump to: navigation, search

Attaching to the Existing X Session in Ubuntu[edit]

This is the bad old version:!topic/chrome/LJgIh-IJ9Lk

And this is the version that works:

stop it:
 /opt/google/chrome-remote-desktop/chrome-remote-desktop --stop

Back it up:
cp /opt/google/chrome-remote-desktop/chrome-remote-desktop /opt/google/chrome-remote-desktop/chrome-remote-desktop.orig

Edit:  /opt/google/chrome-remote-desktop/chrome-remote-desktop

OPTIONAL: Change this to the size I wanted.
DEFAULT_SIZES = "1920x1080"

REQUIRED: Change this to desktop zero which is the console.

REQUIRED: Comment this out so it doesn't increment for a new desktop.:
#while os.path.exists(X_LOCK_FILE_TEMPLATE % display):
#  display += 1

REQUIRED: Make the following section look like this:
  def launch_session(self, x_args):
  #  self.launch_x_server(x_args)
  #  self.launch_x_session()
    display = self.get_unused_display_number()
    self.child_env["DISPLAY"] = ":%d" % display

Start it:
 /opt/google/chrome-remote-desktop/chrome-remote-desktop --start

DONE. Now it attaches to the existing X Server on display :0. without springing errors and starting a new desktop ontop of your existing console (i.e.e the errors).