所以通常人们会问如何将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.
更多推荐
发布评论