问题描述:
使用串口root用户登陆执行命令如下:
root@ums9620-2h10:~# export XDG_RUNTIME_DIR=/run/user/0
root@ums9620-2h10:~# gst-launch-1.0 videotestsrc ! waylandsink
Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
WARNING: from element /GstPipeline:pipeline0/GstWaylandSink:waylandsink0: Could not initialise Wayland output
Additional debug info:
../gst-plugins-bad-1.16.3/ext/wayland/gstwaylandsink.c(359): gst_wayland_sink_find_display (): /GstPipeline:pipeline0/GstWaylandSink:waylandsink0:
Failed to create GstWlDisplay: 'Failed to connect to the wayland display '(default)''
Setting pipeline to NULL ...
Freeing pipeline ...
root@ums9620-2h10:~#
报了如上的错误:ping了一下发现所有的命令都使用不了,怀疑selinux把权限关闭了
getenforce 查看如下:
root@ums9620-2h10:~# getenforce
Enforcing
root@ums9620-2h10:~#
root@ums9620-2h10:~#
root@ums9620-2h10:~#
root@ums9620-2h10:~# setenforce
usage: setenforce [ Enforcing | Permissive | 1 | 0 ]
root@ums9620-2h10:~#
执行命令 setenforce 0 打开selinux 命令可执行
问题解决