通过X11转发以查看服务器主机上运行的GUI图形界面应用程序(on Ubuntu Server 18.04.3 LTS)

一、在Ubuntu机器上进行以下操作

sudo apt-get install xauth
# 安装xorg
sudo apt-get install xorg
Next install a Window Manager:

# 安装Window Manager:openbox
sudo apt-get install openbox

二、在要打开图形界面的Windows本机上进行以下操作

安装ssh客户端: Putty

安装xming

安装好后会在下图位置看到

在这里插入图片描述

打开PuTTY并建立从Windows到远程X客户端的ssh连接,确保在连接> SSH> X11中启用X11转发。如下所示,选中X11转发框,在显示位置输入“ localhost:0.0”,然后选择“ MIT-Magic-Cookie”设置。

在这里插入图片描述
There are also two settings in PuTTY that need to be changed to make X11 forwarding work. Open PuTTY as normal, filling in the IP address or DNS alias name. Before clicking OK to connect to the server, go to the connection menu in PuTTY, select SSH, X11 and tick the box X11 forwarding. The xdisplay location should also be set to localhost:0, which is basically the display you are working on currently.

启动virtualbox
在这里插入图片描述

发布了44 篇原创文章 · 获赞 12 · 访问量 8353

猜你喜欢

转载自blog.csdn.net/GongMeiyan/article/details/104080166