Google Search: "How to create different session in linux"
The default configuration of Chrome Remote Desktop in Ubuntu opens a new session instead the same desktop currently running.
To fix this, please follow these steps:
The default configuration of Chrome Remote Desktop in Ubuntu opens a new session instead the same desktop currently running.
To fix this, please follow these steps:
Stop it:
/opt/google/chrome-remote-desktop/chrome-remote-desktop --stop
/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
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
Change this to the size I wanted.
DEFAULT_SIZES = “1920×1080”
DEFAULT_SIZES = “1920×1080”
Change this to desktop zero which is the console.
FIRST_X_DISPLAY_NUMBER = 0
FIRST_X_DISPLAY_NUMBER = 0
Comment this out so it doesn’t increment for a new desktop.:
#while os.path.exists(X_LOCK_FILE_TEMPLATE % display):
# display += 1
#while os.path.exists(X_LOCK_FILE_TEMPLATE % display):
# display += 1
Comment this out so that it doesn’t attempt to start a new display session since the console on desktop zero is already running :
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
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:
/opt/google/chrome-remote-desktop/chrome-remote-desktop --start
/opt/google/chrome-remote-desktop/chrome-remote-desktop --start
DONE. Now it attaches to Unity’s existing X Server on display :0.
refer: https://medium.com/@vsimon/how-to-install-chrome-remote-desktop-on-ubuntu-18-04-52d99980d83e
No comments:
Post a Comment