软件源

/etc/pacman.d/mirrorlist 在头部追加

Server = http://mirrors.tuna.tsinghua.edu.cn/archlinuxarm/$arch/$repo
Server = http://mirrors.ustc.edu.cn/archlinuxarm/$arch/$repo
Server = http://mirrors.stuhome.net/archlinuxarm/$arch/$repo

安装需要的依赖

pacman -S gcc python python-pip tar curl wget vim zsh wiringpi docker git

禁用ipv6

参考

  • /etc/sysctl.d/40-ipv6.conf
# Disable IPv6
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.nic0.disable_ipv6 = 1
...
net.ipv6.conf.nicN.disable_ipv6 = 1
  • /etc/dhcpcd.conf
noipv6rs
noipv6
  • /etc/netctl/example

拷贝

  • 设置静态ip /etc/systemd/network/eth.network
[Match]
Name=eth*

[Network]
Address=192.168.1.6/24
Gateway=192.168.1.1
DNS=192.168.1.1
# DHCP=yes
#DNSSEC=no

错误

arch linux arm error: keyring is not writable

WARNING: No memory limit support
WARNING: No swap limit support
WARNING: No kernel memory limit support
WARNING: No kernel memory TCP limit support
WARNING: No oom kill disable support

append
/boot/cmdline.txt

cgroup_enable=memory swapaccount=1

pacman-key –init && pacman-key –populate archlinuxarm

内核相关

  • 查看内核 mhwd-kernel -li
Currently running: 5.10.2-2-MANJARO (linux510)
The following kernels are installed in your system:
   * linux414
   * linux510
   * linux54
  • 删除内核 sudo mhwd-kernel -r linux54

图形化与字符界面调整

  • 字符
systemctl set-default multi-user.target

startx 进入图形化
  • 设置图形化
systemctl set-default graphical.target

笔记本,盖上盖子,网络关闭

支持笔记本盖上盖子不断网,可以长时间运行, 可用于外界显示盖上笔记本自己的显示器

sudo vim /etc/UPower/UPower.conf

修改 IgnoreLid=false 为 IgnoreLid=true

sudo systemctl restart upower.service