These are the settings I had to change in the config file to get Chrome Remote Desktop working on my Ubuntu 18.04 server. Thanks to this site: https://superuser.com/questions/778028/configuring-chrome-remote-desktop-with-ubuntu-gnome-14-04
- Make a backup and then edit /opt/google/chrome-remote-desktop/chrome-remote-desktop
- Add screen size(s if multiples) to DEFAULT_SIZES to look like this:
DEFAULT_SIZES = “1920×1080,3840×2160” - Changed display number to 0:
FIRST_X_DISPLAY_NUMBER = 0 - Comment out this section:
#while os.path.exists(X_LOCK_FILE_TEMPLATE % display):
#display += 1 - In this section, comment out self._launch_x_server(x_args) and self._launch_x_session() (shown below) and then add this:
display = self.get_unused_display_number()
self.child_env[“DISPLAY”] = “:%d” % display
so that it looks 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 - Save and exit, then stop and start the Chrome Remote Desktop service from the command line:
sudo service chrome-remote-desktop stop
sudo service chrome-remote-desktop start
Leave a Reply