(one line at a time, enter then after command complete execute the next command line)
$sudo add-apt-repository ppa:cairo-dock-team/ppa
$sudo apt-get update
$sudo apt-get install cairo-dock cairo-dock-plug-ins
From: Install Cairo Dock 3.1 in Ubuntu 12.10/12.04/Mint (New Release)
'via Blog this'