I always used Compiz with Debian,
Does it work correctly with Ubuntu 11.10?
If yes, what is the command that I need use to install it?
Ubuntu uses Compiz as its default window manager, so it should already be installed.
If you want to customize its behaviour, launch the Ubuntu Software Center and install the
CompizConfig Settings Manager ("ccsm", if you prefer install it from apt-get).