Installing Compiz Fusion And The Nvidia Driver on Debian Squeeze

1. Open a terminal and become root:
[sourcecode]su[/sourcecode]

2. While Compiz Fusion is available in the main repository, the Nvidia driver is not – it comes from the non-free repository; that’s why we must open /etc/apt/sources.list…
[sourcecode]gedit /etc/apt/sources.list[/sourcecode]

… and append the string contrib non-free to all repositories:
[sourcecode language=”bash”]
deb http://ftp.de.debian.org/debian/ squeeze main contrib non-free
deb-src http://ftp.de.debian.org/debian/ squeeze main contrib non-free

deb http://security.debian.org/ squeeze/updates main contrib non-free
deb-src http://security.debian.org/ squeeze/updates main contrib non-free

deb http://ftp.de.debian.org/debian/ squeeze-updates main contrib non-free
deb-src http://ftp.de.debian.org/debian/ squeeze-updates main contrib non-free
[/sourcecode]

3. Update the package database afterwards:
[sourcecode language=”bash”]
apt-get update
[/sourcecode]

4. Then install Compiz Fusion and the Nvidia driver as follows:
[sourcecode language=”bash”]
apt-get install compiz compizconfig-settings-manager compiz-fusion-plugins-main compiz-gnome compiz-gtk fusion-icon compiz-fusion-plugins-extra compiz-fusion-plugins-unsupported nvidia-glx nvidia-xconfig nvidia-kernel-dkms nvidia-settings
[/sourcecode]

5. Reboot the system afterwards.
6. After the system has come up again, become root again
7. check if the Nvidia kernel module got loaded with lsmod | grep -i nvidia
the success output will be like this:
[sourcecode]
root@debian:/home/emka# lsmod | grep -i nvidia
nvidia 10670090 0
i2c_core 15819 6 nouveau,drm_kms_helper,drm,i2c_algo_bit,nvidia,i2c_nforce2
root@debian:/home/emka#
[/sourcecode]

Happy strugling guys!