如何让 Linux 可以使用 X 应用程序
在Linux系统中,当您要运行X程序时,Linux将无法运行X程序。我们现在如何解决这个问题?现在,让我们看一下Linux无法使用Ai Station小编运行X程序的解决方案。 Xlib: connection to ":0.0" refused by server Xlib: No protocol specified Error: Can't open display: :0.0 这虽然是老问题了,但是对我来说却还有些不同。想在自己的本本Ubuntu上安装Oracle 10,结果新增加的用户Oracle不能运行X程序。 所以我查了一下手册,以日常工作用的那个用户登录,在shell中运行 xhost local:Oracle non-network local connections being added to access control list 然后Oracle身份就可以运行X程序了。 man xhost中有这样一段 A complete name has the syntax ‘‘family:name’’ where the families are as follows: inet????? Internet host (IPv4) inet6???? Internet host (IPv6) dnet????? DECnet host nis?????? Secure RPC network name krb?????? Kerberos V5 principal local???? contains only one name, the empty string si??????? Server Interpreted 其中local那个是用来解决同一台机器的不同用户访问X的问题的。 关于Linux不能运行X程序的解决方法你学会了吗?我尽可能的将我所知道的知识都写下来了,也希望你们能够尽可能多的贡献和分享你的知识。 (编辑:银川站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |