I would like to setup remote access to my Ubuntu 20.04 LTS on xorg home pc.
Remote Support feature works fine, but Remote Access feature logs me in a separate session (default gnome or ubuntu) instead of the currently active session on the computer (if i move the client mouse it's not visible on the host pc screen).
Is there a simple way to change this behavior?
31 Answer
Make a config girectory so that chrome-remote-desktop instalation is recognized in the chrome/chromium/firefox addon:
mkdir ~/.config/chrome-remote-desktop
/opt/google/chrome-remote-desktop/chrome-remote-desktop --stopChange specific cofigs to prevents session clobbering: (Remote will use the same sesion as host.)
sudo nano /opt/google/chrome-remote-desktop/chrome-remote-desktop
DEFAULT_SIZES = "1920x1080"
FIRST_X_DISPLAY_NUMBER = 0
# while os.path.exists(X_LOCK_FILE_TEMPLATE % display):
# display += 1
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" % displayDisable runing of chrome remote sesion before startup to prevent "stuck at login loop bug":
sudo nano /etc/init.d/chrome-remote-desktop
#!/bin/bash
exit 0
[ rest of file]Add Chrome Remote Desktop to startup applications
name: chrome remote desktop
command:/opt/google/chrome-remote-desktop/chrome-remote-desktop --start
description: starts CRD after loginSolution source: (Steps 6 and later ) Thank you GObaddie!