kali linux下不能以root权限运行vlc的解决办法

习惯了在Linux下面使用VLC播放视频和音乐, 但是 VLC 的 linux 版本并不支持在root下面运行. 终端运行vlc命令报错,错误信息如下

root@kbdancer:~# vlc
VLC is not supposed to be run as root. Sorry.
If you need to use real-time priorities and/or privileged TCP ports
you can use vlc-wrapper (make sure it is Set-UID root and
cannot be run by non-trusted users first).

意思是VLC不能在root下面用.这个也是很好解决.需修改vlc的文件,执行

vim /usr/bin/vlc

然后找到"geteuid",把这个字符串替换成"getppid"保存即可正常运行

 

原文出自https://www.92ez.com/?action=show&id=23355

posted @ 2018-11-09 10:45  隐念笎  阅读(3082)  评论(0编辑  收藏  举报