安装 pmOS 的后续配置
1. 换源
sudo sed -i 's?http://dl-cdn.alpinelinux.org?https://mirrors.ustc.edu.cn?g' /etc/apk/repositories
# 国内源
http://postmarketos1.brixit.nl/postmarketos/master
https://mirrors.ustc.edu.cn/alpine/edge/main
https://mirrors.ustc.edu.cn/alpine/edge/community
https://mirrors.ustc.edu.cn/alpine/edge/testing
# 原生源
http://postmarketos1.brixit.nl/postmarketos/master
http://dl-cdn.alpinelinux.org/alpine/edge/main
http://dl-cdn.alpinelinux.org/alpine/edge/community
http://dl-cdn.alpinelinux.org/alpine/edge/testing
2. 安装常用软件包
sudo apk add neovim gcc go git nodejs npm yarn python3 py3-pip python3-dev bat musl-dev firefox wqy-zenhei
# 其中wqy-zenhei是让firefox能显示中文, musl-dev解决python使用pip安装包出错的问题
# 下面是懒得设置别名了(可选)
sudo ln -s /usr/bin/python3 /usr/bin/python
sudo ln -s /usr/bin/nvim /usr/bin/vim
sudo ln -s /usr/bin/neofetch /usr/bin/sl
3. 配置网络
nmtui
4. 查看电量
upower -e
upower -i /org/freedesktop/UPower/devices/DisplayDevice
5. 配置开机自动连接 wifi(暂不可用)
sudo wpa_supplicant -B -i wlan0 -Dwext -c /etc/wpa_supplicant/wpa_supplicant.conf
sudo wpa_cli reconfigure
sudo wpa_cli reconnect