Migration from Arch

From ParabolaWiki
Jump to: navigation, search

Free your GNU/Linux distribution of Arch or ArchLinux32 to Parabola GNU/Linux-libre!

1 Complete migration

1.1 Install Parabola keyring and mirror list

Note: If you haven't regenerated your pacman keyring since the upgrade to GnuPG 2.1, you're likely to encounter trouble installing the Parabola keyring, since that upgrade made the local master key unable to sign other keys. Start by generating a fresh keyring following https://www.parabola.nu/news/gnupg-21-and-the-pacman-keyring/

Disable signature verification manually by modifying the line in /etc/pacman.conf:

RemoteFileSigLevel = Never

Install the keyring and mirror list for free repositories:

# pacman -U https://www.parabola.nu/packages/libre/x86_64/parabola-keyring/download
# pacman -U https://www.parabola.nu/packages/libre/x86_64/pacman-mirrorlist/download

Reenable signature verification in /etc/pacman.conf:

RemoteFileSigLevel = Required

Rename mirrorlist.pacnew as mirrorlist:

# cp -vr /etc/pacman.d/mirrorlist.pacnew /etc/pacman.d/mirrorlist

1.2 Replace non-free packages with Parabola liberated versions

Add the [libre] repo above [core] in /etc/pacman.conf:

...
[libre]
Include = /etc/pacman.d/mirrorlist
...
[core]
...

Add optional repos above [libre] in /etc/pacman.conf (see Repositories):

...
[pcr]
Include = /etc/pacman.d/mirrorlist
[kernels]
Include = /etc/pacman.d/mirrorlist
[nonprism]
Include = /etc/pacman.d/mirrorlist
...
[libre]
...

Clean the pacman cache:

# pacman -Scc

Force the database refresh:

# pacman -Syy

Update the keyring:

# pacman-key --refresh

Update to libre packages and install your-freedom to remove nonfree packages that do not have libre replacements:

# pacman -Suu pacman your-freedom

Install the optional your-privacy package to block privacy disrespecting network protocols (see Nonprism):

# pacman -Suu pacman your-privacy
Note: If some of your packages have higher version than in Parabola repos they will be downgraded to lower version of libre packages to eliminate packages that are nonfree
Warning: Beware any unofficial nonfree package that might still be lurking in your system (pacman -Q --foreign). Parabola doesn't support AUR helpers or any other third-party software. It is up to you to avoid installing nonfree software from AUR or from any other source.

1.3 Update bootloader configuration

Please update either GRUB or Syslinux, but not both, as it would cause a kernel panic.

1.3.1 GRUB

For grub regenerate your grub.cfg file running:

# grub-mkconfig -o /boot/grub/grub.cfg
Tip: Check https://wiki.archlinux.org/index.php/GRUB for more information

1.3.2 Syslinux

Manually change following lines in /boot/syslinux/syslinux.cfg to reflect change:

  • For generic kernel,
LABEL parabola
  MENU LABEL Parabola GNU/Linux-libre, with generic kernel
  LINUX ../vmlinuz-linux-libre
  ...
  INITRD ../initramfs-linux-libre.img
LABEL parabolafallback
  MENU LABEL Parabola GNU/Linux-libre fallback, with generic kernel
  LINUX ../vmlinuz-linux-libre
  ...
  INITRD ../initramfs-linux-libre-fallback.img
LABEL parabola
  MENU LABEL Parabola GNU/Linux-libre, with hardened kernel
  LINUX ../vmlinuz-linux-libre-hardened
  ...
  INITRD ../initramfs-linux-libre-hardened.img
LABEL parabolafallback
  MENU LABEL Parabola GNU/Linux-libre fallback, with hardened kernel
  LINUX ../vmlinuz-linux-libre-hardened
  ...
  INITRD ../initramfs-linux-libre-hardened-fallback.img
LABEL parabola
  MENU LABEL Parabola GNU/Linux-libre, with LTS kernel
  LINUX ../vmlinuz-linux-libre-lts
  ...
  INITRD ../initramfs-linux-libre-lts.img
LABEL parabolafallback
  MENU LABEL Parabola GNU/Linux-libre fallback, with LTS kernel
  LINUX ../vmlinuz-linux-libre-lts
  ...
  INITRD ../initramfs-linux-libre-lts-fallback.img

Alternatively you can remove the configuration file and reinstall syslinux.

1.3.3 Other

Tip: Check https://wiki.archlinux.org/index.php/Boot_Loaders for more information

1.4 Complete the migration

Restart your system - it should boot into Parabola.

2 After installation

Welcome, you are now in Parabola! Do you encounter some hardware not working after installing your-freedom? This most likely means that there's no free driver or firmware available for the device (check dmesg). It's common for Wi-Fi cards to require a firmware to be loaded into the card. Many cards don't work at all if the firmware is missing. The firmware is often proprietary, thus we don't distribute it. It's the case for almost any internal Wi-Fi card.

The usual fix to the problem is either to replace the card or use an external USB Wi-Fi dongle. You can buy one with Atheros chipset (eg. ath9k_htc for external USB dongle or ath9k for PCI and PCI-Express expansion slots) or RTL818x chipset (eg. rtl8187 for external USB dongle or rtl818x_pci for PCI and PCI-Express expansion slots) since there is a free firmware for these Wi-Fi adapters. You can also search the h-node database to find Wi-Fi adapters known to work well with free software or scripts/deblob-$ver to check Wi-Fi adapters included in the Linux-libre device blacklist.


If you find any trouble applying these instructions please report it on our Bug Tracker, or if you find a better way, edit this wiki article!

3 See also