1. Open a terminal and type sudo su
2. Type apt-get install build-essential linux-headers-$(uname -r)
3. Type cd /usr/src
4. Type ln -s linux-headers-$(uname -r) linux
5. Type
wget http://us.download.nvidia.com/XFree86/Linux-x86/100.14.23/NVIDIA-Linux-x86-100.14.23-pkg1.run
6. Type /etc/init.d/gdm stop (to stop gdm and drop to a terminal)
7. Type cd /usr/src && sh NVIDIA-Linux-x86-100.14.23-pkg1.run (to launch the nVidia installer script)
* Accept the license agreement to continue
* Select No on the first question prompting to download Kernel from nVidia
* Click Ok to compile a new Kernel
* Select No at the prompt to abort now
* Let the installer finish the build
* Select Yes to let nVidia-xconfig automatically update your xorg.conf file
* Click Ok
* Once the installer has completed, type startx and enjoy your new video hardware enabled Lenny with nVidia drivers
You can change your resolution and other advanced video card settings via the nice NVIDIA X Server Settings control applet. Simply navigate to Applications-> System Tools -> NVIDIA X Server Settings
شماره 5 باید نسبت به فایل خودت تنظیم بشه .