百度云服务器 CentOS 图形界面支持

阅读 112

2023-05-04


百度云服务器默认只有命令行,通过 ssh 可以连接到对应的云服务器上。

不过有时候需要在本地能显示对应的图形界面,比如调用 gedit 进行文件的编辑。


1. 安装对应的包:

#yum groupinstall -y "X Window System"

#yum groupinstall -y "Desktop"

2. 设置 sshd_config

/etc/ssh/sshd_config:

X11Forwarding yes
X11DisplayOffset 10

3. 在windows端安装并启动 xming-server

4. ssh 登录并执行gedit

$ export |grep display -i

$ declare -x DISPLAY="localhost:10.0"

$ gedit

精彩评论(0)

0 0 举报