With a recent enough Ubuntu just head over to the Appearance dialog (under the Settings menu), and from the Visual Effects check the radio button to enable the effects, if they already aren't. You'll need a decent graphics card and appropriate drivers for it, of course. Then install compizconfig-settings-manager (will be inserted to your settings menu in Gnome),
Code:
sudo apt-get install compizconfig-settings-manager
and you can easily tweak all the Compiz effects (there's also a "simple" configuration utility, but I sort of dislike it, and the Appearance dialog settings only let you to choose one of three levels---off/some/more effects---so this one you'll need). That's it.
It's Compiz Fusion nowadays, not Beryl or Compiz alone.