下载 CentOS7
最小化 iso
http://iso.mirrors.ustc.edu.cn/centos/7.9.2009/isos/x86_64/CentOS-7-x86_64-Minimal-2009.iso
完全版 iso
...大约 1 分钟
http://iso.mirrors.ustc.edu.cn/centos/7.9.2009/isos/x86_64/CentOS-7-x86_64-Minimal-2009.iso
https://mirrors.ustc.edu.cn/centos/7.9.2009/isos/x86_64/
前面的配置没什么好说的,不过有两个坑
1、不能选择自动设置,否则会直接卡在安装界面。
# fcitx输入法
RUN dnf remove ibus -y
RUN dnf remove imsettings imsettings-libs im-chooser -y
RUN dnf install fcitx fcitx-pinyin fcitx-configtool -y
# 更新软件
RUN yum -y upgrade
# 安装中文包
RUN yum install -y kde-l10n-Chinese
# 重新安装glibc-common
RUN yum -y reinstall glibc-common
# 编译生成语言库
RUN localedef -c -f UTF-8 -i zh_CN zh_CN.utf8
# 设置语言默认值为中文,时区改为东八区
RUN echo 'LANG="zh_CN.UTF-8"' > /etc/locale.conf
RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
ENV LANG zh_CN.UTF-8
ENV LC_ALL zh_CN.UTF-8
废话不多说,直接上干货。
# fcitx
RUN dnf remove ibus -y
RUN dnf remove imsettings imsettings-libs im-chooser -y
RUN dnf install fcitx fcitx-pinyin fcitx-configtool -y
文章更新历史
2022/05/25 feat:调整步骤,推荐本地导入box的初始化方式。
2022/05/12 feat:初稿。
如果你不知道什么是Vagrant,或者不会安装及启动停止删除Vagrant操作,请参考我的另外一篇文章: