xhost+root出错问题
如果用普通用户登录,再用su - root, 运行X程序,会提示:can't open display. 尝试
用xhost +root,出错:bad host name. Why?
in a csh, tcsh setenv DISPLAY :0.0 in a sh, ksh, bash export DISPLAY=:0.0
如果用普通用户登录,再用su - root, 运行X程序,会提示:can't open display. 尝试
用xhost +root,出错:bad host name. Why?
in a csh, tcsh setenv DISPLAY :0.0 in a sh, ksh, bash export DISPLAY=:0.0