centos7 服务器通过X11实现图形化界面显示

安装配置x11

 cat /etc/ssh/sshd_config
X11Forwarding yes
X11UseLocalhost no -- 禁止将X11转发请求绑定到本地回环地址上
AddressFamily inet -- 强制使用IPv4通道

systemctl restart sshd
yum -y install xorg-x11-xauth

安装浏览器

yum -y install  firefox

测试

# firefox (正常情况下线会弹出火狐的弹窗)

X11中文乱码问题

mkdir -p /usr/share/founts/yahei
在本地windows的C:\Windows\Fonts下找到微软雅黑字体上传到服务器的/usr/share/founts/yahei目录下
Logo

技术共进,成长同行——讯飞AI开发者社区

更多推荐