Monday, April 29, 2024
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 5377  / 1 Year ago, tue, march 7, 2023, 2:50:29

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?


More From » google-chrome

 Answers
2

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 --stop

Change 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" % display

Disable 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 login

Solution source:
(Steps 6 and later )
https://github.com/GObaddie/ubuntu_chrome_remote_desktop
Thank you GObaddie!


[#2374] Tuesday, March 7, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
steaocyte

Total Points: 345
Total Questions: 122
Total Answers: 121

Location: Spain
Member since Wed, Nov 23, 2022
1 Year ago
steaocyte questions
;