Migration from Arch (简体中文)
From ParabolaWiki
(Redirected from Migration From Arch (简体中文))
用 Parabola GNU/Linux-libre 自由化你的 Arch Linux !
Contents
1 进行迁移
1.1 安装 Parabola 密钥环和镜像列表
Note: 如果你没在升级到 GnuPG 2.1 时重新生成 Pacman 密钥环,你可能会在安装 Parabola 密钥环时遇到问题(因为升级使本地主密钥无法签名其它密钥)。请参阅 https://www.parabola.nu/news/gnupg-21-and-the-pacman-keyring/ 重新生成新的密钥环。
编辑 /etc/pacman.conf 临时禁用远程文件签名验证:
RemoteFileSigLevel = Never
安装 Parabola 密钥环和 /etc/pacman.d/mirrorlist:
# pacman -U https://www.parabola.nu/packages/libre/any/parabola-keyring/download/ # pacman -U https://www.parabola.nu/packages/libre/any/pacman-mirrorlist/download/
Note: 如果不能用的话,请从 可用的镜像 手动下载包并安装它们:
# pacman -U https://repo.parabola.nu/pool/parabola/parabola-keyring-20160103-1-any.pkg.tar.xz # pacman -U https://repo.parabola.nu/pool/parabola/pacman-mirrorlist-20160130-1.parabola1-any.pkg.tar.xz
编辑 /etc/pacman.conf 重新启用远程文件签名验证:
#RemoteFileSigLevel = Required
重命名 mirrorlist.pacnew 到 mirrorlist:
# cp /etc/pacman.d/mirrorlist.pacnew /etc/pacman.d/mirrorlist
1.2 用 Parabola 软件包代替 Arch Linux 软件包
编辑 /etc/pacman.conf ,把 [libre] 仓库添加到 [core] 之前:
[libre] Include = /etc/pacman.d/mirrorlist [core] ...
清除 pacman 缓存:
# pacman -Scc
强制刷新数据库 :
# pacman -Syy
更新到自由软件包:
# pacman -S pacman # pacman -Suu
Tip: 用 --noconfirm 跳过大量的替换软件包的提示 。
Note: 为了移除非自由软件包,某些软件包可能会被降级到旧版。
安装 your-freedom 移除那些没有自由替代的非自由软件包:
# pacman -S your-freedom
1.3 更新启动加载器设置
1.3.1 GRUB
运行下列命令重新生成 grub.cfg 文件:
# grub-mkconfig -o /boot/grub/grub.cfg
Tip: 参阅 https://wiki.archlinux.org/index.php/GRUB 获得更多信息
1.3.2 Syslinux
编辑 /boot/syslinux/syslinux.cfg 文件,指向新的内核和 initramfs:
LABEL parabola MENU LABEL Parabola GNU/Linux-libre LINUX ../vmlinuz-linux-libre ... INITRD ../initramfs-linux-libre.img LABEL parabolafallback MENU LABEL Parabola GNU/Linux-libre Fallback LINUX ../vmlinuz-linux-libre ... INITRD ../initramfs-linux-libre-fallback.img
或者移除配置文件然后重新安装 syslinux.
Tip: 参阅 https://wiki.archlinux.org/index.php/Syslinux#Configuration 获得更多信息
1.3.3 Systemd-boot
编辑 /boot/loader/entries/{这里是实际的文件名}.conf 文件,指向新的内核和 initramfs:
title Parabola GNU/Linux Libre linux /vmlinuz-linux-libre initrd /initramfs-linux-libre.img options ...
Tip: 参阅 https://wiki.archlinux.org/index.php/Systemd-boot 获得更多信息
1.3.4 Other
Tip: 参阅 https://wiki.archlinux.org/index.php/Boot_Loaders 获得更多信息
1.4 完成迁移
重新启动就会进入Parabola了.
2 完成安装
欢迎 Parabola 新手!是否注意到你的某些设备在安装完成 your-freedom 以后停止工作了?很大可能的原因是没有使它工作的自由驱动或固件(去看看dmesg)。大多数内置无线网卡都需要固件,不幸的是它们通常都是私有的,我们也不会提供这些固件。
通常的解决方法是替换你的内置网卡,或者使用外置USB无线网卡,有些无线网卡有自由固件使其工作:
同时可以查阅下列资料:
- h-node ,收集了一些和自由软件可以良好工作的网络适配器型号。
- scripts/deblob-$ver
遇到了麻烦,可以去 提交 Bug 报告, 找到了更好的方法,那就动手编辑这个页面!