个人工具

“UbuntuHelp:CairoDock”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
第2行: 第2行:
 
{{Languages|UbuntuHelp:CairoDock}}
 
{{Languages|UbuntuHelp:CairoDock}}
 
#title Cairo-Dock
 
#title Cairo-Dock
[http://www.cairo-dock.org/images/logos/cd.png]
 
 
== Introduction ==
 
== Introduction ==
Cairo-dock is an animated application launch bar for the desktop comparable to Mac OS X's Dock, or Rocket Dock (for those of you who come from Windows).
+
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 also Xcompmgr, but it can run without a composite manager (with fake transparency). Cairo-Dock can run under GNOME, KDE, and XFCE.
+
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 describes only how to install Cairo-dock. If you want to know more (about configuration, themes,... ) you can see the official site:
+
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 [http://www.cairo-dock.org/index.php Cairo-Dock website] and read this [http://www.cairo-dock.org/ww_page.php?p=A%20complete%20tutorial%20on%20how%20to%20customize%20your%20dock&lang=en tutorial]. The site is mostly in French, but the [http://www.cairo-dock.org/ww_page.php wiki] has a complete English section and don't be afraid to ask questions or report bugs in the [http://www.cairo-dock.org/bg_forumlist.php forum].
http://www.cairo-dock.org/index.php
+
== Installation ==
and especially this tutorial :
+
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.
http://www.cairo-dock.org/ww_page.php?p=A%20complete%20tutorial%20on%20how%20to%20customize%20your%20dock&lang=en
+
The site is in French mainly, but the wiki has a complete English section which is updated as often as the French part ;)
+
If you have some questions or bugs to report, you can post on the forum
+
http://www.cairo-dock.org/bg_forumlist.php
+
. You can speak English there so don't be shy ;)
+
== Installation and Initial Launch ==
+
The Project is split in to two parts: the dock itself and the plug-ins (which provides mainly the applets). The installation for both is the same, so only the installation of the dock is explained. You just have to 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.
 
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 Cairo-Dock is part of Ubuntu since Intrepid Ibex (8.10); however, until things change, it is highly recommended to avoid this version, since it is very old (v1.5.5) and not maintained anymore.
+
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) ===
+
=== From the Repository (Stable) ===
(only for Hardy Heron 32/64bit, Gutsy Gibbon 32 bit, and Intrepid Ibex 32/64bit)
+
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.
Cairo-Dock has its own repository. So, to install it, you just have to edit your sources (sudo gedit /etc/apt/sources.list) and add the repository:
+
To add the Cairo-Dock repository to your sources open the sources.list file:
 
<pre><nowiki>
 
<pre><nowiki>
 +
gksudo gedit /etc/apt/sources.list</nowiki></pre>
 +
and add the appropriate repository to the end of the file:
 +
<pre><nowiki>
 +
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 hardy cairo-dock
or
+
 
deb http://repository.cairo-dock.org/ubuntu gutsy cairo-dock (if you are under Gutsy)
+
deb http://repository.cairo-dock.org/ubuntu gutsy cairo-dock</nowiki></pre>
or
+
deb http://repository.cairo-dock.org/ubuntu intrepid cairo-dock</nowiki></pre>
+
 
The signed GPG key for identification of the repository is:
 
The signed GPG key for identification of the repository is:
 
<pre><nowiki>
 
<pre><nowiki>
 
wget -q http://repository.cairo-dock.org/ubuntu/cairo-dock.gpg -O- | sudo apt-key add -</nowiki></pre>
 
wget -q http://repository.cairo-dock.org/ubuntu/cairo-dock.gpg -O- | sudo apt-key add -</nowiki></pre>
So, type it in a shell. Then, to install cairo-dock, type in a shell:
+
Then, to install Cairo-Dock, issue these two commands in the terminal:
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo apt-get update
 
sudo apt-get update
 
sudo apt-get install cairo-dock cairo-dock-plug-ins</nowiki></pre>
 
sudo apt-get install cairo-dock cairo-dock-plug-ins</nowiki></pre>
There is no repository available for older distributions such as Feisty. So, if you want Cairo-Dock under Feisty or older, you must compile it, or download the package (see below).
+
Note: if you get the error "E: Couldn't find package cairo-dock-plug-ins" try the code below as it seems there has been a name change and the package is now called cairo-dock-plugins in intrepid.
=== With the deb package (stable) ===
+
<pre><nowiki>
If you can't install cairo-dock from the repository, you can download the package from Berlios. But you first need to install the following packages:
+
sudo apt-get install cairo-dock-plugins</nowiki></pre>
 +
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:
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo apt-get install libcairo2 librsvg2-2 libglitz1 libglitz-glx1</nowiki></pre>
 
