为树莓派安装输入法和powerline

sudo apt-get install fcitx fcitx-sunpinyin

sudo apt install powerline

 wget https://github.com/Lokaltog/powerline/raw/develop/font/PowerlineSymbols.otf

mv PowerlineSymbols.otf .local/share/fonts/

cd .local/share/

mkdir fonts

sudo fc-cache -f -v

wget https://github.com/Lokaltog/powerline/raw/develop/font/10-powerline-symbols.conf

mkdir -p .config/fontconfig/fonts.conf

mv 10-powerline-symbols.conf .config/fontconfig/fonts.conf

 cd /usr/share/powerline/bindings/bash/

POWERLINE_SCRIPT=/usr/share/powerline/bindings/bash/powerline.sh
if [ -f $POWERLINE_SCRIPT ]; then
   source $POWERLINE_SCRIPT
fi

原文地址:https://www.cnblogs.com/guochaoxxl/p/13800684.html