我需要通过ssh在远程服务器上启动一个X程序。 该程序应该使用远程X服务器(不需要X转发)。 什么是正确的方法来做到这一点?
someapp --display <display identifier>
要么
DISPLAY=<display identifier> someapp
显示标识通常是:0 。
export DISPLAY=:0.0然后运行你的程序。 你可能需要先做xauth +localhost 。 编辑: xhost +localhost不是xauth