Install the latest non-free Nvidia driver

author:jozee, linea, domcox

Required Reading

Prepare

Install the driver

For this part you’re going to need a pencil and paper as we now have to work in text mode without a X-server running.

When you’re ready press Alt+Ctrl+Del, you should now see a command line:

  • Configure the X-server and copy the (generated) xorg.conf

    # Xorg -configure
    # cp /root/xorg.conf.new /etc/X11/xorg.conf
    
  • Prepare the Kernel

    # cd /usr/src/linux
    
    # make oldconfig && make prepare
    
    # make menuconfig  # (not required - but if you've come this far, you can take a peek)
    # make bzImage
    # make modules
    # make modules_install
    
  • Now make executable and install the Nvidia driver, change to directory you installed to

    # chmod +x NVIDIA-Linux-x86-177.80.pkg1.run
    # ./NVIDIA-Linux-x86-177.80.pkg1.run --kernel-source-path=/usr/src/linux
    
  • Copy the Kernel Image to /boot

    # cd /usr/src/linux
    # cp arch/x86/boot/bzImage /boot
    

Restart

  • Reboot into text mode

    # reboot                         # Hard drive users
    # tazusb writefs gzip && reboot  # USB users
    

    Don’t forget to pass the screen=text option at startup, (it may well boot into text mode anyway, if not just press Alt+Ctrl+Del again)

  • Load the nvidia module

    # modprobe -v nvidia
    
  • Edit SLiM configuration file to load Xorg server

    # vi /etc/slim.conf
    
    default_xserver     /usr/bin/Xorg
    #default_xserver     /usr/bin/Xvesa
    #xserver_arguments   -ac -shadow dpms +extension Composite -screen 1024x768x24
    
  • Restart SLiM

    # /etc/init.d/slim start
    

Err… that’s it

(If you want the nvidia module to persist, just add it to the LOAD_MODULES variable in /etc/rcS.conf)