Debian 镜像更换
Debian 的软件源配置文件是 /etc/apt/sources.list
。将系统的镜像做个备份,然后将该文件替换为下面内容,即可使用 TUNA 的软件源镜像。
如果遇到无法拉取 https 源的情况,请先使用 http 源并安装:
1$ sudo apt install apt-transport-https
/etc/apt/sources.list
:
1# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
2deb https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch main contrib non-free
3# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch main contrib non-free
4deb https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-updates main contrib non-free
5# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-updates main contrib non-free
6deb https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-backports main contrib non-free
7# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-backports main contrib non-free
8deb https://mirrors.tuna.tsinghua.edu.cn/debian-security stretch/updates main contrib non-free
9# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security stretch/updates main contrib non-free
更新 apt :
1sudo apt update
Debian 英文环境下安装中文拼音
Chinese Support
Chinese locales support:
1sudo dpkg-reconfigure locales
向下滚动,添加 Add zh_CN GB2312, zh_CN_GBK, zh_CN.UTF-8
在下一步设置系统环境时仍然选择 en_US.UTF-8
Tip: 空格选择,Tab 切换 OK ,Enter 确认
手动修改 /etc/locale.gen安装字体
1sudo aptitude install fonts-arphic-uming xfonts-intl-chinese xfonts-wqy
Fcitx googlepinyin 输入法
- Install fcitx fcitx-googlepinyin
1sudo aptitude install fcitx fcitx-googlepinyin
- Install im-config to config the input method
1sudo aptitude install im-config
- im-config & fcitx-configtool
问题
安装后不能及时更新 Fctix ,restart!