本安装环境系统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