~/.config/chrome-remote-desktop
未找到
我有一个非常具体的问题~/.config/chrome-remote-desktop
找不到,并用以下方法修复:
mkdir-p~/.config/chrome远程桌面chown“$USER:$USER”~/.config/chrome-remote-desktopchmod a+rx~/.config/chrome-remote-desktop
然后
- 我卸载了Chrome-Remote-Desktop扩展
- 我确保在浏览器的个人资料和Google.com上都登录了我的谷歌账户
- 我跑了
dpkg—清除chrome-remote-desktop
以删除以前的安装。(编辑为--清除)
- I Ctrl+F5位于https://remotedesktop.google.com在尝试重新安装之前
(用Ctrl+Alt+T打开终端,然后将上述命令粘贴到终端中。如果遇到错误,请在每个错误的命令(文本行)前面加上sudo前缀)
如何对问题进行自己的评估
我的问题的解决方案可能不是适合你的解决方案,所以让我向你展示我是如何找到我的解决方案的,这样你就可以找到自己的解决方案。首先,我们需要获取状态日志:
用户名@主机名:~$service“chrome-remote-desktop@$USER”状态● chrome-remote-desktop.service-LSB:chrome远程桌面服务已加载:已加载(/etc/init.d/chrome-remote-desktop;generated)激活:自美国东部夏令时2020-07-24年星期五17:11:25起激活(退出);22秒前文件:man:systemd-sysv-generator(8)任务:0(限制:28767)内存:0BC组:/system.slice/chrome-remote-desktop.service7月24日17:11:25 hostname systemd[1]:正在启动LSB:Chrome远程桌面服务。。。7月24日17:11:25 hostname systemd[1]:启动LSB:Chrome远程桌面服务。
为了让它开始记录,我必须:
用户名@主机名:~$usermod-a-G chrome-remote-desktop“$USER”用户名@主机名:~$sudo服务“chrome-remote-desktop@$USER”重启用户名@主机名:~$service“chrome-remote-desktop@$USER”状态● chrome-remote-desktop.service-LSB:chrome远程桌面服务已加载:已加载(/etc/init.d/chrome-remote-desktop;generated)激活:自2020-07-24年周五17:12:16 EDT起激活(退出);13秒前文件:man:systemd-sysv-generator(8)进程:125177 ExecStart=/etc/init.d/chrome-remote-desktop start(code=exited,status=0/SUCCESS)7月24日17:12:16 hostname sudo[125187]:pam_unix(sudo:session):会话由(uid=0)为用户用户名打开7月24日17:12:16 hostname chrome-remote-desktop[125197]:[0724/171216.183432:INFO:remoting_user_session.cc(738)]后台启动守护进程,登录到'/tmp/chrome_remote_desktop_20200724_>7月24日17:12:16 hostname user-session[125198]:pam_unix(chrome-remote-desktop:session):为用户用户名打开的会话(uid=1000)7月24日17:12:16 hostname chrome-remote-desktop[125195]:警告:此系统使用GDM。有些GDM版本有一个错误,在Chrome远程桌面运行时会阻止本地登录。如果你遇到这个>7月24日17:12:16 hostname chrome-remote-desktop[125195]:清理。7月24日17:12:16 hostname chrome-remote-desktop[125195]:日志文件:/tmp/chrome_remote_desktop_20200724_171216_b4R1oT7月24日17:12:16 hostname user-session[125198]:pam_unix(chrome-remote-desktop:session):用户用户名的会话已关闭7月24日17:12:16主机名sudo[125187]:pam_unix(sudo:session):用户用户名的会话已关闭7月24日17:12:16主机名chrome远程桌面[125177]:。。。失败!7月24日17:12:16 hostname systemd[1]:启动LSB:Chrome远程桌面服务。
现在,让我们看看该日志文件的内容:
用户名@主机名:~$cat/tmp/chrome_remote_desktop_20200724_171216_b4R1oT2020-07-24 17:15:10835:警告:警告:此系统使用GDM。有些GDM版本有一个错误,在Chrome远程桌面运行时会阻止本地登录。如果您遇到此问题,可以访问以下网址停止Chrome远程桌面https://remotedesktop.google.com/access并单击此计算机旁边的删除图标。Chrome远程桌面可能需要五分钟才能在此计算机上退出,而本地登录可能需要5分钟才能重新开始工作。未能加载配置:[Errno 2]没有这样的文件或目录:'/home/username/.config/chrome-remote-desktop/host#98a9a95d871bdecaeb1ebddc57c9cdfe.json'2020-07-24 17:15:10836:信息:清理。
它说“没有这样的文件或目录”,所以我创建了该目录,如顶部的步骤所述,并解决了问题。