Introduction
Cairo-Dock is an animated application launch bar for the desktop, comparable to the dock in Mac OS X or Rocket Dock (for Windows).
It is compatible with Compiz-Fusion, Beryl, Compiz and Xcompmgr, but it can also run without a composite manager (using fake transparency). Cairo-Dock can run under GNOME, KDE and XFCE.
This page only describes how to install Cairo-Dock and some basic usage instructions. If you want to know more about configuration and themes you should go to the Cairo-Dock website and read this tutorial. The site is mostly in French, but the wiki has a complete English section and don't be afraid to ask questions or report bugs in the forum.
Installation
The project is split in to two parts: the dock itself and the plug-ins. Only the installation of the dock is explained, but installing the plug-ins is the same, just make sure you install the plug-ins after the dock.
The config file will not be overwritten during updates as Cairo-Dock is capable of inserting the missing fields if any without losing your previous settings.
Please note that, although Cairo-Dock is listed in the Universe repository since Ubuntu 8.10 (Intrepid Ibex) and can be installed using Synaptic Package Manager, it is recommended to install Cairo-Dock using one of the methods described below to get the most up-to-date and stable version of Cairo-Dock.
From the Repository (Stable)
This is only for Ubuntu 7.10 (Gutsy Gibbon) 32 bit, Ubuntu 8.04 (Hardy Heron) 32/64bit and Ubuntu 8.10 (Intrepid Ibex) 32/64bit.
To add the Cairo-Dock repository to your sources open the sources.list file:
sudo gedit /etc/apt/sources.list
and add the appropriate repository to the end of the file:
deb http://repository.cairo-dock.org/ubuntu intrepid cairo-dock
deb http://repository.cairo-dock.org/ubuntu hardy cairo-dock
deb http://repository.cairo-dock.org/ubuntu gutsy cairo-dock
The signed GPG key for identification of the repository is:
wget -q http://repository.cairo-dock.org/ubuntu/cairo-dock.gpg -O- | sudo apt-key add -
Then, to install Cairo-Dock, issue these two commands in the terminal:
sudo apt-get update
sudo apt-get install cairo-dock cairo-dock-plug-ins
There are no repositories available for releases older than Ubuntu 7.10 (Gutsy Gibbon). So, if you want Cairo-Dock for an older release, you must compile it or download the package.
From a .deb Package (Stable)
If you can't install Cairo-Dock from the repository, you can download the .deb package from BerliOS. But you first need to install the following packages:
sudo apt-get install libcairo2 librsvg2-2 libglitz1 libglitz-glx1
Then, download the package here.
Open the terminal, navigate to the directory which you downloaded the .deb package to (e.g. cd ~/Desktop) and issue the following commands (NB: Ensure that you have typed in the correct version number):
sudo dpkg -i cairo-dock_v1.6.3.1_i686.deb
and then:
sudo apt-get -f install
Done. You can type cairo-dock in terminal to launch and configure the dock.
By Compiling it (Stable)
First you must install the following packages:
sudo apt-get install build-essential libcairo2-dev libgtk2.0-dev librsvg2-dev libglitz1-dev libcairo2 librsvg2-2 libglitz1 libglitz-glx1 libglitz-glx1-dev m4 autotools-dev pkg-config libtool
Then, download the tar.bz2 package from BerliOS. Open the terminal and navigate to the download directory and type:
autoreconf -isvf
./configure –prefix=/usr
make
sudo make install
By Compiling it With a Script Using the Subversion (Unstable)
" src="https://help.ubuntu.com/htdocs/ubuntunew/img/attention.png" title="" height="15" width="15"> PLEASE DON'T USE THIS VERSION OF CAIRO-DOCK IF YOU DON'T KNOW WHAT YOU'RE DOING " src="https://help.ubuntu.com/htdocs/ubuntunew/img/attention.png" title="" height="15" width="15">
If you want to try the newest version of Cairo-Dock (not in the repository because it's not completely stable), you can use the SVN. But be aware that this version is potentially unstable and there are updates everyday. Use this version only if you know what you're doing, it is also preferable to know how Cairo-Dock works to be able to use the SVN.
A script has been written to compile the SVN version of Cairo-Dock easily. So, you just have to create a directory where the script will be installed in, download the script and launch it:
Open a terminal, and create a new directory:
mkdir /cairo-dock_svn
cd /cairo-dock_svn
Then get the script, make it executable and launch it:
wget http://cairo-dock.vef.fr/cairo-dock_svn.sh
chmod u+x cairo-dock_svn.sh
./cairo-dock_svn.sh
It will ask for the SVN password: JUST PRESS ENTER.
To finish, enter your own password when prompted by the script in order to proceed with to the installation.
A line will appear after the installation of each module and a final message will appear indicating that everything went well. If not, consult the log.txt file in the directory you have created at the beginning. Look at the end to locate the problem, then post it in the forum.
What is installed?
Cairo-Dock stores your launchers and your parameters in a hidden directory, ~/.config/cairo-dock
Also, binaries are in /usr/bin and data (including the default themes) in /usr/share
First Launch
If you installed Cairo-Dock from the packages, there should be a launcher in the applications menu, under the System Tools sub-menu. If there isn't a launcher there, just press Alt+F2 and type in cairo-dock. To enable backtraces on launch (sometimes useful if a problem occurs), open a terminal and type cairo-dock & disown and press enter.
On first launch, Cairo-Dock will configure itself and will offer you a list of themes to choose from. This allows you to have a fully functional dock immediately. You will have to move the mouse cursor to the bottom of the screen to see the dock if auto-hide has been enabled. This depends on the theme you chose at launch.
If you want to use another theme, right click on the dock and select Cairo-Dock > Manage Themes. To configure the dock's settings, right click the dock and select Cairo-Dock > Configure.