sudo apt-get install libcairo2 librsvg2-2 libglitz1 libglitz-glx1</nowiki></pre>
Then, download the package:
+
Then, download the [http://developer.berlios.de/project/showfiles.php?group_id=8724 package here].
http://developer.berlios.de/project/showfiles.php?group_id=8724
+
Open the terminal, navigate to the directory which you downloaded the .deb package to (e.g. <code><nowiki>cd ~/Desktop</nowiki></code>) and issue the following commands ('''NB:''' Ensure that you have typed in the correct version number):
in a shell, go to the directory where you have downloaded the .deb (use the command “cd the_directory”) and type
+
 
<pre><nowiki>
 
<pre><nowiki>
sudo dpkg -i xxx.deb</nowiki></pre>
+
sudo dpkg -i cairo-dock_v1.6.3.1_i686.deb</nowiki></pre>
xxx is the name of the package you have downloaded
+
and then:
and, type
+
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo apt-get -f install</nowiki></pre>
 
sudo apt-get -f install</nowiki></pre>
So, it's finished, you can type “cairo-dock” in a shell to launch it and configure it
+
Done. You can type <code><nowiki>cairo-dock</nowiki></code> in terminal to launch and configure the dock.
== By compiling it (stable)==
+
=== By Compiling it (Stable) ===
You must first install the following packages:
+
First you must install the following packages:
 
<pre><nowiki>
 
<pre><nowiki>
 
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</nowiki></pre>
 
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</nowiki></pre>
Then, download the tar.bz2 package here: http://developer.berlios.de/project/showfiles.php?group_id=8724, in the shell go to the download directory with “cd” and type:
+
Then, download the tar.bz2 package from [http://developer.berlios.de/project/showfiles.php?group_id=8724 BerliOS]. Open the terminal and navigate to the download directory and type:
 
<pre><nowiki>
 
<pre><nowiki>
 
autoreconf -isvf
 
autoreconf -isvf
第59行: 第55行:
 
make
 
make
 
sudo make install</nowiki></pre>
 
sudo make install</nowiki></pre>
=== By compiling it with a script using the SVN version (unstable) ===
+
=== By Compiling it With a Script Using the Subversion (Unstable) ===
""/!\ PLEASE DON'T USE THIS VERSION OF CAIRO-DOCK IF YOU DON'T KNOW WHAT YOU'RE DOING /!\""
+
<!> '''PLEASE DON'T USE THIS VERSION OF CAIRO-DOCK IF YOU DON'T KNOW WHAT YOU'RE DOING''' <!>
If you want to try the bleeding edge version of cairo-dock (not yet in the repository because it's not yet stable), you can use the SVN version. But be aware that this version is potentially unstable, and there are updates everyday. Please use this version only if you have used a stable version before, and if you know what you're doing. It is preferable to know how cairo-dock works to be able to use it.
+
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 was 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, to download the script, and to launch it:
+
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, start by creating a specific repertory (for example /cairo-dock_svn):
+
Open a terminal, and create a new directory:
 
<pre><nowiki>
 
<pre><nowiki>
 
mkdir /cairo-dock_svn
 
mkdir /cairo-dock_svn
第72行: 第68行:
 
chmod u+x cairo-dock_svn.sh
 
chmod u+x cairo-dock_svn.sh
 
./cairo-dock_svn.sh</nowiki></pre>
 
./cairo-dock_svn.sh</nowiki></pre>
The SVN Password will be required: JUST PRESS ENTER.
+
It will ask for the SVN password: JUST PRESS ENTER.
To finish, enter your own password when the script requires it in order to proceed with to the installation.
+
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 the final message indicates if everything went well. If not consult the log.txt file in the directory you have created at the beginning (~/cairo-dock_svn). Look at the end to locate the problem, then post it on the forum (you don't need to speak French ;) )
+
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 [http://www.cairo-dock.org/bg_forumlist.php forum].
For a good use of this unstable version, please get information on our site:
+
=== What is installed? ===
http://www.cairo-dock.org/ww_page.php?p=Accueil&lang=en
+
Cairo-Dock stores your launchers and your parameters in a hidden directory, ~/.config/cairo-dock
(direct link to the English section of the wiki)
+
Also, binaries are in /usr/bin and data (including the default themes) in /usr/share
=== What is installed ? ===
+
== First Launch ==
This is a question that everyone should ask when installing a program. Cairo-Dock stores your launchers and your parameters in a hidden directory .cairo-dock in your own user directory.
+
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 <code><nowiki>cairo-dock</nowiki></code>. To enable backtraces on launch (sometimes useful if a problem occurs), open a terminal and type <code><nowiki>cairo-dock & disown</nowiki></code> and press enter.
<pre><nowiki>
+
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.
~/.cairo-dock --> current_theme --> cairo-dock.conf+decorations+readme
+
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''.
              |                +--> launchers --> .desktop+icônes
+
== External Links ==
              +--> themes --> theme1 --> cairo-dock.conf+decorations+readme
+
* [http://www.cairo-dock.org Cairo-Dock Homepage]
                          |          +--> launchers --> desktop+icônes
+
* [http://www.cairo-dock.org/ww_page.php Cairo-Dock Wiki]
                          +--> theme2 --> cairo-dock.conf+decorations+readme
+
----
                          |          +--> launchers --> desktop+icônes
+
[[category:CategorySoftware]]
                          +--> .... </nowiki></pre>
+
The package also installs ready made themes in /usr/share/cairo-dock/themes. You can't modify them and they will be updated along with the dock.
+
=== First Launch ===
+
If you installed it from the packages, there should be a launcher in the menu, under the "System" sub-menu.
+
If not, just press <ALT>+F2 and type cairo-dock in the window that will appear.
+
To have the backtraces (sometimes useful if a problem should occur), open an terminal and type “cairo-dock &; disown” and press enter.
+
On first launch, cairo-dock will configure itself and will propose a list of themes (this allows you to have an instant fully functional dock and an overview of the different functionalities and options).
+
You may have to move the mouse cursor to the bottom of the screen to see the dock if auto-hide has been enabled. (It depends on the theme you choose. Generally, a little image is displayed on the hiding zone. Move your cursor on it)
+
After that if you want to test another theme just right click on the Dock and select "Manage themes". Some options are available, try cairo-dock –help (in a terminal) to list them. If you want to learn more about themes and how to create your own theme, you can go to the official site's wiki  http://www.cairo-dock.org/ww_page.php?p=Accueil&lang=en
+
== Some screenshots and possibilities ==
+
=== Screenshots of desktops of the team Cairo-Dock ===
+
here you can see screenshots of desktops of people who work on Cairo-Dock http://www.cairo-dock.org/mc_album.php?a=3
+
=== Some possibilities, applets, views... ===
+
** First, I'm going to show you the basic default view, simple, like the macOS bar. This is the view you will see when your dock is installed:
+
[http://img82.imageshack.us/img82/7016/defaultte7.png]
+
** Here is my dock, configured with the "3D view". This is a classical view with reflection of icons on the dock-panel.
+
You can also see here, the applet "compiz-icon" with the "parabolic-view" wich is a beautiful view for sub-docks:
+
[http://img161.imageshack.us/img161/6112/3dzw9.png]
+
** This is the "carousel" view. The dock looks like a roundabout. It is beautiful but hard to  manage ;)
+
[http://img370.imageshack.us/img370/7862/carousselbt5.png]
+
** You can see on this screenshot the curved view. This is my favorite view. And you can also see my sub dock "internet" with the "rainbow" view, very user friendly with sub docks which have a lot of launchers:
+
[http://img370.imageshack.us/img370/5711/normalex4.png]
+
** Here you can see the applet "weather" wich gives you the weather taken from the site weather.com. This applet has here the view "slide" which is smart for sub-docks which are not full:
+
[http://img161.imageshack.us/img161/9903/slideuz7.png]
+
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2009年5月12日 (二) 16:09的版本


  1. title Cairo-Dock

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:

gksudo 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

Note: if you get the error "E: Couldn't find package cairo-dock-plug-ins" try the code below as it seems there has been a name change and the package is now called cairo-dock-plugins in intrepid.

sudo apt-get install cairo-dock-plugins

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)

<!> PLEASE DON'T USE THIS VERSION OF CAIRO-DOCK IF YOU DON'T KNOW WHAT YOU'RE DOING <!> 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.

External Links