1.) First of all, check if your machine support compiz effects or not. Run this command in a terminal window:

/usr/lib/nux/unity_support_test -p

You will get the similar output, all “yes” means it works perfectly.

Not software rendered: yes
Not blacklisted: yes
GLX fbconfig: yes
GLX texture from pixmap: yes
GL npot or rect textures: yes
GL vertex program: yes
GL fragment program: yes
GL vertex buffer object: yes
GL framebuffer object: yes
GL version is 1.4+: yes

Unity 3D supported: yes

2.) Now install and launch CCSM:

sudo apt-get install compizconfig-settings-manager

All settings will be done in ccsm.

3.) In CompizConfig Settings Manager, click to go into Gereral Options -> Desktop Size. Set Horizontal Virtual Size to 4, and others to 1.

4.) Now, check Desktop Cube and Rotate Cube. Your desktop may mess up or even freeze with no window border, can’t move and resize windows. Don’t worry, check Window Decoration, Move Window, and Resize Window at next boot by running ccsm at a terminal (Ctrl+Alt+T)

5.) If you still can’t get it work, use following commands to remove all previous settings. And finally restart.

rm -rf .gconf/apps/compiz*
rm -rf .cache/compizconfig-1/
rm -rf .config/compiz-1/
rm -rf .compiz*