demo1984s 的个人博客




| Banana Pi R1 硬件规格 | |
|---|---|
| CPU | A20 ARM Cortex -A7 Dual-Core |
| GPU | ARM Mali400MP2Complies with OpenGL ES 2.0/1.1 |
| Memory | 1GB DDR3 |
| Network | 10/100/1000 Ethernet 8P8C, Wi-Fi |
| Video Input | A CSI input connector allows for the connection of a designed camera module |
| Video Outputs | HDMI, CVBS, LVDS/RGB |
| Audio Outputs | 3.5mm jack and HDMI |
| Power Source | 5 volt via Micro USB (DC in only) and / or Micro USB OTG |
| USB 2.0 ports | 2(direct from Allwinner A20 chip) |
| GPIO | GPIO, UART, I2C BUS, SPI BUS, WITH TWO CHIP SELECTS,CAN bus, ADC, PWM, +3.3V, +5V, GND |
| LED | Power Key & 8P8C |
| Storage | SATA 2.0 |
| OS | Android 4.4, Android 4.2, Raspbian, Lubuntu, Open Suse, Debian,OpenWRT |

BPI-R1 debian 10 image:
2019-09-18-debian-10-buster-mate-desktop-grub-preview-bpi-r1-sd-emmc.img

Debian10(buster)已经停止支持,对应发行版的软件源会被从 Debian 主源中删除,移动到 archive.debian.org,需要替换 /etc/apt/sources.list 的内容。
# archive 源
deb http://archive.debian.org/debian buster main contrib non-free
# deb-src http://archive.debian.org/debian buster main contrib non-free
deb http://archive.debian.org/debian buster-updates main contrib non-free
# deb-src http://archive.debian.org/debian buster-updates main contrib non-free
deb http://archive.debian.org/debian-security buster/updates main contrib non-free
# deb-src http://archive.debian.org/debian-security buster/updates main contrib non-free
https://mirror.tuna.tsinghua.edu.cn/help/debian-elts/
安装 Freexian 的 APT 源密钥:
wget https://deb.freexian.com/extended-lts/archive-key.gpg -O /tmp/elts-archive-key.gpg
mv /tmp/elts-archive-key.gpg /etc/apt/trusted.gpg.d/freexian-archive-extended-lts.gpg
替换sources.list内容:
# Freexian 源
deb https://mirrors.tuna.tsinghua.edu.cn/debian-elts jessie main contrib non-free
# 更新源
sudo apt update
# 安装locales软件包
sudo apt install locales
# 配置语言环境
sudo dpkg-reconfigure locales
# 在配置界面用空格键选择 zh_CN.UTF-8 UTF-8 和 en_US.UTF-8 UTF-8,按回车键
# 选择默认语言环境 zh_CN.UTF-8,按回车键
# 检查
locale -a | grep zh_CN
zh_CN
zh_CN.gb18030
zh_CN.gbk
zh_CN.utf8
# 安装文泉驿系列字体
sudo apt install fonts-wqy-zenhei fonts-wqy-microhei xfonts-wqy
# 编辑 /etc/environment 文件
LANG="zh_CN.UTF-8"
LANGUAGE="zh_CN:zh"
LC_ALL="zh_CN.UTF-8"
# 编辑 /etc/default/locale 文件
LANG="zh_CN.UTF-8"
LANGUAGE="zh_CN:zh"
# 更新缓存
sudo fc-cache -f -v
# 检查字体是否已安装
sudo fc-list :lang=zh
# 重启系统
sudo reboot
# 重启后会发现界面已经是中文了
#更新软件源
sudo apt update
#安装 Fcitx4 核心组件
sudo apt install fcitx fcitx-pinyin fcitx-config-gtk fcitx-frontend-all -y
#安装 im-config 配置工具
sudo apt install im-config -y
vi ~/.bashrc
# 在 ~/.bashrc 文件末尾加上以下内容
# Fcitx4 环境变量
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx
# 重新载入环境变量
source ~/.bashrc
# 打开配置工具
im-config
# 在弹出的界面选择 `fcitx`,点击确认
# 重启系统
sudo reboot
# 打开配置工具
fcitx-config-gtk3
在"输入法"标签页点击"+"按钮,* 选择需要的输入法(拼音、双拼、五笔等),使用箭头将其移动到左侧激活列表