What Is Parabola Linux and How to Install It

Spread the love

Parabola is a Linux distribution that focuses on producing a secure and Libre version of Arch Linux. Unlike a regular distribution, Parabola distinguishes itself by only including software and libraries that you can inspect yourself.

This article shows you how to install Parabola Linux as well as guide you through the process of installing your own desktop environment.

Content

Why Use Parabola Linux

The biggest selling point of Parabola Linux is that it is one of the few distributions that provide a Libre operating system. This means that every piece of the distro, including the kernel, does not contain any closed source code.

Another advantage of Parabola Linux is that its default install only contains basic tools and utilities. This allows you to customize your system and only include the programs that you want. For example, you can use the same install disk for a desktop and a web server.

Obtaining and Booting the Parabola Live ISO

  1. Go to the distribution’s website and click “Download” on the page’s upper right corner.

  1. Scroll down to the contents section and select the “Parabola SystemD CLI ISO” section under “Parabola CLI Edition.”

  1. Click the “Web” link under the “Download” column:

  1. Write the Parabola ISO file to your disk. You can do this by using either BalenaEtcher or dd.

  1. Once you have created the live USB, restart your computer and configure the BIOS to boot up your new Parabola installer.

Preparing the Disks for Parabola

During bootup, Parabola will load two prompts which will ask for your machine’s locale and keymap. These allow you to switch to a different language and keyboard layout during installation.

  1. For the first prompt, select the language that you want the system to run on.

  1. Select the type of keyboard that you are using.

Creating the Boot Partition

  1. Find the device file for the disk that you want to install Parabola on:
lsblk | grep disk
  1. Run the fdisk command along with the device file for your hard disk:
fdisk /dev/sda

  1. Press G to wipe the existing partition table in your disk.

  1. Next, you need to create the boot partition in your hard disk. To do that, press N then type 1.

  1. Press Enter, then type +256M on the “sector” prompt. This will set the size of your boot partition to 256 MB.

  1. After that, press T then type 4 to change your boot partition to “BIOS boot.”

It is important to note that the “BIOS boot” type will only work on BIOS machines. If you are using a UEFI system you need to change the type of your boot partition from “4” to “1.”

Good to know: Learn what a firmware interface is and what makes UEFI different from the traditional BIOS.

Creating the Swap Partition

Once done, you need to create your machine’s swap partition. This is a location in your disk that serves as a buffer where your system can store data whenever it runs out of memory.

  1. To create a swap partition, press N then type “2.”

  1. Press Enter, then type +4G on the “sector” prompt. Similar to the boot partition, this will set your swap size to 4 GB.

  1. Next, you need to press T then type 2 to actively select your new partition. After that, type 19 to change the type of your swap partition to “Linux swap.”

FYI: Learn how swap works and how you can configure your kernel’s swappiness.

Creating the Root Partition

Lastly, you also need to prepare a space for your root partition. This is where the Parabola system will live as well as all of your user files.

  1. To create your root partition, press N then type “3.”

  1. Press Enter twice on the “sector” prompt. Doing this will tell fdisk to allocate the rest of the disk’s free space for this partition.

  1. Press W to write the new partition table to your hard disk.

Formatting the Root Partition

Once done, you can now install a filesystem that will manage the contents of your partitions. This is a piece of software that converts raw data from your disk into workable logical files.

  1. Run the following command to install the “ext4” filesystem to your root partition:
mkfs.ext4 /dev/sda3

  1. Create the swap filesystem for your swap partition:
mkswap /dev/sda2

  1. Turn on your new swap filesystem. Doing this will allow the system to tap into your disk’s swap during installation:
swapon /dev/sda2
  1. Mount the root filesystem to your “/mnt” directory:
mount /dev/sda3 /mnt

Note: If you are using a UEFI system, you also need to format your boot partition as FAT32. You can do that by running the following command:

mkfs.vfat -F 32 /dev/sda1

Installing Parabola Linux

Similar to Gentoo, Parabola Linux expects you to manually install every package that you want to use. While tedious, this approach gives you the flexibility of choosing even the critical programs of your distro.

  1. To begin, you need to import both the Arch Linux and Parabola Linux signing keys:
pacman --needed -Syy archlinux-keyring parabola-keyring

  1. Install the base set of packages for Parabola Linux:
pacstrap /mnt base linux-libre-lts networkmanager

  1. Install the “parabola-base” metapackage. This is a collection of useful and essential tools that you would normally find in a regular Linux distro:
pacstrap /mnt parabola-base

  1. You also need to install the GRUB bootloader as well as any software that you want to include in your base distro:
pacstrap /mnt grub wpa_supplicant dialog

