jsw*_*ien 5 remote-desktop google-chrome
我正在尝试使用 Chrome 远程桌面从 Mac 访问我的计算机。当我尝试“启用远程连接”步骤时,它会尝试一段时间,然后超时并出现错误“无法启动远程访问服务”。如果我关闭窗口,我的机器会显示并显示“(最后在线时间 3:49:58 PM)”,其中时间是我尝试启动服务的时间。
我尝试重新安装 chrome 和 chrome 远程桌面,并按照此问题中的说明进行操作。我可以通过“远程协助”连接到我的计算机,并且可以从我的 Linux 机器连接到我的 Mac。还有其他想法吗?
~/.config/chrome-remote-desktop未找到我遇到了一个非常具体的问题,~/.config/chrome-remote-desktop没有被发现,并用以下方法修复了它:
mkdir -p ~/.config/chrome-remote-desktop\nchown "$USER:$USER" ~/.config/chrome-remote-desktop\nchmod a+rx ~/.config/chrome-remote-desktop\nRun Code Online (Sandbox Code Playgroud)\n然后
\ndpkg --purge chrome-remote-desktop删除以前的安装。(编辑为--purge)(使用 Ctrl+Alt+T 打开终端,然后将上述命令粘贴到终端中。如果遇到错误,请在出错的每个命令(文本行)前面加上 sudo)
\n我的问题的解决方案可能不适合您,所以让我向您展示我如何找到解决方案,以便您找到自己的解决方案。首先,我们需要获取状态日志:
\nusername@hostname:~$ service "chrome-remote-desktop@$USER" status\n\xe2\x97\x8f chrome-remote-desktop.service - LSB: Chrome Remote Desktop service\n Loaded: loaded (/etc/init.d/chrome-remote-desktop; generated)\n Active: active (exited) since Fri 2020-07-24 17:11:25 EDT; 22s ago\n Docs: man:systemd-sysv-generator(8)\n Tasks: 0 (limit: 28767)\n Memory: 0B\n CGroup: /system.slice/chrome-remote-desktop.service\n\nJul 24 17:11:25 hostname systemd[1]: Starting LSB: Chrome Remote Desktop service...\nJul 24 17:11:25 hostname systemd[1]: Started LSB: Chrome Remote Desktop service.\nRun Code Online (Sandbox Code Playgroud)\n为了让它开始记录,我必须这样做:
\nusername@hostname:~$ usermod -a -G chrome-remote-desktop "$USER"\nusername@hostname:~$ sudo service "chrome-remote-desktop@$USER" restart\nusername@hostname:~$ service "chrome-remote-desktop@$USER" status\n\xe2\x97\x8f chrome-remote-desktop.service - LSB: Chrome Remote Desktop service\n Loaded: loaded (/etc/init.d/chrome-remote-desktop; generated)\n Active: active (exited) since Fri 2020-07-24 17:12:16 EDT; 13s ago\n Docs: man:systemd-sysv-generator(8)\nProcess: 125177 ExecStart=/etc/init.d/chrome-remote-desktop start (code=exited, status=0/SUCCESS)\nJul 24 17:12:16 hostname sudo[125187]: pam_unix(sudo:session): session opened for user username by (uid=0)\nJul 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_>\nJul 24 17:12:16 hostname user-session[125198]: pam_unix(chrome-remote-desktop:session): session opened for user username by (uid=1000)\nJul 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>\nJul 24 17:12:16 hostname chrome-remote-desktop[125195]: Cleanup.\nJul 24 17:12:16 hostname chrome-remote-desktop[125195]: Log file: /tmp/chrome_remote_desktop_20200724_171216_b4R1oT\nJul 24 17:12:16 hostname user-session[125198]: pam_unix(chrome-remote-desktop:session): session closed for user username\nJul 24 17:12:16 hostname sudo[125187]: pam_unix(sudo:session): session closed for user username\nJul 24 17:12:16 hostname chrome-remote-desktop[125177]: ...fail!\nJul 24 17:12:16 hostname systemd[1]: Started LSB: Chrome Remote Desktop service.\nRun Code Online (Sandbox Code Playgroud)\n现在,让我们看看该日志文件的内容:
\nusername@hostname:~$ cat /tmp/chrome_remote_desktop_20200724_171216_b4R1oT\n2020-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.\nFailed to load config: [Errno 2] No such file or directory: \'/home/username/.config/chrome-remote-desktop/host#98a9a95d871bdecaeb1ebddc57c9cdfe.json\'\n2020-07-24 17:15:10,836:INFO:Cleanup.\nRun Code Online (Sandbox Code Playgroud)\n它说“没有这样的文件或目录”,所以我创建了该目录,如顶部步骤中所述,这解决了问题。
\n| 归档时间: |
|
| 查看次数: |
28408 次 |
| 最近记录: |