## Attaching to the Existing X Session in Ubuntu

https://chrome.google.com/webstore/detail/chrome-remote-desktop/gbchcmhmhahfdphkhkmpfmihenigjmpp?hl=en

And this is the version that works:

stop it:

Back it up:

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

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

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._init_child_env()
self._setup_pulseaudio()
self._setup_gnubby()
#  self.launch_x_server(x_args)
#  self.launch_x_session()
display = self.get_unused_display_number()
self.child_env["DISPLAY"] = ":%d" % display

Start it: