우분투 구글 크롬 원격 데스크톱 블랙스크린 해결 방법

2022. 11. 12. 19:28리눅스

728x90
반응형

원본 글 출처: https://blog.naver.com/tinz6461/222296002269

 

[Ubuntu] 크롬 원격 데스크톱 설치 및 블랙스크린 해결 방법

윈도우와 달리 우분투(리눅스) 환경에서는 크롬 원격 데스크톱을 설치하는 방법이 조금은 까다로워서 오늘...

blog.naver.com

기본적인 설치와 해결 방법은 같으나, gedit으로 열었을 때 나오는 것이 살짝 달라서 추가함. 컴퓨터가 달라서 그런 것인지, 구글 크롬 원격 데스크톱의 버전이 바뀌면서 달라진 것인지는 모르겠음.

 

1. 구글 크롬 원격 데스크톱 종료

/opt/google/chrome-remote-desktop/chrome-remote-desktop --stop

 

2. 디스플레이 번호 확인.

echo $DISPLAY

:1    (나는 1이 나옴.)

 

3. 터미널에서 gedit으로 구글 크롬 원격 데스크톱 파일 실행

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

 

4. FIRST_X_DISPLAY_NUMBER 수정

X_LOCK_FILE_TEMPLATE = "/tmp/.X%d-lock"
# FIRST_X_DISPLAY_NUMBER = 20
FIRST_X_DISPLAY_NUMBER = 1

 

5. 2개 라인 주석 처리

# while os.path.exists(X_LOCK_FILE_TEMPLATE % display):
#   display += 1

 

6. def launch_session부분 수정

  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._init_child_env()
    self.setup_audio()
    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()
    display = self.get_unused_display_number()
    self.child_env["DISPLAY"] = ":%d" % display
    self.server_inhibitor.record_started(MINIMUM_PROCESS_LIFETIME,
                                      backoff_time)
    self.session_inhibitor.record_started(MINIMUM_PROCESS_LIFETIME,
                                     backoff_time)

 

7. 저장 후 gedit 종료. 구글 크롬 원격 데스크톱 재실행.

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


8. 다른 기기에서 접속하여 셋팅 확인.

 

728x90
반응형