How do you install drivers on linux?

3

When you download linux drivers for devices such as wireless dongles, you'll get a folder full of random files that I'm assuming oyu need to compile? How do you install a wireless driver in linux?

Chris

Posted 2010-04-03T03:46:26.837

Reputation: 583

Answers

2

Generally it depends on many things, but I'll sum them up to 2 ways:

  • Through a repository: In this case the driver needed is available as a package already compiled in your distribution. Using the package manager (apt-get, yum, pacman, ...) you may install the needed one(s). E.g. apt-get install package_name would do in Debian based distributions.
  • The other way is downloading the sources and compiling them yourself. As it is a driver you'll need a development package for your kernel as Ignacio noted (you may get it using the repositories). Once that is installed, the most general way to install things in Linux usually involves running 3 commands in the directory the sources for the driver (in this case) are: ./configure, make, and make install. The last one is generally called with superuser privileges (either directly from the root account or through sudo, gksu or something similar).

Carlisle White

Posted 2010-04-03T03:46:26.837

Reputation: 36

Pointing out the obvious: There is usually a README file which tells you what commands to run. – basic6 – 2015-04-23T11:08:14.740

1

In practice most devices are already supported by the installed kernel and modules; just plug in the device and try it out.

If it doesn't work then you can see if there are drivers in a separate package. Look in the dmesg output to see if anything has been detected for your device.

Douglas Leeder

Posted 2010-04-03T03:46:26.837

Reputation: 1 375

0

First you need to install make, gcc, and the development files for your kernel (in a package called kernel-devel or something similar). Then read the INSTALL or README file that comes with the driver in order to learn the correct sequence of commands used to build and install that driver.

Ignacio Vazquez-Abrams

Posted 2010-04-03T03:46:26.837

Reputation: 100 516

0

With Ubuntu, you can install the command make with

sudo apt-get install make

or get a package that contains make:

sudo apt-get install build-essentials

djano

Posted 2010-04-03T03:46:26.837

Reputation: 1

Welcome to Super User. This is really a clarification of a point in Carlisle White's answer rather than a solution to the original question. The intention is that answer posts should be used to provide self-contained solutions to the original question, with each answer substantively different from what has already been contributed. A better way to provide this kind of information is to propose an edit to the answer you're improving. Just a heads-up that posting this as an answer might attract downvotes or it might get deleted because it doesn't meet the site's definition of an answer. – fixer1234 – 2017-11-24T23:58:51.343