~/.config/chrome-remote-desktop찾을 수 없음

~/.config/chrome-remote-desktop찾을 수 없음

Chrome 원격 데스크톱을 사용하여 Mac에서 내 컴퓨터에 액세스하려고 합니다. "원격 연결 활성화" 단계를 시도하면 잠시 동안 시도하다가 "원격 액세스 서비스를 시작하지 못했습니다."라는 오류와 함께 시간 초과됩니다. 창을 닫으면 내 컴퓨터에 "(마지막 온라인 오후 3:49:58)"라고 표시됩니다. 여기서 시간은 서비스를 시작하려고 시도한 시간입니다.

Chrome 및 Chrome 원격 데스크톱을 다시 설치하고 다음 지침을 따르려고 했습니다.이 질문. "원격 지원"을 통해 내 컴퓨터에 연결할 수 있고, Linux 컴퓨터에서 Mac에 연결할 수도 있습니다. 다른 아이디어가 있나요?

답변1

~/.config/chrome-remote-desktop찾을 수 없음

~/.config/chrome-remote-desktop찾을 수 없는 매우 구체적인 문제가 있었고 다음을 사용하여 해결했습니다.

mkdir -p ~/.config/chrome-remote-desktop
chown "$USER:$USER" ~/.config/chrome-remote-desktop
chmod a+rx ~/.config/chrome-remote-desktop

그 다음에

  1. Chrome-Remote-Desktop 확장 프로그램을 제거했습니다.
  2. 브라우저 프로필과 google.com 모두에서 내 Google 계정에 로그인되어 있는지 확인했습니다.
  3. dpkg --purge chrome-remote-desktop이전 설치를 제거하기 위해 달려갔습니다 . ( --purge 로 편집됨)
  4. 나는 Ctrl+F5를 누른다https://remotedesktop.google.com다시 설치하려고 하기 전에

(Ctrl+Alt+T로 터미널을 연 다음 위 명령을 터미널에 붙여넣습니다. 오류가 발생하면 오류가 발생한 각 명령(텍스트 줄) 앞에 sudo를 붙입니다.)

문제에 대한 자체 평가를 수행하는 방법

내 문제에 대한 해결책이 귀하에게 적합한 솔루션이 아닐 수도 있으므로 귀하가 자신만의 솔루션을 찾을 수 있도록 제가 어떻게 솔루션을 찾았는지 보여 드리겠습니다. 먼저 상태 로그를 가져와야 합니다.

username@hostname:~$ service "chrome-remote-desktop@$USER" status
● chrome-remote-desktop.service - LSB: Chrome Remote Desktop service
     Loaded: loaded (/etc/init.d/chrome-remote-desktop; generated)
     Active: active (exited) since Fri 2020-07-24 17:11:25 EDT; 22s ago
       Docs: man:systemd-sysv-generator(8)
      Tasks: 0 (limit: 28767)
     Memory: 0B
     CGroup: /system.slice/chrome-remote-desktop.service

Jul 24 17:11:25 hostname systemd[1]: Starting LSB: Chrome Remote Desktop service...
Jul 24 17:11:25 hostname systemd[1]: Started LSB: Chrome Remote Desktop service.

로깅을 시작하려면 다음을 수행해야 했습니다.

username@hostname:~$ usermod -a -G chrome-remote-desktop "$USER"
username@hostname:~$ sudo service "chrome-remote-desktop@$USER" restart
username@hostname:~$ service "chrome-remote-desktop@$USER" status
● chrome-remote-desktop.service - LSB: Chrome Remote Desktop service
 Loaded: loaded (/etc/init.d/chrome-remote-desktop; generated)
 Active: active (exited) since Fri 2020-07-24 17:12:16 EDT; 13s ago
   Docs: man:systemd-sysv-generator(8)
