使用SSH在桌面上打开应用程序(Using SSH to open application on desktop)

编程入门 行业动态 更新时间:2024-10-26 01:29:37
使用SSH在桌面上打开应用程序(Using SSH to open application on desktop)

所以通常人们会问如何将x11转发到本地机器,而是我想让应用程序在远程盒子的桌面上运行。

所以,我想从Windows机器(使用putty)ssh并运行“xclock&disown。如果我然后走到我的桌面并查看屏幕并看到在Linux机器上运行xclock。

有办法吗? 使用薄荷13。

So normally people ask how to forward x11 to the local machine, but rather I want to leave the application running on the remote box's desktop.

So let say I ssh from a windows machine (using putty) and run "xclock & disown. If I then walked over to my desktop and look at the screen and see xclock running on the linux machine.

Any way to do that? Using Mint 13.

最满意答案

当您正常ssh'd时,使用export DISPLAY=0:0 (0:0显示目标框)设置DISPLAY变量,然后您可以像往常一样运行命令。 如果您希望能够关闭ssh会话,请在命令前加上nohup: nohup ./yourcommand > dev/null 。

When you're ssh'd in normally, set the DISPLAY variable with export DISPLAY=0:0 (0:0 being the display of the target box), and then you can run your command as you normally would. If you want to be able to close the ssh session, prepend the command with nohup: nohup ./yourcommand > dev/null.

更多推荐

本文发布于:2023-07-29 18:26:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1318609.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   桌面上   SSH   desktop   application

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!