在~/.bashrc环境变量文件最下方加入:
export DISPLAY=:0.0
然后,刷新环境变量以使其生效:
source ~/.bashrc
参考:http://stackoverflow.com/questions/662421/no-x11-display-variable-what-does-it-mean
==>如有问题,请联系我:easonjim#163.com,或者下方发表评论。<==在~/.bashrc环境变量文件最下方加入:
export DISPLAY=:0.0
然后,刷新环境变量以使其生效:
source ~/.bashrc
参考:http://stackoverflow.com/questions/662421/no-x11-display-variable-what-does-it-mean
==>如有问题,请联系我:easonjim#163.com,或者下方发表评论。<==