记录日常工作关于系统运维,虚拟化云计算,数据库,网络安全等各方面问题。


CentOS7设置为X11显示图形软件操作(终端)

 

vi /etc/ssh/sshd_config


#AllowAgentForwarding yes
AllowTcpForwarding yes
#GatewayPorts no
X11Forwarding yes
X11DisplayOffset 10   // 这里注意,如果修改为10,那么系统中 DISPLAY:10.0 。
X11UseLocalhost no //网上很多说明这里保持默认不需要修改
#PermitTTY yes
#PrintMotd yes
#PrintLastLog yes
#TCPKeepAlive yes

yum install -y xorg-x11-xauth          #安装x11组件包

yum -y install wqy-zenhei-fonts*    #安装中文字库

yum install -y gedit

systemctl  restart sshd

最后测试下gedit命令,是否能打开软件图形界面




转载请标明出处【CentOS7设置为X11显示图形软件操作(终端)】。

《www.micoder.cc》 虚拟化云计算,系统运维,安全技术服务.

网站已经关闭评论