在我使用mobaXterm连接云服务器执行可视化程序时,尽管我已经确定X11-forwarding已经启用,但仍然提示我: [Open3D WARNING] GLFW Error: X11: Failed to open display localhost:0.0 [Open3D WARNING] Failed to initialize GLFW
时间: 2023-06-18 11:07:20 浏览: 154
这个错误通常是由于服务器上缺少X11的相关库或者配置不正确导致的。你可以尝试以下几个步骤来排除问题:
1. 确认你的本地电脑已经安装了X11或者XQuartz(如果你是在MacOS上使用的话)。
2. 确认你的mobaXterm已经启用了X11-forwarding功能。在连接远程服务器的时候,勾选上“X11-forwarding”选项,或者在连接后使用命令“echo $DISPLAY”检查DISPLAY变量是否正确设置。如果没有正确设置,请使用命令“export DISPLAY=:0”设置DISPLAY变量。
3. 确认服务器上已经安装了X11相关的库和软件包。你可以使用命令“sudo apt-get install xorg”(针对Ubuntu系统)或者“sudo yum groupinstall 'X Window System'”(针对CentOS系统)来安装。
4. 确认你的SSH客户端配置正确。有时候,你需要在SSH客户端配置文件(比如~/.ssh/config)中添加以下几行配置:
```
Host *
ForwardAgent yes
ForwardX11 yes
ForwardX11Trusted yes
```
如果以上方法都没有解决问题,你可以尝试在远程服务器上安装VNC服务器,然后使用VNC客户端连接。这种方式可以在不依赖于X11-forwarding的情况下实现图形界面的远程访问。
相关问题
我使用mobaXterm连接云服务器后,X11-forwarding显示disabled or not supported by server该怎么解决
这个错误通常是由于云服务器上没有安装X11的图形化界面或者没有启用X11-forwarding功能所导致的。解决方法如下:
1. 确认云服务器上已经安装了X11的图形化界面,如果没有请先安装。
2. 确认云服务器上已经启用了X11-forwarding功能,如果没有请在ssh配置文件中添加以下配置:
```
X11Forwarding yes
X11UseLocalhost yes
```
3. 如果上述两个步骤都已经确认无误,那么可以尝试在本地终端中添加-X参数进行连接:
```
ssh -X username@ipaddress
```
这样就可以解决X11-forwarding显示disabled or not supported by server的问题了。
我第一次使用mobaXterm连接云服务器,显示X11-forwarding ✗ (disabled or not supported by server) 该怎么解决
这是因为你的云服务器没有启用 X11 转发功能。要启用 X11 转发功能,请按照以下步骤操作:
1. 在云服务器上安装 X11 显示程序,比如 Xming 或者 XQuartz(如果你是在 Mac 上连接云服务器)。
2. 编辑 /etc/ssh/sshd_config 文件,确保以下两行的注释被取消掉:
```
X11Forwarding yes
X11UseLocalhost yes
```
3. 重新启动 sshd 服务:
```
sudo systemctl restart sshd
```
4. 在本地连接云服务器时,使用以下命令启用 X11 转发功能:
```
ssh -X username@server_ip_address
```
这样就可以启用 X11 转发功能了,你可以在命令行中运行图形界面程序,并将它们的窗口显示在本地计算机上。
相关推荐
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)