Software & AppsOperating SystemLinux

How To Install Realtek RTL8812BU Drivers on Ubuntu

Ubuntu 7

In this article, we will guide you through the process of installing Realtek RTL8812BU drivers on an Ubuntu system. This is a common task for those who are using a WiFi dongle that relies on this driver. We will be using the terminal for this process, and we’ll explain each command along the way. Let’s get started.

Quick Answer

To install Realtek RTL8812BU drivers on Ubuntu, you can use the cilynx repository. First, identify if your dongle requires these drivers by using the lsusb command. Then, update your system and install necessary packages. Clone the driver repository, change to the driver directory, and copy the driver files to the appropriate location. Add the driver to DKMS, build and install it, and finally load the driver. Reboot your system for the changes to take effect.

Pre-Installation: Identifying the Dongle

Before we start installing the drivers, we need to make sure that your dongle requires the RTL8812BU drivers. Here’s how to do it:

  1. Open a terminal. You can do this by pressing Ctrl+Alt+T.
  2. Type the command lsusb and press Enter. This command lists all USB devices connected to your system.
  3. Look for the ID number of your dongle in the output. It should look something like 2357:0115.
  4. Use a search engine to look up this ID number along with the word “wiki”, e.g., “wiki 2357:0115”. This should tell you which Realtek driver you need.

If your search confirms that you need the RTL8812BU driver, you can proceed to the next section.

Installation: Using the cilynx Repository

We will be using a repository maintained by a user named cilynx to install the drivers. Here are the steps:

  1. Open a terminal and run the following commands to update your system and install necessary packages:
sudo apt-get update
sudo apt-get install build-essential dkms git

The sudo command allows you to run commands with administrative privileges. apt-get update updates the list of available packages and their versions, but it does not install or upgrade any packages. apt-get install installs new packages (in this case, build-essential, dkms, and git).

  1. Clone the driver repository to your system:
git clone

git clone is a command that clones a repository into a newly created directory.

  1. Change to the driver directory:
cd rtl88x2BU_WiFi_linux_v5.2.4.4_26334.20180126_COEX20171012-5044

cd is a command that changes the current directory to the one specified.

  1. Retrieve the version number:
VER=$(cat ./version)

cat ./version reads the version file in the current directory and the output is stored in the VER variable.

  1. Copy the driver files to the appropriate location:
sudo rsync -rvhP ./ /usr/src/rtl88x2bu-${VER}

rsync is a command for copying and syncing files. The -rvhP option stands for recursive, verbose, human-readable, and progress.

  1. Add the driver to DKMS:
sudo dkms add -m rtl88x2bu -v ${VER}

dkms add is a command that adds a module to the DKMS tree, -m specifies the module and -v specifies the version.

  1. Build and install the driver:
sudo dkms build -m rtl88x2bu -v ${VER}
sudo dkms install -m rtl88x2bu -v ${VER}

dkms build and dkms install are commands that build and install a module into the kernel.

  1. Load the driver:
sudo modprobe 88x2bu

modprobe is a command that adds a module to the Linux kernel.

After running these commands, your driver should be installed and ready to use.

Post-Installation: Rebooting the System

Finally, reboot your system to ensure the driver is properly loaded. You can do this by clicking on the system menu and choosing “Reboot”, or by running the command sudo reboot in the terminal.


Installing the Realtek RTL8812BU drivers on Ubuntu may seem complicated, but by following these steps, you should be able to get your WiFi dongle up and running. Remember, it’s important to ensure that you’re installing the correct drivers for your specific hardware. If you have any issues, don’t hesitate to seek help from the Ubuntu community.

For more information about the commands used in this article, you can refer to their man pages by typing man [command] in the terminal, replacing [command] with the name of the command you want to learn more about.

What is a WiFi dongle?

A WiFi dongle, also known as a USB WiFi adapter, is a small device that allows you to connect to wireless networks using your computer or laptop’s USB port.

How do I open a terminal in Ubuntu?

To open a terminal in Ubuntu, you can press Ctrl+Alt+T on your keyboard. This will launch the default terminal emulator.

What is the purpose of the `lsusb` command?

The lsusb command is used to list all USB devices connected to your system. It provides information about the vendor and product IDs of the devices, which can be helpful in identifying the specific drivers required.

What is a repository?

In the context of Ubuntu, a repository is a collection of software packages that are maintained by the Ubuntu community or third-party developers. It provides a convenient way to install and update software on your system.

What is DKMS?

DKMS stands for Dynamic Kernel Module Support. It is a framework that allows the installation of kernel modules (device drivers) that can be automatically rebuilt and installed when a new kernel version is installed on the system. DKMS simplifies the process of maintaining and updating kernel modules.

How do I clone a repository using Git?

To clone a repository using Git, you can use the git clone command followed by the URL of the repository. This creates a local copy of the repository on your system.

What is the purpose of the `sudo` command?

The sudo command is used in Ubuntu to run commands with administrative privileges. It allows you to perform tasks that require root (administrator) access, such as installing software or modifying system files.

Why do I need to reboot after installing the driver?

Rebooting your system after installing the driver ensures that the driver is properly loaded into the kernel and any necessary system configurations are applied. This helps to ensure that the driver functions correctly and is ready to use.

Leave a Comment

Your email address will not be published. Required fields are marked *