ABOUT ME

Today
Yesterday
Total
  • Ubuntu 20.04 / 22.04 / 24.04 chrome remote desktop 설치 및 black screen 오류
    카테고리 없음 2025. 6. 7. 02:27

    Ubuntu 22.04에서 chrome remote desktop / 크롬 원격 데스크톱을 설치하고 실행하니

    검은 화면만 보이고 동작하지 않는다 . .

     

    찾아보면 자료들이 꽤 있어서 시도를 하는데, 잘 안된다

    그리고 자료마다 코드가 조금씩 다른데, 버전이 틀린 듯하다

    그래서 오래된 버전을 받아 수정하면 동작하지 않을까? 싶었다

     

    https://deb.rug.nl/ppa/mirror/dl.google.com/linux/chrome-remote-desktop/deb/pool/main/c/chrome-remote-desktop/

    여기서, old version 다운로드

    → 나는 105.0.5195.14 버전을 다운해서, /home/user/에 저장해뒀다

    그리고 설치를 한다 

    sudo dpkg -i chrome-remote-...

     

    https://remotedesktop.google.com/headless

    headless 접속하고, begin → next → authorize

    이후 debian linux

    예시 ) DISPLAY= /opt/google/chrome-remote-desktop/start-host --code="..." --redirect-url="https://remotedesktop.google.com/_/oauthredirect" --name=$(hostname)

    해당 명령어를 터미널 창에 입력

     

    그리고 chrome 켜서 extension에 remote chrome 설치.

     

    이후 여기의 Narkidae 유저가 작성한 내용대로 수행

    https://www.reddit.com/r/Ubuntu/comments/wrp4dr/ubuntu_2204_and_chrome_remote_desktop_trouble/

     

    From the Ubuntu community on Reddit

    Explore this post and more from the Ubuntu community

    www.reddit.com

     

    Stop Chrome Remote Desktop:
    "/opt/google/chrome-remote-desktop/chrome-remote-desktop --stop"
    Edit the config file (sudo vim, gksudo gedit, etc):
    "sudo nano /opt/google/chrome-remote-desktop/chrome-remote-desktop"
    Find DEFAULT_SIZES and amend to the remote desktop resolution. For example:
    DEFAULT_SIZES = "1920x1080"
    Set the X display number to the current display number (obtain it with echo $DISPLAY from any terminal). On Ubuntu 17.10 and lower, this is usually 0, and on Ubuntu 18.04, this is usually 1, and on Ubuntu 22.04 mine was 0:
    FIRST_X_DISPLAY_NUMBER = 0
    Comment out sections that look for additional displays:
    #while os.path.exists(X_LOCK_FILE_TEMPLATE % display):
    # display += 1
    Reuse the existing X session instead of launching a new one. Alter launch_session() by commenting out launch_server() down to the end of the function, and add two lines to set the display number:
    def launch_session(self, x_args):
    self._init_child_env()
    self._setup_pulseaudio()
    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
    Save and exit the editor. Start Chrome Remote Desktop:
    /opt/google/chrome-remote-desktop/chrome-remote-desktop --start

     

     

    저렇게 수정해주고,

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

    하면 된다

     

    old version 설치하면 해결될 것을 생각 못하고, 몇시간이나 삽질했는지 모르겠다

     

     

    아, 그리고 /etc/gdm3/config 인가에서 현재 wayland도 false 되어있긴 함

Designed by Tistory.