This page looks best with JavaScript enabled

Widevine on FreeBSD using Linux chroot

 ·  🎃 kr0m

It is always recommended to have multiple browsers since certain web pages have restrictions based on the operating system or simply use browser options that have not been ported to our platform.

In the first case, changing the User-Agent of the browser is probably enough to bypass the restriction, but if we are in the second case, the process will be more complicated. We could use software like Wine to run the Windows version, but this time we are going to create a Linux chroot in FreeBSD where Linux browsers will be installed. The chroot applications will be executed through the Linux binary compatibility layer or linuxlator.

In my case, I will use it to play DRM-protected content, since FreeBSD browsers lack this functionality (Widevine), so we will use the Linux version.

On another occasion , we already looked for a solution to this problem, but we depended entirely on a mobile phone.

We clone the installation script repository:

We launch the installer:

./linux-browser-installer install chrome

NOTE: The script allows you to install three different web browsers: Chrome, Brave, and Vivaldi.

Now we can start the Linux version of the browser:


To update the chroot software, simply run:

./linux-browser-installer jail upgrade

If you want to delete the chroot, you should run:

./linux-browser-installer jail delete

As a curiosity, we can access the chroot manually and check information:

chroot /compat/ubuntu /bin/bash

uname -a
Linux 3.17.0 FreeBSD 13.0-RELEASE-p11 #0: Tue Apr  5 18:54:35 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 20.04 LTS
Release:	20.04
Codename:	focal

We can even install all kinds of additional software:

apt install nano

And use it from our FreeBSD system:

/compat/ubuntu/bin/nano -V

 GNU nano, version 4.8
 (C) 1999-2011, 2013-2020 Free Software Foundation, Inc.
 (C) 2014-2020 the contributors to nano
 Email:	Web:
 Compiled options: --disable-libmagic --enable-utf8
If you liked the article, you can treat me to a RedBull here