In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "how to install device drivers on Linux". In daily operation, I believe many people have doubts about how to install device drivers on Linux. Xiaobian consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts of "how to install device drivers on Linux". Next, please follow the editor to study!
There are two ways to find the driver 1. User interface
If you are a Linux novice who has just transferred from Windows or MacOS, you will be glad to know that Linux also provides a way to use a wizard program to see if the driver is available. Ubuntu provides an additional driver option. Other Linux distributions also provide helpers, such as GNOME's package manager, which you can use to check whether drivers are available.
2. Command line
What if you can't find the driver through the beautiful user interface? Maybe you can only use shell without any graphical interface? You can even use the console to showcase your skills. You have two choices:
Hongmeng official Strategic Cooperation to build HarmonyOS Technology Community
Through a warehouse.
This is very similar to the homebrew command line in MacOS. By using yum, dnf, apt-get, and so on. You can basically add repositories and update the package cache.
Download, compile, and then build your own
This usually includes downloading the source package directly from the network or through the wget command, and then running the configuration and compiling and installing. This is beyond the scope of this article, but you can find a lot of online guides online if you choose this path.
Check to see if this driver has been installed
Before we go any further to install the Linux driver, let's learn a few commands to detect whether the driver is already available on your system.
The lspci command displays details of all PCI buses and device drivers on the system.
$lscpci
Or use grep:
$lscpci | grep SOME_DRIVER_KEYWORD
For example, you can use the lspci | grep SAMSUNG command if you want to know if Samsung drivers have been installed.
The dmesg command shows all kernel-recognized drivers.
$dmesg
Or in conjunction with grep:
$dmesg | grep SOME_DRIVER_KEYWORD
Any recognized drivers are displayed in the results.
If no drivers are recognized through the dmesg or lscpi commands, try these two commands to see if the drivers are at least loaded on the hard drive.
$/ sbin/lsmod
And
$find / lib/modules
Tip: as with lspci or dmesg, filter the results by adding | grep to the command above.
If a driver is recognized but cannot be found through lscpi or dmesg, it means that the driver already exists on the hard disk but is not loaded into the kernel, in which case you can load the module with the modprobe command.
$sudo modprobe MODULE_NAME
Use sudo to run this command because the module is installed with root privileges.
Add warehouse and install
You can add a repository in several different ways: yum, dnf, and apt-get; it is beyond the scope of this article to cover them one by one. To put it simply, this example will use apt-get, but this command is very similar to several others.
1. Delete the existing repository, if it exists $sudo apt-get purge NAME_OF_DRIVER*
Where NAME_OF_DRIVER is the possible name of your driver. You can also add pattern matching to regular expressions to further filter.
2. Add the warehouse to the warehouse table, which should specify $sudo add-apt-repository REPOLIST_OF_DRIVER in the driver guide
Where REPOLIST_OF_DRIVER should be specified from the driver document (for example: epel-list).
3. Update the warehouse list $sudo apt-get update4, install the driver $sudo apt-get install NAME_OF_DRIVER5, and check the installation status
As mentioned above, use the lscpi command to check that the driver has been successfully installed.
At this point, the study on "how to install device drivers on Linux" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.