Centos7环境安装VLC
$sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
$sudo yum install https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm
$sudo yum install vlc
$sudo yum install vlc-core
$sudo yum install python-vlc npapi-vlc
安装VLC后,普通用户可以开启VLC,但是root用户不能开启。
解决:
$sudo rsync -avz /usr/bin/vlc /usr/bin/vlc.bak
$sudo vim /usr/bin/vlc ,把 geteuid 修改为 getppid
结束。