本安裝環境系統Centos8 百度智能雲主機
安裝Install X11 Forwarding
yum install -y xorg-x11-xauth xorg-x11-utils xorg-x11-fonts-*
查看sshd服務是否開啓X11 Forwarding
[root@instance-yl8rup7q ~]# cat /etc/ssh/sshd_config |grep "X11Forwarding yes"
X11Forwarding yes
如果沒有,
echo "X11Forwarding yes" >> /etc/ssh/sshd_config
systemctl restart sshd
這時可以試試shell運行firefox
firefox &
查看系統擁有語言包
locale -a
看到沒有安裝中文語言包,
Centos Firefox中文亂碼(對Centos7/8都有效)
yum -y groupinstall Fonts
馬上生效。
查看是否安裝成功
locale -a
如果只是想firefox支持中文顯示,下面的方法可不理,只是弄出來不想刪除。
在 CentOS 8 中安裝中文支持
1、在CentOS 8實例中安裝中文支持。
dnf install glibc-langpack-zh.x86_64
2、修改CentOS 8實例系統的字符集。
echo LANG=zh_CN.UTF-8 > /etc/locale.conf
3、使字符集立即生效。
source /etc/locale.conf
查看是否安裝成功
locale -a|grep zh
安裝中文輸入法
yum list|grep chinese
#yum install -y ibus-table-chinese.noarch
#我喜歡用五筆
yum install -y ibus-table-chinese-wu.noarch