config-pmos
@ 安惪坔 · Tuesday, Jun 9, 2020 · 1 分钟阅读 · 更新于 Jun 9, 2020

安装 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

感谢

如果觉得我恰好对你有帮助,可以请我吃辣条!

wechat

It is better to attach some information or leave a message so that I can record the donation 📝, thank you very much 🙏.

关于我

一只肥宅,丑女,又宅又丑…

毕业院校: 白马书院

家庭住址: 大荒山无稽崖斜月三星洞