码迷,mamicode.com
首页 > 系统相关 > 详细

start a GUI software on a remote Linux PC via SSH

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

标签:cat   hup   word   nsf   imp   nec   ica   tran   size   

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

标签:cat   hup   word   nsf   imp   nec   ica   tran   size   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!