更换国内源
/etc/apt/sources.list
deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi
deb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi
/etc/apt/sources.list.d/raspi.list
deb http://mirror.tuna.tsinghua.edu.cn/raspberrypi/ stretch main ui
deb-src http://mirror.tuna.tsinghua.edu.cn/raspberrypi/ stretch main ui
OR apt install apt-transport-https
/etc/apt/sources.list
deb https://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi
deb-src https://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpi
/etc/apt/sources.list.d/raspi.list
deb https://mirror.tuna.tsinghua.edu.cn/raspberrypi/ stretch main ui
deb-src https://mirror.tuna.tsinghua.edu.cn/raspberrypi/ stretch main ui
修改tty配置
dpkg-reconfigure dash
设置默认的shell为bash
dpkg-reconfigure locales
本地化语言设置
dpkg-reconfigure tzdata
设置时区
dpkg-reconfigure console-setup
设置控制台选项
dpkg-reconfigure openssh-server
生新生成ssh服务的RSA的DSA key
tty下中文
# fbterm
sudo apt install fbterm
sudo chmod u+s /usr/bin/fbterm
# 输入法
sudo apt install fcitx-frontend-fbterm
sudo chmod u+s `which fbterm`
# 字体
sudo apt-get install ttf-dejavu
~/.fbtermrc
font-names=DejaVu Sans Mono
input-method=fcitx-fbterm
# 启动
fcitx-fbterm-helper [-l]
Debian下Man文档
sudo apt install manpages-dev manpages-posix manpages-posix-dev
sudo apt install gcc-[version]-doc
开启1080p
sudo vi /boot/config.txt
hdmi_group=2 (使用显示器而不是TV)
hdmi_mode=82 (1920x1080 60fps)
安装xfce
sudo apt install xfce4
sudo apt install xfce4-terminal
sudo apt install xfce4-goodies
sudo apt install slim
配置中文
sudo dpkg-reconfigure locales
sudo vim /etc/default/locale LANG=zh_CN.UTF-8
sudo apt install xfonts-intl-chinese
sudo apt install xfonts-wqy
sudo apt install fcitx fcitx-pinyin