您尚未登录。

#1 2023-12-09 17:49:29

BreadCat209
K.I.S.S.
注册时间: 2023-09-09
帖子: 111

关于howdy的求助

我在折腾howdy,设置了使用的摄像头,在运行

$ sudo howdy test

后,摄像头指示灯短暂亮起,终端IOT报错,如下

[ WARN:0@0.631] global cap_gstreamer.cpp:2784 handleMessage OpenCV | GStreamer warning: Embedded video playback halted; module source reported: Could not read from resource.
[ WARN:0@0.632] global cap_gstreamer.cpp:1679 open OpenCV | GStreamer warning: unable to start pipeline
[ WARN:0@0.632] global cap_gstreamer.cpp:1164 isPipelinePlaying OpenCV | GStreamer warning: GStreamer: pipeline have not been created

Opening a window with a test feed

Press ctrl+C in this terminal to quit
Click on the image to enable or disable slow mode

Authorization required, but no authorization protocol specified

qt.qpa.xcb: could not connect to display :1
qt.qpa.plugin: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin.
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vkkhrdisplay, vnc, xcb, wayland-egl, wayland.

[1]    20546 IOT instruction  sudo howdy test

[mbm@ArchLinux:~]$ sudo rm -rf /*

离线

#2 2023-12-09 21:24:46

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,478
个人网站

Re: 关于howdy的求助

这个报错是因为你使用了 sudo,导致进程连不上你的 X 服务器。如果你信任你系统上的所有进程,可以 xhost +localhost 来允许本机上的任何进程连接到 X 服务器。

离线

#3 2023-12-10 10:25:14

BreadCat209
K.I.S.S.
注册时间: 2023-09-09
帖子: 111

Re: 关于howdy的求助

依云 说:

这个报错是因为你使用了 sudo,导致进程连不上你的 X 服务器。如果你信任你系统上的所有进程,可以 xhost +localhost 来允许本机上的任何进程连接到 X 服务器。

为啥用root权限反而连不上X服务器了?如果我只想信任这一个软件应该怎么处理?


[mbm@ArchLinux:~]$ sudo rm -rf /*

离线

#4 2023-12-10 10:29:49

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,478
个人网站

Re: 关于howdy的求助

因为 ~/.Xauthority 在你家里。既然是 root,你 sudo 的时候设置一下 XAUTHORITY=$HOME/.Xauthority 应该行。

离线

#5 2023-12-10 12:42:54

BreadCat209
K.I.S.S.
注册时间: 2023-09-09
帖子: 111

Re: 关于howdy的求助

依云 说:

因为 ~/.Xauthority 在你家里。既然是 root,你 sudo 的时候设置一下 XAUTHORITY=$HOME/.Xauthority 应该行。

原来如此,类似于sudo vim调用的是root的配置文件而不是我的一样对吧


[mbm@ArchLinux:~]$ sudo rm -rf /*

离线

#6 2023-12-10 12:46:43

BreadCat209
K.I.S.S.
注册时间: 2023-09-09
帖子: 111

Re: 关于howdy的求助

依云 说:

因为 ~/.Xauthority 在你家里。既然是 root,你 sudo 的时候设置一下 XAUTHORITY=$HOME/.Xauthority 应该行。

emm……我家里也没有.Xauthority啊……


[mbm@ArchLinux:~]$ sudo rm -rf /*

离线

#7 2023-12-10 12:54:25

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,478
个人网站

Re: 关于howdy的求助

对。那你看看 $XAUTHORITY 的值,它也许在别的地方。

离线

#8 2023-12-10 13:05:01

BreadCat209
K.I.S.S.
注册时间: 2023-09-09
帖子: 111

Re: 关于howdy的求助

依云 说:

对。那你看看 $XAUTHORITY 的值,它也许在别的地方。

ok,顺带一问,运行时是按照这样

$ export $Xbalabala=/bala/bala;sudo howdy test

吗?(这里的balabala要替换掉)


[mbm@ArchLinux:~]$ sudo rm -rf /*

离线

#9 2023-12-10 13:20:58

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,478
个人网站

Re: 关于howdy的求助

不是……sudo X...=.... howdy ...

离线

#10 2023-12-10 13:23:22

BreadCat209
K.I.S.S.
注册时间: 2023-09-09
帖子: 111

Re: 关于howdy的求助

依云 说:

不是……sudo X...=.... howdy ...

作为新手难免会有出错的时候嘛…


[mbm@ArchLinux:~]$ sudo rm -rf /*

离线

#11 2023-12-10 14:59:35

BreadCat209
K.I.S.S.
注册时间: 2023-09-09
帖子: 111

Re: 关于howdy的求助

依云 说:

对。那你看看 $XAUTHORITY 的值,它也许在别的地方。

终端输出了空行……这咋办?难道我缺依赖吗?


[mbm@ArchLinux:~]$ sudo rm -rf /*

离线

#12 2023-12-10 15:07:49

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,478
个人网站

Re: 关于howdy的求助

你要不要先说明一下你的桌面环境和登录方式?

离线

#13 2023-12-10 17:02:20

BreadCat209
K.I.S.S.
注册时间: 2023-09-09
帖子: 111

Re: 关于howdy的求助

依云 说:

你要不要先说明一下你的桌面环境和登录方式?

sddm,hyprland,有xwayland


[mbm@ArchLinux:~]$ sudo rm -rf /*

离线

页脚