Ubuntu: How to install Realtek driver
toma7569
Posted messages
205
Registration date
Status
Member
Last intervention
-
toma7569 Posted messages 205 Registration date Status Member Last intervention -
toma7569 Posted messages 205 Registration date Status Member Last intervention -
Hello,
Configuration: Windows 7 / Firefox 6.0.2
I installed Ubuntu on my PC this weekend. Great. But after a few days, I was surprised to find that sometimes I have no internet connection (even though all the lights on my BBox are green). For example, today I was able to connect all day but tonight it's impossible for a few moments and then it comes back more or less.
Basically, I have the impression of having a low-speed connection. Sometimes, I can't even access google.com
I did a test from Seven (same PC as the one with LinuxMint installed but not in dual boot; the two OS are on two distinct hard drives) and it works!
Here is my motherboard: Gigabyte GA-H67MA. Regarding the Ethernet, it's the Realtek RTL8111E.
I saw on this forum that my motherboard uses a "Realtek RTL8111E" chipset which requires the "r8168" driver instead of the "r8169" driver which is sometimes automatically used and causes disconnection issues.
I checked and indeed I have the r8169 installed!
I'm going to try to get the "r8168" but I have some issues understanding how to uninstall the 8169 and install (apparently you have to compile...) the 8168.
How do I do it?
Thank you
Configuration: Windows 7 / Firefox 6.0.2
I installed Ubuntu on my PC this weekend. Great. But after a few days, I was surprised to find that sometimes I have no internet connection (even though all the lights on my BBox are green). For example, today I was able to connect all day but tonight it's impossible for a few moments and then it comes back more or less.
Basically, I have the impression of having a low-speed connection. Sometimes, I can't even access google.com
I did a test from Seven (same PC as the one with LinuxMint installed but not in dual boot; the two OS are on two distinct hard drives) and it works!
Here is my motherboard: Gigabyte GA-H67MA. Regarding the Ethernet, it's the Realtek RTL8111E.
I saw on this forum that my motherboard uses a "Realtek RTL8111E" chipset which requires the "r8168" driver instead of the "r8169" driver which is sometimes automatically used and causes disconnection issues.
I checked and indeed I have the r8169 installed!
I'm going to try to get the "r8168" but I have some issues understanding how to uninstall the 8169 and install (apparently you have to compile...) the 8168.
How do I do it?
Thank you
2 answers
-
Hi,
You are downloading the latest version of the driver:
wget ftp://WebUser:r3iZ6vJI@95.130.192.218/cn/nic/r8168-8.025.00.tar.bz2
You unpack the archive:
tar xvjf r8168-8.025.00.tar.bz2
You enter the newly created directory:cd r8168-8.025.00/
And you run the executable:sudo ./autorun.sh
Of course, your system must have the kernel sources installed as well as the compilation tools like gcc and make.
If they were not installed:
sudo aptitude install build-essential linux-headers-$(uname -r)
Once the driver is compiled, it is explained in the README (don’t forget the "sudo"):<Quick install with proper kernel settings> Unpack the tarball : # tar vjxf r8168-8.aaa.bb.tar.bz2 Change to the directory: # cd r8168-8.aaa.bb If you are running the target kernel, then you should be able to do : # ./autorun.sh (as root or with sudo) You can check whether the driver is loaded by using following commands. # lsmod | grep r8168 # ifconfig -a
Previously, you will need to unload the old module:sudo rmmod r8169
And put it in the blacklist to prevent it from loading on the next boot:sudo echo "blacklist r8169" >> /etc/modprobe.d/blacklist.conf
Good luck ;-))
--
Zen my nuggets ;-)
Do a favor for the environment, close your windows and adopt a penguin. -
It works. I'm keeping my fingers crossed.
Thank you for your valuable help!
Have a good day
update : The hassle hasn't really gone away. For some unknown reason, it's lagging again. I boot up Buntu, I connect to Google and after a few seconds or minutes, the connection starts lagging like crazy!!!
What a pain this Ethernet is!! I'm on 2.6.38.8: would the solution be to upgrade to kernel 3.0?
I'M REALLY STARTING TO GET DESPAIRING TO THE POINT OF GIVING UP AND STICKING WITH SEVEN |-)