树莓派3b 安装arch linux 2

配置swap

swapon /dev/mmcblk0p3
nano /etc/fstab
/dev/mmcblk0p3  swap    swap    defaults        0       0

更换国内更新源

nano /etc/pacman.d/mirrorlist

在顶部添加

Server = https://mirrors.ustc.edu.cn/archlinuxarm/$arch/$repo
Server = https://mirrors.ustc.edu.cn/archlinuxcn/$arch

初始化pacman

pacman-key --init
pacman-key --populate archlinuxarm

更新系统

pacman -Syu

 

配置ssh 使用公钥登录

port XXXX #更换一个端口
PubkeyAuthentication yes
PermitRootLogin no
StrictModes yes
PasswordAuthentication no
PermitEmptyPasswords no

生成ssh key

cd ~
mkdir .ssh
touch authorized_keys
ssh-keygen -t ed25519 -f root

把root.pub的内容复制到 authorized_keys 中

chmod 400 authorized_keys
chmod 700 ~/.ssh

禁止root用户登录

chsh root -s /sbin/nologin

 

安装yaourt

pacman -S yajl
pacman -U package-query-1.9-3-aarch64.pkg.tar.xz
pacman -Syu yaourt

其中package-query编译有点麻烦 首先要安装 base-devel

下载 https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=package-query

然后运行 makepkg

EOF

转载于:https://www.cnblogs.com/BD1A489/p/10384618.html

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值