This provides Realtek r8152 driver in DKMS way so that you can keep the latest driver even after the kernel upgrade.
The r8152 driver supports the following USB Ethernet chipsets.
Refers to the official websites, you can check it at the bottom of this document
For RTL8157 (5 GbE), you need 2.18.1 or above For RTL8159 (10 GbE), you need 2.20.1 or above
| Chipset | Interface | Performance |
|---|---|---|
| RTL8159 | USB 3.2 Gen 2x2 | 10 GbE |
| RTL8157 | USB 3.2 | 5 GbE |
| RTL8156 /B | USB 3.0 | 2.5 GbE |
| RTL8153 /B/C/D/E | USB 3.0 | 10/100/1000 MbE |
| RTL8154 /B | USB 2.0 | 10/100/1000 MbE |
| RTL8152B | USB 2.0 | 10/100M |
There are 3 ways to install this DKMS module. Choose one as your tastes.
Those are not interfering with each other. So you can do all 3 methods but absolutely you don't need to.
Installation using the Debian package is recommended for the sake of getting the newer driver.
Download the latest Debian package from the Release tab on the Github repository.
Then enter the following command.
sudo dpkg -i realtek-r8152-dkms-2.20.1-1*.debIf multiple files selected by the wild card, you should type the specific version of the file.
sudo dpkg -i realtek-r8152-dkms*.deb
If dependency error occurs, try to fix that with apt command.
sudo apt install --fix-brokenAdd the Launchpad PPA.
sudo add-apt-repository ppa:awesometic/ppaThen install the package using apt tool.
sudo apt install realtek-r8152-dkmsUsing the autorun.sh script that Realtek provides on their original driver package. This is not installed as a DKMS, only efforts to the current kernel.
Download or clone this repository and move to the extracted directory, then run the script.
sudo ./autorun.shThis script is from aircrack-ng team. You can install the DKMS module by a simple command.
Download or clone this repository and move to the extracted directory, then run the script.
sudo ./dkms-install.shYou can build yourself this after installing some dependencies including dkms.
sudo apt install devscripts debmake debhelper build-essential dkms dh-dkmsdpkg-buildpackage -b -rfakeroot -us -ucGPL-2 on Realtek driver and the debian packaing.