Wie installiere ich Treiber unter Linux?

37319
Chris

Wenn Sie Linux-Treiber für Geräte wie drahtlose Dongles herunterladen, erhalten Sie einen Ordner mit zufälligen Dateien, von denen ich annehme, dass Sie sie kompilieren müssen. Wie installiere ich einen Wireless-Treiber in Linux?

3

4 Antworten auf die Frage

1
Carlisle White

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).
Das Offensichtliche aufzeigen: Normalerweise gibt es eine README-Datei, die Ihnen sagt, welche Befehle ausgeführt werden sollen. basic6 vor 9 Jahren 0
1
Douglas Leeder

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.

0
Ignacio Vazquez-Abrams

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.

0
djano

Mit Ubuntu können Sie den Befehl makemit installieren

sudo apt-get install make 

oder holen Sie sich ein Paket mit make:

sudo apt-get install build-essentials 
Willkommen bei Super User. Dies ist wirklich eine Klarstellung eines Punktes in der Antwort von Carlisle White und keine Lösung für die ursprüngliche Frage. Es ist beabsichtigt, dass Antwortposten verwendet werden sollten, um in sich geschlossene Lösungen für die ursprüngliche Frage bereitzustellen, wobei sich jede Antwort wesentlich von der bereits eingegangenen Antwort unterscheidet. Eine bessere Möglichkeit, diese Art von Informationen bereitzustellen, besteht darin, der Antwort, die Sie verbessern, eine Bearbeitung vorzuschlagen. Nur ein Heads-up, wenn Sie dies als Antwort posten, kann dies zu Downvotes führen oder gelöscht werden, da es der Definition einer Antwort auf der Website nicht entspricht. fixer1234 vor 6 Jahren 0