Realtek r8168 on Ubuntu 12.04

  1. Download the driver from here, current version is 8.038.00.
  2. Extract to /usr/src

    cd /usr/src
    tar xjvf ~/Downloads/r8168-8.038.00.tar.bz2
    
  3. Create /usr/src/r8168-8.038.00/dkms.conf

    PACKAGE_NAME="r8168"
    PACKAGE_VERSION="8.038.00"
    CLEAN[0]="make clean"
    BUILT_MODULE_NAME[0]="r8168"
    BUILT_MODULE_LOCATION[0]="src"
    DEST_MODULE_LOCATION[0]="/updates"
    MAKE[0]="'make' 'modules'"
    AUTOINSTALL="YES"
    REMAKE_INITRD="YES"
    

  4. Add, Build and Install the module with DKMS

    dkms add -m r8168 -v 8.038.00
    dkms build -m r8168 -v 8.038.00
    dkms install r8168/8.038.00
    

Tagged with: , , ,
Posted in Linux, Ubuntu

Leave a comment