PA1--在开始之前(运行LiteNES)

PA1–在开始之前

这篇文章用来记录在愉块的PA实验之前所遇到的坑,和如何去填坑。

XDG_RUNTIME_DIR not set in the environment.

这个坑很明显是一个环境变量配置不全的问题,对于这个问题Google给了很多不同的方法,但是大多数都不生效。后来找到了一个可以解决问题的方法:

mkdir -pv ~/.cache/xdgr
export XDG_RUNTIME_DIR=$PATH:~/.cache/xdgr
XDG_RUNTIME_DIR=/run/user/1001  //如果是root用户,1001代码换成0700

Connection Rejected Because of Wrong Authentication Error and Solution

这个问题困扰了我数个小时,报错很明显。但是论坛上给的解决办法是:
https://unix.stackexchange.com/questions/162979/annoying-message-x11-connection-rejected-because-of-wrong-authentication-while
这个方法我使用后,没有任何反应。后来查资料发现可以用xauth add进行权限增加(这是解决这个问题的关键。)以为就是简单的add嘛~~哈哈哈,当然不是,在add时又碰见了一个大坑。
X11转发链接时,我登录的是ics用户,但是运行make run需要root用户,或者将ics添加到管理员用户列表中。我选在的是进入root下进行操作,这也就引发了另一个坑。自己添加的是root用户的xauth权限,然而。。。链接时是ics用户。。尴尬了,自己坑自己。不过好在问题还是解决了~附成功的截图一张:
在这里插入图片描述

wsl2下启用kde出现kf.modemmanagerqt: Failed enumerating MM objects: "org.freedesktop.DBus.Error.TimedOut" "Failed to activate service 'org.freedesktop.ModemManager1': timed out (service_start_timeout=25000ms)" kscreen.kded: PowerDevil SuspendSession action not available! kf.bluezqt: PendingCall Error: "Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken." QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root' QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root' QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root' wsl2下启用kde出现kf.modemmanagerqt: Failed enumerating MM objects: "org.freedesktop.DBus.Error.TimedOut" "Failed to activate service 'org.freedesktop.ModemManager1': timed out (service_start_timeout=25000ms)" kscreen.kded: PowerDevil SuspendSession action not available! kf.bluezqt: PendingCall Error: "Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken." QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root' QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root' QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-ro
最新发布
07-07
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值