CentOS7設置為X11顯示圖片(終端)


vi /etc/ssh/sshd_config

#AllowAgentForwarding yes
AllowTcpForwarding yes
#GatewayPorts no
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost no //網上很多說明這里保持默認不需要修改
#PermitTTY yes
#PrintMotd yes
#PrintLastLog yes
#TCPKeepAlive yes

  

yum install -y xorg-x11-xauth #安裝x11組件包
yum -y install wqy-zenhei-fonts* #安裝中文字庫

systemctl  restart sshd

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM