终端远程连接可以启动GUI程序是怎么做到的?
Tofloor
poster avatar
jmjoy
deepin
2017-08-03 06:20
Author
今天用deepin的终端的远程管理功能连接到服务器,然后运行emacs,居然能够打开一个GUI的emacs,感觉挺神奇的,想问一下这是什么技术来的?
Reply Favorite View the author
All Replies
avatar
MeowSprite
deepin
2017-08-03 19:12
#1
本来Linux图形界面就是一个本地x server和一个客户端的模式。ssh可以开启x传输服务,所以本地的客户端连接服务器的x server也没什么奇怪的了。
这个在windows下其实也可以做到,windows只要装一个xming来模拟x客户端就可以了。
Reply View the author
avatar
DebuggerX
deepin
2017-08-03 21:35
#2
  1. https://github.com/linuxdeepin/deepin-terminal/blob/master/ssh_login.sh
Copy the Code


看第40行的那个"-X"参数,我没搞错的话关键就是这个.
Reply View the author
avatar
wangyong
deepin
2017-08-03 22:11
#3
debuggerx 发表于 2017-8-3 13:35
看第40行的那个"-X"参数,我没搞错的话关键就是这个.

正解
Reply View the author