Many users have had problems with the Network cards Realtek because the data transfer is extremely slow.
The network card Realtek r8168B does not work well with Red Hat, CentOS, Fedora o Ubuntu: instead of loading the driver r8168, modprobe loads the driver r8169. In the forums Linux Mint have posted a solution for LMDE and I leave it to you below. What we will basically do is:
- Download a file from the official site of Realtek.
- We open a terminal.
- We go to the directory where we download the file and extract it.
- We execute the file autorun.sh.
- If we use the Kernel 3.x: we copy the file r8168.ko to the right place and load the module.
1.- We download the necessary driver
For this we are going to this link and we lower the driver.
2.- Unzip the downloaded file.
cd ~/Carpeta_donde_descargamos_el_driver
tar vjxf r8168-8.025.00.tar.gz
cd r8168-8.025.00
sudo ./autorun.sh
This script downloads and renames the r8169 driver so it won't cause any more problems. If we want, we add it to the black list with the following command:
echo "blacklist r8169" >> /etc/modprobe.d/blacklist.conf
3.- Correct in Kernel 3.X
If you are using the Kernel 3.0 they will realize that the file / src / Makefile has a bug that causes the file to be installed r8168.o instead of the file r8168.ko. After running the autorun.sh we put this in the terminal:
sudo cp src/r8168.ko /lib/modules/3.0.0-1-amd64/kernel/drivers/net/
sudo depmod
sudo modprobe r8168
And that's it.
And how do I avoid having to recompile it after updating the kernel?
I have the problem with the rtl 8187, it seems that they do not improve anything in the development of the new kernels that come out, a bitch but hey, we will have to put imagination to the matter.
regards
Now I see why! Thank you!
Regards. 🙂
It seemed weird to me already! Thank you!
Regards. 🙂
Hi how are you, when I run sudo ./autorun.sh I get: ./autorun.sh: 27: make: not fount
And when I want to run the following: sudo cp src / r8168.ko /lib/modules/3.0.0-1-amd64/kernel/drivers/net/ (In my case it is 3.0.0-12-server)
can't find the directory
I have the Ubuntu Server 11.10
Do you know why ???
See if you have the package installed make y gcc : )
It is probably more convenient to just install the package build-essential
Oh yeah 😀… I just didn't remember the name of the LOL metapackage
05: 00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111 / 8168 PCI Express Gigabit Ethernet controller (rev 06)
Subsystem: Giga-byte Technology Motherboard
Flags: fast development, IRQ 16
I / O ports at b000 [size = 256]
Memory at dc104000 (64-bit, prefetchable) [size = 4K]
Memory at dc100000 (64-bit, prefetchable) [size = 16K]
Capabilities: [40] Power Management version 3
Capabilities: [50] MSI: Enable- Count = 1/1 Maskable- 64bit +
Capabilities: [70] Express Endpoint, MSI 01
Capabilities: [b0] MSI-X: Enable- Count = 4 Masked-
Capabilities: [d0] Vital Product Data
Capabilities: [100] Advanced Error Reporting
Capabilities: [140] Virtual Channel
root @ vs r8168_scripts # ./switchmods
Attempting to remove running r8168 and r8169 modules if loaded…
Attempting to move /lib/modules/3.8.1-201.fc18.x86_64/kernel/drivers/net/r8169.ko to /lib/modules/3.8.1-201.fc18.x86_64/kernel/drivers/net/r8169.ko.bak.
Blacklisting r8169 in /etc/modprobe.d/blacklist…
Creating a tmp dir in which to build the module…
Checking for gcc and linux-headers-3.8.1-201.fc18.x86_64… dpkg-query: failed to open package info file `/ var / lib / dpkg / status' for reading: No such file or directory
You need to install package linux-headers-3.8.1-201.fc18.x86_64.
root @ vs r8168_scripts # yum install kernel-headers.x86_64
Loaded plugins: fastestmirror, langpacks, presto, refresh-packagekit
Loading mirror speeds from cached hostfile
* fedora: mirrors.med.harvard.edu
* rpmfusion-free: mirror.us.leaseweb.net
* rpmfusion-free-updates: mirror.us.leaseweb.net
* rpmfusion-nonfree: mirror.us.leaseweb.net
* rpmfusion-nonfree-updates: mirror.us.leaseweb.net
* updates: mirrors.med.harvard.edu
Package kernel-headers-3.8.1-201.fc18.x86_64 already installed and latest version
Thanks a lot! It happened to my pc that it did not connect the internet and there was no way, I did this as you put it and it worked! Now I just need to know because it only recognizes 2 usb ports of all what is in the computer and I would have everything 100% to be a new user in linux
Warning: No support for locale: es_CL.utf8 ???
Really, thanks so much. Two days to raise the blessed card and this has been the only solution that has worked. Thank you very much