The way to Install A Device Driver On Linux- 2 Approaches

Itching your head because of missing device driver on your machine? Seeking how you can set up a device drive on a Linux system? Just switched to a brand new OS, but hardware will not be operating nicely? Check out this article to understand how you could install a missing device drive on your Linux system. Get more data about How To Install A Device Driver On Linux- 2 Methods


Installing and configuring a driver on a Linux based machine is quite daunting for all those who just switched to Linux from Windows/Mac, or attempting the new OS with dual boot. The extensively used windows and Mac operating system often tends to make it a user-friendly experience when it comes to set up device drivers, but in case of a Linux OS, the user could find a few of their hardware just isn't operating. Properly, this wouldn't be an issue anymore.


Is it challenging to set up a device driver on Linux?

For Windows and Mac OS customers, it’s actually a simple approach to install any device driver because the OS detects those automatically. Also, the customers can download the missing ones from the internet, and just click on a basic wizard to have the driver installed.


Nevertheless, in case of a Linux platform, the process just isn't adequate uncomplicated. One on the most common reason is, Linux is definitely an open-source OS plus a number of variations offered. So, there can’t be a single method which can suit all Linux platforms, and just about every of the distribution has its own way relating to how you can install a device driver on system.


Furthermore, most of the default Linux drivers are open-source and integrated in the system, and this makes the installation of missing drivers very difficult, if not incorporated already with OS. Nonetheless, most of the beneficial drivers are automatically detected with well-known Linux distros.


An additional cause why installing a device driver on a Linux is often complicated is license policies which technically differ amongst Linux distributions. Which include Fedora restricts to include things like drivers that are legally prohibited or violate cyber laws. Even Ubuntu asks its users to prevent using closed hardware.


Indicates, installing a device driver on a Linux is usually a bit challenging, but nonetheless here talked about 2 approaches may be valuable.


Two Strategies To find Drivers & Install on Linux

Method 1: Using Built-in Interface

Newbies must know that Linux platform mostly offers possible ways to verify a driver is available through built-in wizards. For Example, the Ubuntu Distro allows users to deal with an option called Additional Drivers. You'll be able to locate this option on Ubuntu within Software Updater > Additional Drivers.


Method 2: Using Command Line

Although, the majority of your hardware’s driver can easily be found using Linux GUI interface. But, what if you fail to locate a certain driver through GUI offered by the distro. In this case, you could use Command line option to seek out a certain driver. To do so, customers have two options that are described below:


Option 1: Using a repository

If you are familiar Mac OS, you might aware of the term homebrew. In Linux, there’s a similar command as well through which it is possible to add repository to your system and install a device driver. Some properly known commands used in various Linux distros include things like yum, dnf, apt-get, and so on. Adding a repository allows you to update the package cache, and this could set up any missing driver.


Option 2: Download, compile and build it yourself

Under this option, you could download the driver package directly from its official website or by using wget command, and run the configuration file and Makefile to install the package. This option may be different for various Linux distributions. So we suggest you to check for specific guidelines for your OS type and device.


How you can verify currently installed driver details?

Since we are going discuss the best way to set up a device driver on Linux, it’s necessary to know if what drivers are already installed in your machine.


In order to do so, we can use lscpci command which brings data about all PCI buses and active devices on a Linux machine. Below are the commands to use:


sudo lscpci

Filtering the details using grep command:


sudo lscpi | grep driver_name

To determine all device drivers recognized by kernel, we can use the following command:


sudo dmesg

or use grep to filter the details


sudo dmesg | grep driver_name

However, in case if you find nothing with above two described command, then you can use the following two command to check if the driver is at least loaded on the disk:





uncover /lib/modules

If you end up noticing the device driver is loaded on the disk with above two commands, but not recognized by the kernel, then it is possible to load the module using below command:


sudo modprobe missing_mod_name

The way to install a device driver by adding a repository?

As described already, there might be various commands which we use to add a repository in different Linux platforms for example yum, dnf, and apt-get. Under this example, we are using apt-get command, nevertheless the measures in other distros will be similar.


In order to add a repository and set up a missing driver, follow the steps described:


Step 1: Delete existing repository, if already existing


sudo apt-get purge Driver_Name

Inside the above command, the Driver_Name is actually the name of driver which is missing or not installed properly.


Step 2: Adding the repository to repolist


sudo apt-get-repository Driver_Repolist

Here, Driver_Repolist value could be found on a certain driver’s documentation. You should read the documentation to determine the name specific to driver which you want to install.


Step 3: Updating the repository list on your machine


sudo apt-get update

Step 4: Installing the driver package


sudo apt-get set up Driver_Name

Once the installation is done, you'll be able to check if the driver is installed and loaded correctly with the commands discussed above (lscpi command).



This tutorial relating to ways to set up a device driver on Linux may possibly be beneficial to install a missing driver on your machine. If you uncover the guidelines seriously useful, share it with your friends.

Go Back


Blog Search


There are currently no blog comments.