{"id":65,"date":"2015-08-07T08:59:55","date_gmt":"2015-08-07T00:59:55","guid":{"rendered":"http:\/\/vmnote.104.es\/?p=65"},"modified":"2015-08-07T08:59:55","modified_gmt":"2015-08-07T00:59:55","slug":"how-to-run-vlc-player-in-root-account","status":"publish","type":"post","link":"https:\/\/104.es\/index.php\/2015\/08\/07\/how-to-run-vlc-player-in-root-account\/","title":{"rendered":"How to run VLC Player in root account"},"content":{"rendered":"<p>Tested OS: CentOS 7.1<\/p>\n<p>\u4ee5\u4e0b\u662f\u4f86\u81ea\u4e00\u500b\u8a0e\u8ad6\u5340\u7684\u670b\u53cb\u5efa\u8b70\u7684\u89e3\u6c7a\u65b9\u6cd5\uff0c\u4e0d\u904e\u627e\u8457\u627e\u8457\uff0c\u5c31\u5fd8\u4e86\u51fa\u8655\u5728\u54ea\u88e1\u4e86\u3002\u4f46\u662f\u6211\u5728CentOS\u4e0a\u6e2c\u8a66\uff0c\u986f\u7136\u662f\u53ef\u4ee5\u4f7f\u7528\u6c92\u6709\u554f\u984c\u3002<\/p>\n<p>Default, VLC Player can&#8217;t be executed if you are in root account. But the following command solves this situation:<\/p>\n<pre><code>sed -i 's\/geteuid\/getppid\/' \/usr\/bin\/vlc<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Tested OS: CentOS 7.1<\/p>\n<p>\u4ee5\u4e0b\u662f\u4f86\u81ea\u4e00\u500b\u8a0e\u8ad6\u5340\u7684\u670b\u53cb\u5efa\u8b70\u7684\u89e3\u6c7a\u65b9\u6cd5\uff0c\u4e0d\u904e\u627e\u8457\u627e\u8457\uff0c\u5c31\u5fd8\u4e86\u51fa\u8655\u5728\u54ea\u88e1\u4e86\u3002\u4f46\u662f\u6211\u5728CentOS\u4e0a\u6e2c\u8a66\uff0c\u986f\u7136\u662f\u53ef\u4ee5\u4f7f\u7528\u6c92\u6709\u554f\u984c\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[98],"tags":[],"class_list":["post-65","post","type-post","status-publish","format-standard","hentry","category-linux"],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/posts\/65","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/comments?post=65"}],"version-history":[{"count":0,"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/posts\/65\/revisions"}],"wp:attachment":[{"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/media?parent=65"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/categories?post=65"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/tags?post=65"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}