I really like Brave browser, but installing it on Linux can be a pain in the ass. At least it was for me when I first tried it. Now that I’ve figured out a reliable way of doing it, I thought to share the steps I followed here for anyone who also wants a to run Brave on their Parrot system. I’ve only tried it on Parrot Home (and Kali), but it should work on Parrot Security as well. Just keep in mind that you cannot run Brave as root .
Step 1: Open a terminal and
type copy-paste the following line to install the repository key:
curl -s https://brave-browser-apt-release.s3.brave.com/brave-core.asc | sudo apt-key --keyring /etc/apt/trusted.gpg.d/brave-browser-release.gpg add -
Step 2: add the apt repository for Brave by
echo “deb [arch=amd64] https://brave-browser-apt-release.s3.brave.com/ bionic main” | sudo tee /etc/apt/sources.list.d/brave-browser-release-bionic.list
Note: This instruction requires you to specify the codename of the distro and version you are running. Since the Brave repository doesn’t recognize Parrot (nor Kali for that matter), you can use an Ubuntu codename. I have used bionic (which refers to bionic beaver aka Ubuntu 18.04). This was the first issue I struggled with on my first try.
Step 3: update the package lists
sudo apt update
Step 4: install Brave
sudo apt install brave-keyring brave-browser
Step 5: Check if you need to enable user namespaces in the kernel
This was the second issue to trip me up. If you run Brave without namespaces enabled, Brave will complain that there is no available sandbox and won’t run. You can first check if Brave works by running the following command in a terminal as a user other than root:
If you get the aforementioned error about no available sandbox, enable namespaces with these two commands:
echo ‘kernel.unprivileged_userns_clone=1’ > /etc/sysctl.d/00-local-userns.conf
service procps restart
Note: The above solution comes from the top comment on the following super user thread, which is referenced by the Brave team: https://superuser.com/questions/1094597/enable-user-namespaces-in-debian-kernel#1122977
Step 6: Run Brave (finally):
As mentioned before, you cannot run Brave as root, so make sure you are logged in as another user when you run it.
In Parrot OS, the Brave icon should show up where you expect it under Applications > Internet and under Menu > Internet
You can also run it from a terminal with the following command:
Step 7: Add a Brave shortcut to the Panel:
Go to Applications > Internet and locate the Brave icon. Right click on it and select “add this launcher to panel”
That’s it, you should be all set now. If you have any questions, let me know. I am very new to all of this myself but who knows, maybe I can help you out, or someone else on here.