Installing Compiz Fusion And The Nvidia Driver on Debian Squeeze

1. Open a terminal and become root:

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 squeeze main contrib non-free
deb-src squeeze main contrib non-free

deb squeeze/updates main contrib non-free
deb-src squeeze/updates main contrib non-free

deb squeeze-updates main contrib non-free
deb-src squeeze-updates main contrib non-free

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

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

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:
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

Happy strugling guys!