首页 > 系统服务 > 详细

start a GUI software on a remote Linux PC via SSH

时间:2017-09-01 13:16:28      阅读:323      评论:0      收藏:0      [点我收藏+]

Is there a way to start a GUI software on a remote Linux PC via SSH?

=>

We just need to run export DISPLAY=:0 in ssh session and programs run will run on the remote display.

 

ex:

oli@bert:~$ ssh tim oli@tim:~$ export DISPLAY=:0 oli@tim:~$ firefox

or

#we can shorten this all down into one command that will connect, export the display in-line and start the application in a way that won‘t close it after the ssh session dies

ssh tim "DISPLAY=:0 nohup firefox" 

start a GUI software on a remote Linux PC via SSH

原文:http://www.cnblogs.com/nullbaby/p/7462759.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!