We can run $ lspci -v to check the modules and corresponding drivers in use.
We’ll find that Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express is using driver r8169. We’ll fix the connection problem by install driver r8168.
- Download the 8168 Linux drivers from RealTek: Realtek RTL8111/8168
- Extract the downloaded 0002-r8168-8.040.00.tar.bz2 by running
$tar -xvf 0002-r8168-8.040.00.tar.bz2
- Step into the extraction folder, and Automatically replace the network driver by running
- Add r8169 into blacklist:
$echo “blacklist r8169” >> /etc/modprobe.d/blacklist.conf
Problem with “permission denied”:
If you see “permission denied” error, you should check the following:
1. Are you root?
Fix it by running for example $sudo ./autorun.sh or run $sudo su first
2. Is the file has x permission for execution?
Check by $ls -l
Then you can change the permission,
$sudo chmod 777 filename
3. Cannot change permission mod?
Some USB driver does not allow the files on the driver to have execution permission. Thus move the file/folder to the place/device that allows execution permission.
$cp -r folder_src folder_dst