最初由 风林 发表 我装完了,却只能用root帐号来运行,否则提示如下错误
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
** ERROR **: Unable to open display
aborting...
./hxplay: line 64: 3673 Aborted $HXPLAYBIN "$@"
这个问题很简单:
-------------------------
对于在授权的用户----Config for the user who gives access
-------------------------
The user who gives access is the one who owns the display. Find out who this is issuing the w command and spot the user marked with console in the tty field. This user can add the following code to her/his .bashrc file:
*************************
xhost | grep localhost > /dev/null
if [ $? -eq 0 ]; then
echo "display permissions are set"
else
echo "setting display access"; xhost +localhost
fi
*************************
对于要求权限的用户:(应该是你的普通用户)Config for the user who needs access
Say that you need to switch to the root account a lot, put this in root's .bashrc file: