This page looks best with JavaScript enabled

Notes About Debian

 ·  ☕ 1 min read

Debian 镜像更换

Debian 的软件源配置文件是 /etc/apt/sources.list 。将系统的镜像做个备份,然后将该文件替换为下面内容,即可使用 TUNA 的软件源镜像。

如果遇到无法拉取 https 源的情况,请先使用 http 源并安装:

1
$ sudo apt install apt-transport-https

/etc/apt/sources.list :

# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-updates main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-updates main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-backports main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ stretch-backports main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security stretch/updates main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security stretch/updates main contrib non-free

更新 apt :

1
sudo apt update

Link

Debian 英文环境下安装中文拼音

Chinese Support

  • Chinese locales support:

    sudo 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

  • 安装字体

    1
    
    sudo aptitude install fonts-arphic-uming xfonts-intl-chinese xfonts-wqy
    

Fcitx googlepinyin 输入法

  • Install fcitx fcitx-googlepinyin
    sudo aptitude install fcitx fcitx-googlepinyin
    
  • Install im-config to config the input method
    sudo aptitude install im-config
    
  • im-config & fcitx-configtool

问题

安装后不能及时更新 Fctix ,restart!

Share on

Serendipity
WRITTEN BY
Serendipity
iOS/Golang/Rust

What's on this Page