问题描述
我用的是win10 自带的远程桌面在虚拟机的系统中安装xrdp,然后实现,访问本地虚拟机
在网上找了很多办法,一些是修改win10的注册表示什么的,都试过了,没有用,进入登录页面后,一输用户名密码登录,就直接闪退。原来
检查原因
查看 该用户名 ~/.xsession-errors
imsettings-check: ): IMSettings-WARNING **: Could not connect: Connection refused
(imsettings-check: ): GLib-GIO-CRITICAL **: g_dbus_proxy_call_sync_internal: assertion 'G_IS_DBUS_PROXY (proxy)' failed
GLib-GIO-Message: Using the 'memory' GSettings backend. Your settings will not be saved or shared with other applications.
** (process: ): WARNING **: Could not make bus activated clients aware of XDG_CURRENT_DESKTOP=GNOME environment variable: Could not connect: Connection refused
我是因为虚拟机安装了 Anconda3,导致dbus_daemon 冲突了
anconda3的bin下 有 dbus_daemon
系统的/usr/bin 下面也有 dbus_daemon
解决办法
#修改.bashrc文件
vi ~/.bashrc
#在最后一行添加
export PATH="/usr/bin:$PATH"
#保存退出后
source ~/.bashrc