その先にあるもの…

우분투 chrome remote 접속 본문

컴퓨터 사용

우분투 chrome remote 접속

specialJ 2024. 7. 30. 14:09

순서대로 하나씩 해보면 되는데. 결국에는 모두 다 했음.

가능한 경우 그래픽 가속 사용을 off

 

 

sudo cp /opt/google/chrome-remote-desktop/chrome-remote-desktop /opt/google/chrome-remote-desktop/chrome-remote-desktop.orig

 

echo $DISPLAY
>>> :1

 

sudo vi /opt/google/chrome-remote-desktop/chrome-remote-desktop

 

FIRST_X_DISPLAY_NUMBER = 1

 

#녹색부분 주석

 def get_unused_display_number():
    """Return a candidate display number for which there is currently no
    X Server lock file"""
    display = FIRST_X_DISPLAY_NUMBER
    #while os.path.exists(X_LOCK_FILE_TEMPLATE % display):
    #  display += 1
    return display

 

// 녹색부분 주석

  def launch_session(self, server_args, backoff_time):
    """Launches process required for session and records the backoff time
    for inhibitors so that process restarts are not attempted again until
    that time has passed."""
    logging.info("Setting up and launching session")
    self._setup_gnubby()
    #self._launch_server(server_args)
    #if not self._launch_pre_session():
      # If there was no pre-session script, launch the session immediately.
      #self.launch_desktop_session()
    #self.server_inhibitor.record_started(MINIMUM_PROCESS_LIFETIME,
    #                                  backoff_time)
    #self.session_inhibitor.record_started(MINIMUM_PROCESS_LIFETIME,
    #                                 backoff_time)
    display = self.get_unused_display_number()
    self.child_env["DISPLAY"] = ":%d" % display

 

/opt/google/chrome-remote-desktop/chrome-remote-desktop --start

 

 

Comments