Configuring Parabola Linux

  1. Use the genfstab utility to create your system’s “/etc/fstab.” The following will generate an “/etc/fstab” with a UUID for each partition entry:
genfstab -U -p /mnt >> /mnt/etc/fstab

  1. Change the root directory of the session to your new Parabola Linux install.
arch-chroot /mnt

  1. After that, create your hostname file by running the following command:
echo "maketecheasier" > /etc/hostname

  1. You also need to create your system’s “/etc/hosts” file. The following is an example of a hosts file for a single machine:
127.0.0.1    localhost 
::1    localhost
127.0.1.1    maketecheasier.localdomain maketecheasier

  1. Run the following commands to enable the American English locale for your system:
sed -i s/#en_US.UTF/en_US.UTF/ /etc/locale.gen
locale-gen

  1. You also need to run the following commands to set the system language as well as its default keymap:
echo 'LANG="en_US.UTF-8"' > /etc/locale.conf
echo 'KEYMAP=us' > /etc/vconsole.conf

  1. Set your system’s timezone by creating a symbolic link between your location file in “/usr/share/zoneinfo” and “/etc/localtime.”
ln -sf /usr/share/zoneinfo/Asia/Manila /etc/localtime

You can use the following command to quickly find the location file for your region:

find /usr/share/zoneinfo -type f -name "CITY_NAME" | grep -v 'right\|posix'

Configuring Root and Adding a User

With those done, the next thing that you need to do is to add a password to your root account and create your first user.

  1. To add a password to the root account, run the following:
passwd

  1. On the other hand, you can create your first user account by running these two commands:
useradd ramces -m -s /bin/sh
passwd ramces

Creating the Ramdisk and GRUB

At this point, you now have an almost complete Parabola Linux install. In order to boot from it, however, you still need to create your system ramdisk and GRUB config.

  1. To create your ramdisk file, you need to use the mkinitcpio command along with the name of your system’s kernel:
mkinitcpio -p linux-libre-lts

  1. Configure GRUB by running grub-install and grub-mkconfig. The former will place the kernel in the “/boot” directory while the latter will generate the appropriate config files:
grub-install /dev/sda
grub-mkconfig -o /boot/grub/grub.cfg

Rebooting Parabola

Once you have configured the bootloader, you can now load your new Parabola installation. To do that, you need to exit the chroot and unmount your root disk partition.

  1. Run the following command to exit from your chroot session:
exit

  1. Turn off your swap and unmount your root partition:
swapoff /dev/sda2
umount /mnt

  1. Run the reboot command to load into your new operating system.
reboot

Installing a Desktop Environment

By default, Parabola Linux does not contain any graphical programs. In order to use it as a workstation, you need to first install a desktop environment.

While Parabola provides multiple environments in its repositories, the easiest way to get started is to install GNOME. This is a software suite that provides a complete desktop with minimal setup and configuration.

  1. Enable your machine’s networking:
systemctl enable --now NetworkManager
  1. Install the GNOME desktop environment:
pacman -S gnome
  1. Pacman will ask for the packages that you want to install. Type “1,2,4-54” then press Enter.

  1. You also need to specify the sound utility that you want for your desktop. Type “1” then press Enter.

  1. Once done, start the GNOME desktop by enabling its systemd service:
systemctl enable gdm

  1. Reboot Parabola to login to your GNOME desktop:
reboot

Good to know: Learn how to customize your GNOME desktop by installing third-party shell extensions.

Frequently Asked Questions

I cannot access my wireless network using Parabola.

This issue is most likely due to a missing Wi-Fi firmware on the Linux-libre kernel. Since Parabola does not contain any closed-source code, the only way to fix this is to either replace your Wi-Fi card or install a regular Linux kernel.

I cannot install my favorite program in Parabola.

This happens whenever Parabola fails to find a package in its repositories. You can fix this either by enabling the AUR or opening a package request in the Parabola Community Repository.

Is it possible to check whether my system has non-free software in it?

Yes. You can do this by installing the “your-freedom” package. This will check every program in your system and replace any closed-source software with an open-source alternative.

Image credit: DESIGNECOLOGIST via Unsplash. All alterations and screenshots by Ramces Red.

Subscribe to our newsletter!

Our latest tutorials delivered straight to your inbox

Sign up for all newsletters.
By signing up, you agree to our Privacy Policy and European users agree to the data transfer policy. We will not share your data and you can unsubscribe at any time. Subscribe


Ramces Red
Staff Writer

Ramces is a technology writer that lived with computers all his life. A prolific reader and a student of Anthropology, he is an eccentric character that writes articles about Linux and anything *nix.

Comments (1)