LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   In general how to install drivers (https://www.linuxquestions.org/questions/linux-newbie-8/in-general-how-to-install-drivers-252875/)

themapincognita 11-09-2004 01:03 PM

In general how to install drivers
 
In Windows there is a pretty generic procedure for installing a new device (where a lot of the work is done for you). I was just wondering what is the equivalent in Linux? What are the steps?

Tinkster 11-09-2004 01:20 PM

The vast majority of drivers are actually part of the
linux-kernel, you may only need to actually load
them.

For the ones that aren't steps vary. Some people
will only distribute binary drivers (which is a pain
in the neck since you'll need new/different versions
for varied kernels (release wise) and/or compilers
used (e.g. gcc 2.95.3 vs. 3.3.x) ... others will be
distributed as source which means that you'll need
to have the kernel source installed so you can
compile them against the kernel you're using.


Cheers,
Tink

JaseP 11-09-2004 01:32 PM

Depends on the Distro.

It also depends on what hardware you are talking about.

A lot of distros have nice installers that take care of troublesome things like installing and configuring driver modules for various components. SuSE for example has a tool called YAST2. Also, there is SAX2 for video configuration.

Some distros are debian package distros,... like Debian (duh). Others are RedHat Package Manager (RPM) distros,... like RedHat (again, duh), SuSE, Mandrake, Fedora, etc.

Apt-get can also be used to install drivers and applications. It is a command that searches known databases for the latest version of a program, and together with its dependecies, installs it on your system. It's a very handy way of installing programs and is commonly used in Slackware.

Keep in mind that anything you can install using nice tools can also be installed using a command line. RPMs, for example, can be installed using the rpm command. Syntax of these commands is very important, and you have to know what you are doing.

Drivers can also be compiled manually from "tar-balls" that you download. You "untar" the file to a directory (much like unzipping), and then install with the make and install commands... It requires you to know a little bit about Linux to do this (Hence, things like RPMs, Debian packages, and the apt-get utility).

Once a driver is installed, you may have to configure the system to use it. With video, for example, you need to edit the X86Config or Xorg configuration files. Many distros have tools that do this for you (SAX2 for SuSE, HardDrake for Mandrake, etc.). You may also have to make the system use the particular module... using modprobe, insmod and lsmod,... Again, most well developed distros have tools to do this stuff.

Drivers can also be compiled into the kernel. The user can use the driver software together with the kernel source-code to create a custom kernel made specifically for that machine. The advantage is that the system will run quicker with less mess, after the custom kernel is properly compiled and installed.

So,... you can see that Linux is quite versatile, can be complex, but can also be easy to use...


All times are GMT -5. The time now is 02:57 PM.