习惯了在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
本文介绍了解决VLC在Linux系统中root权限下无法运行的问题,通过修改vlc的源代码,将geteuid替换为getppid,使VLC能够在root用户下正常播放视频和音乐。
37

被折叠的 条评论
为什么被折叠?



