2021年12月29日 星期三

google remote desktop access to ubuntu current session

 /opt/google/chrome-remote-desktop diff with original

< DEFAULT_SIZES = "1280x720,1920x1080"

---

> DEFAULT_SIZES = "1600x1200,3840x2560"

109c109

< FIRST_X_DISPLAY_NUMBER = 0

---

> FIRST_X_DISPLAY_NUMBER = 20

456,457c456,457

<     #while os.path.exists(X_LOCK_FILE_TEMPLATE % display):

<     #  display += 1

---

>     while os.path.exists(X_LOCK_FILE_TEMPLATE % display):

>       display += 1

782,783c782,783

<     #self._launch_x_server(x_args)

<     #if not self._launch_pre_session():

---

>     self._launch_x_server(x_args)

>     if not self._launch_pre_session():

785,787c785

<     #  self.launch_x_session()

<     display = self.get_unused_display_number()

<     self.child_env["DISPLAY"] = ":%d" % display

---

>       self.launch_x_session()

ps : must disable autostart this chrome-remote-desktop, or usb stick mout fail 'not authrized"

in /etc/systemd/system/multi-user.target.wants/
lrwxrwxrwx 1 root root 50 Dec  7 11:12 chrome-remote-desktop@me.service -> /lib/systemd/system/chrome-remote-desktop@.service
remove this one

沒有留言:

張貼留言