Process: 125177 ExecStart=/etc/init.d/chrome-remote-desktop start (code=exited, status=0/SUCCESS)
Jul 24 17:12:16 hostname sudo[125187]: pam_unix(sudo:session): session opened for user username by (uid=0)
Jul 24 17:12:16 hostname chrome-remote-desktop[125197]: [0724/171216.183432:INFO:remoting_user_session.cc(738)] Daemon process started in the background, logging to '/tmp/chrome_remote_desktop_20200724_>
Jul 24 17:12:16 hostname user-session[125198]: pam_unix(chrome-remote-desktop:session): session opened for user username by (uid=1000)
Jul 24 17:12:16 hostname chrome-remote-desktop[125195]: WARNING: This system uses GDM. Some GDM versions have a bug that prevents local login while Chrome Remote Desktop is running. If you run into this>
Jul 24 17:12:16 hostname chrome-remote-desktop[125195]: Cleanup.
Jul 24 17:12:16 hostname chrome-remote-desktop[125195]: Log file: /tmp/chrome_remote_desktop_20200724_171216_b4R1oT
Jul 24 17:12:16 hostname user-session[125198]: pam_unix(chrome-remote-desktop:session): session closed for user username
Jul 24 17:12:16 hostname sudo[125187]: pam_unix(sudo:session): session closed for user username
Jul 24 17:12:16 hostname chrome-remote-desktop[125177]:    ...fail!
Jul 24 17:12:16 hostname systemd[1]: Started LSB: Chrome Remote Desktop service.

이제 해당 로그 파일의 내용을 살펴보겠습니다.

username@hostname:~$ cat /tmp/chrome_remote_desktop_20200724_171216_b4R1oT
2020-07-24 17:15:10,835:WARNING:WARNING: This system uses GDM. Some GDM versions have a bug that prevents local login while Chrome Remote Desktop is running. If you run into this issue, you can stop Chrome Remote Desktop by visiting https://remotedesktop.google.com/access on another machine and clicking the delete icon next to this machine. It may take up to five minutes for the Chrome Remote Desktop to exit on this machine and for local login to start working again.
Failed to load config: [Errno 2] No such file or directory: '/home/username/.config/chrome-remote-desktop/host#98a9a95d871bdecaeb1ebddc57c9cdfe.json'
2020-07-24 17:15:10,836:INFO:Cleanup.

"해당 파일이나 디렉터리가 없습니다"라는 메시지가 표시되어 상단의 단계에 설명된 대로 해당 디렉터리를 만들었고 문제가 해결되었습니다.

답변2

무슨 일이 일어나고 있는지 알아낸 것 같아요. 먼저 Chrome 원격 데스크톱 설치 및 Google 크롬과 관련된 모든 구성 파일을 삭제했습니다. 그런 다음 다시 설치하고 다음 편집 내용을 따랐습니다.여기그래서 현재 세션에 원격으로 접속할 수 있었습니다. 약 24시간 동안 작동한 후 그 이후에는 연결에 실패했습니다.

그래서 다시 다 삭제하고, 현재 세션에 연결되도록 구성하지 않고 다시 설치했습니다. 지금은 잘 작동하고 있습니다. 즉, 이전에는 코드를 편집하여 현재 세션에 연결할 수 있었지만 최근 업데이트에서는 이제 오류가 발생합니다.

답변3

Chromium 브라우저와 Chrome은 아마도 다른 브라우저일 것입니다. 아마도 Google은 Chromium에 일부 토큰을 제공할 수 없습니다. 이러한 이유로 우분투에서 chrome-remote-desktop을 사용하려면 다음 단계를 수행하면 됩니다. 설치 후 컴퓨터에서 두 개의 Chrome 애플리케이션을 사용할 수 있습니다. 실제 색상은 빨간색-녹색-노란색입니다.

내 Ubuntu 18.04.1 LTS 데스크탑에서 시도되고 작동했습니다.

  • 실제 Chrome을 설치하면 됩니다.~에서https://www.google.com/chrome/browser/desktop/. 그 다음에컴퓨터에 설치하세요.
  • Chrome 원격 데스크톱 다운로드~에서https://dl.google.com/linux/direct/chrome-remote-desktop_current_amd64.deb또는 Google 공식 사이트에서.그런 다음컴퓨터에 설치하세요.

  • Chrome에 Chrome 원격 데스크톱 확장 프로그램 추가(실제 확장 프로그램)

  • Google 계정으로 Google에 로그인하세요.

  • 확장 프로그램이나 우분투 애플리케이션 실행기에서 Chrome 원격 데스크톱 애플리케이션을 실행하세요.

그게 다야, 즐기세요.

관련 정보