User Tools

Site Tools


install_drivers

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
install_drivers [2017/01/09 02:53] – Overhaul mister_xinstall_drivers [2018/10/05 23:27] (current) – [Driver compilation] Update links to Kali patches mister_x
Line 40: Line 40:
   * Linux kernel headers that match your current running kernel. On openSUSE, the kernel sources also must be installed.  Depending on the driver and distribution, you must install the full kernel sources as well.   * Linux kernel headers that match your current running kernel. On openSUSE, the kernel sources also must be installed.  Depending on the driver and distribution, you must install the full kernel sources as well.
   * The same **gcc** version that was used to compile your kernel. At least make sure that the first two version numbers or the compiler are the same (e.g. it's OK to use gcc **3.4**.6 to compile the driver if the kernel was compiled by gcc **3.4**.2). Ignoring this rule will cause **Invalid module format** errors during module load. That can be checked via /proc/version.   * The same **gcc** version that was used to compile your kernel. At least make sure that the first two version numbers or the compiler are the same (e.g. it's OK to use gcc **3.4**.6 to compile the driver if the kernel was compiled by gcc **3.4**.2). Ignoring this rule will cause **Invalid module format** errors during module load. That can be checked via /proc/version.
-  * Always use the latest patch from [[http://git.kali.org/gitweb/?p=packages/linux.git;a=blob_plain;f=debian/patches/features/all/kali-wifi-injection.patch;hb=refs/heads/kali/master|Kali]].+  * Always use the latest patches from Kali: 
 +    * [[https://git.kali.org/gitweb/?p=packages/linux.git;a=blob_plain;f=debian/patches/features/all/kali-wifi-injection.patch;hb=refs/heads/kali/master|kali-wifi-injection.patch]] 
 +    * [[https://git.kali.org/gitweb/?p=packages/linux.git;a=blob_plain;f=debian/patches/features/all/wireless-carl9170-Enable-sniffer-mode-promisc-flag-t.patch;hb=refs/heads/kali/master|wireless-carl9170-Enable-sniffer-mode-promisc-flag-t.patch]]
  
  
Line 127: Line 129:
 If you use the RPM package manager then "rpm -qa | grep kernel" So if you get something like: If you use the RPM package manager then "rpm -qa | grep kernel" So if you get something like:
  
-   kernel-headers-2.6.24.4-64.fc8 +  kernel-tools-libs-3.10.0-514.2.2.el7.x86_64 
-   kernel-2.6.24.4-64.fc8 +  kernel-headers-3.10.0-514.2.2.el7.x86_64 
-   kernel-devel-2.6.24.4-64.fc8 +  kernel-3.10.0-514.2.2.el7.x86_64 
-   kernel-headers-2.6.24.1-15.fc8 +  kernel-3.10.0-327.13.1.el7.x86_64 
-   kernel-2.6.24.1-15.fc8 +  kernel-devel-3.10.0-327.el7.x86_64 
-   kernel-devel-2.6.24.1-15.fc8+  kernel-devel-3.10.0-514.2.2.el7.x86_64 
 +  kernel-devel-3.10.0-327.18.2.el7.x86_64 
 +  kernel-tools-3.10.0-514.2.2.el7.x86_64 
 +  kernel-devel-3.10.0-327.13.1.el7.x86_64 
 +  kernel-3.10.0-327.18.2.el7.x86_64 
 +  kernel-3.10.0-327.el7.x86_64
  
 In the example above, there are kernel headers and a kernel development package that match the kernel we are running.  If you are missing them, the use yum or equivalent on your distribution to install them such as: In the example above, there are kernel headers and a kernel development package that match the kernel we are running.  If you are missing them, the use yum or equivalent on your distribution to install them such as:
Line 139: Line 146:
    yum -y install kernel-devel    yum -y install kernel-devel
  
-Lets assume that "uname -r" returned "2.6.24.4-64.fc8" then all the 2.6.24.1-15 ones are old and need to be removed.  So you remove all the old ones:+Lets assume that "uname -r" returned "3.10.0-514.2.2.el7.x86_64" then all the 3.10.0-327 ones are old and need to be removed.  So you remove all the old ones:
  
-   rpm -e 2.6.24.4-64.fc8 +   rpm -e kernel-3.10.0-327.13.1.el7.x86_64 
-   rpm -e kernel-2.6.24.1-15.fc8 +   rpm -e kernel-devel-3.10.0-327.el7.x86_64 
-   rpm -e kernel-devel-2.6.24.1-15.fc8+   rpm -e kernel-devel-3.10.0-327.18.2.el7.x86_64 
 +   rpm -e kernel-devel-3.10.0-327.13.1.el7.x86_64 
 +   rpm -e kernel-3.10.0-327.18.2.el7.x86_64 
 +   rpm -e kernel-3.10.0-327.el7.x86_64
  
 Also change to "/lib/modules" and do a directory listing and remove any directory referring to old kernel versions. Also change to "/lib/modules" and do a directory listing and remove any directory referring to old kernel versions.
Line 214: Line 224:
 When installing a recent version version of Aircrack-ng, a dedicated [[airmon-ng]] will be installed and it will take care of putting card in and out of monitor mode. When installing a recent version version of Aircrack-ng, a dedicated [[airmon-ng]] will be installed and it will take care of putting card in and out of monitor mode.
  
-===== Old page =====+===== Resources =====
  
-It can be found [[install_drivers_old|here]].+  * Previous version of this page can be found [[install_drivers_old|here]]. 
 +  * [[https://aircrack-ng.blogspot.com/2017/08/on-drivers-rtl8812au-wn722n-monitor.html|Discussion]] about current state of drivers, chipset and other WiFi-related topics
install_drivers.1483926819.txt.gz · Last modified: 2017/01/09 02:53 by mister_x