个人工具

“UbuntuHelp:CompositeManager/CompizFusion”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
第2行: 第2行:
 
{{Languages|UbuntuHelp:CompositeManager/CompizFusion}}
 
{{Languages|UbuntuHelp:CompositeManager/CompizFusion}}
 
== Introduction ==
 
== Introduction ==
Compiz is a 3D desktop for your computer.  Compiz Fusion is the new name for the plugins and tools from Beryl. This guide shows how to get it running on Ubuntu and Kubuntu 7.04 (Feisty) as well as Kubuntu 7.10 (Gutsy). The following link shows a few demonstrations of Compiz Fusion:
+
Compiz is a 3D desktop for your computer.  Compiz Fusion is the new name for the plugins and tools from Beryl. This guide shows how to get it running on Ubuntu and Kubuntu 7.04 (Feisty) as well as Kubuntu 7.10 (Gutsy). For Kubuntu Hardy (8.04) you should use the installer '''KMenu -> System -> Desktop Effects'''. The following link shows a few demonstrations of Compiz Fusion:
 
* http://video.google.com/videosearch?q=compiz+fusion+ubuntu
 
* http://video.google.com/videosearch?q=compiz+fusion+ubuntu
 
== Install Compiz & Compiz Fusion plugins ==
 
== Install Compiz & Compiz Fusion plugins ==
 
If you're on Feisty, we need to add a third party repository to your /etc/apt/sources.list. (Not needed on Gutsy)
 
If you're on Feisty, we need to add a third party repository to your /etc/apt/sources.list. (Not needed on Gutsy)
 
(Help for this available at [[UbuntuHelp:AddingRepositoriesHowto|AddingRepositoriesHowto]])
 
(Help for this available at [[UbuntuHelp:AddingRepositoriesHowto|AddingRepositoriesHowto]])
<pre><nowiki>deb http://ppa.launchpad.net/amaranth/ubuntu feisty main universe
+
<pre><nowiki>
 +
deb http://ppa.launchpad.net/amaranth/ubuntu feisty main universe
 
deb-src http://ppa.launchpad.net/amaranth/ubuntu feisty main universe
 
deb-src http://ppa.launchpad.net/amaranth/ubuntu feisty main universe
 +
</nowiki></pre>
 +
NOTE: If you currently have compiz installed on your system, it is important to remove all of this first.
 +
Type
 +
<pre><nowiki>
 +
sudo apt-get remove compiz
 +
sudo apt-get remove compiz-core
 
</nowiki></pre>
 
</nowiki></pre>
 
Then run
 
Then run
<pre><nowiki>sudo apt-get update
+
<pre><nowiki>
 +
sudo apt-get update
 
</nowiki></pre>
 
</nowiki></pre>
 
That will update the package cache.
 
That will update the package cache.
 
Now to install the packages:
 
Now to install the packages:
 
From Ubuntu:
 
From Ubuntu:
<pre><nowiki>sudo apt-get install compiz compizconfig-settings-manager
+
<pre><nowiki>
 +
sudo apt-get install compiz compizconfig-settings-manager
 
</nowiki></pre>
 
</nowiki></pre>
 
If you are running Kubuntu then use this command to install the most commonly needed packatges.   
 
If you are running Kubuntu then use this command to install the most commonly needed packatges.   
<pre><nowiki>sudo apt-get install  compiz compizconfig-settings-manager  compiz-kde compiz-fusion-plugins-main compiz-fusion-plugins-extra  emerald librsvg2-common
+
<pre><nowiki>
 +
sudo apt-get install  compiz compizconfig-settings-manager  compiz-kde compiz-fusion-plugins-main compiz-fusion-plugins-extra  emerald librsvg2-common
 
</nowiki></pre>
 
</nowiki></pre>
 
If you are missing the window decorations, then you most likely need the compiz-kde,  or emerald packages.
 
If you are missing the window decorations, then you most likely need the compiz-kde,  or emerald packages.
 
== Run Compiz ==
 
== Run Compiz ==
 
To run Compiz for the current session, hold Alt, then press F2, then enter the following command, or for better trouble shooting, open up a Terminal window  and use the following command.  
 
To run Compiz for the current session, hold Alt, then press F2, then enter the following command, or for better trouble shooting, open up a Terminal window  and use the following command.  
<pre><nowiki>compiz --replace
+
<pre><nowiki>
 +
compiz --replace
 
</nowiki></pre>
 
</nowiki></pre>
 
== Configure ==
 
== Configure ==
 
To configure Compiz and associated plugins, hold Alt, then press F2, then enter the command, or use any Terminal.
 
To configure Compiz and associated plugins, hold Alt, then press F2, then enter the command, or use any Terminal.
<pre><nowiki>ccsm
+
<pre><nowiki>
 +
ccsm
 
</nowiki></pre>
 
</nowiki></pre>
 
If ccsm is not found its installable from the  compizconfig-settings-manager package.
 
If ccsm is not found its installable from the  compizconfig-settings-manager package.
Alternatively, for Ubuntu: System -> Preferences -> CompizConfig Settings Manager
+
Alternatively, for Ubuntu: System -> Preferences -> !CompizConfig Settings Manager
And for Kubuntu: KMenu -> Settings -> CompizConfig Settings Manager
+
And for Kubuntu: KMenu -> Settings -> !CompizConfig Settings Manager
 
or KMenu -> Settings -> Advanced Desktop Effects Settings
 
or KMenu -> Settings -> Advanced Desktop Effects Settings
 
You can select different themes with the emerald-theme-manager tool.
 
You can select different themes with the emerald-theme-manager tool.
 
To download the  themes for emerald  You must first install subversion, then activate the theme repositories.
 
To download the  themes for emerald  You must first install subversion, then activate the theme repositories.
<pre><nowiki>sudo apt-get install subversion
+
<pre><nowiki>
 +
sudo apt-get install subversion
 
svn ls https://svn.generation.no/emerald-themes
 
svn ls https://svn.generation.no/emerald-themes
 
</nowiki></pre>
 
</nowiki></pre>
 
You can then use the "Fetch GPL'd themes" button of The "emerald-theme-manager" tool.
 
You can then use the "Fetch GPL'd themes" button of The "emerald-theme-manager" tool.
=== window decorators ===
+
=== Window Decorators ===
 
Information on the 3 window decorators can be found at http://wiki.compiz-fusion.org/Plugins/Decoration
 
Information on the 3 window decorators can be found at http://wiki.compiz-fusion.org/Plugins/Decoration
 
Currently there are 3 choices in what window decorator to use.  
 
Currently there are 3 choices in what window decorator to use.  
 
They work with compiz to give your windows the various borders, and widgets.
 
They work with compiz to give your windows the various borders, and widgets.
 
For kde one normally uses the command  
 
For kde one normally uses the command  
<pre><nowiki> kde-window-decorator --replace  
+
<pre><nowiki>
 +
kde-window-decorator --replace
 
</nowiki></pre>
 
</nowiki></pre>
 
For Gnome the command  
 
For Gnome the command  
<pre><nowiki> gtk-window-decorator --replace
+
<pre><nowiki>
 +
gtk-window-decorator --replace
 
</nowiki></pre>
 
</nowiki></pre>
 
If you perfer somthing different , the emerald  decorator is worth checking out, Use it with.
 
If you perfer somthing different , the emerald  decorator is worth checking out, Use it with.
<pre><nowiki> emerald --replace
+
<pre><nowiki>
 +
emerald --replace
 
</nowiki></pre>
 
</nowiki></pre>
 
== Add Compiz Startup (optional) ==
 
== Add Compiz Startup (optional) ==
第58行: 第74行:
 
=== For Kubuntu ===
 
=== For Kubuntu ===
 
Open Konsole (KMenu -> System -> Konsole) and type in these commands:
 
Open Konsole (KMenu -> System -> Konsole) and type in these commands:
<pre><nowiki>echo "compiz --replace" > ~/.kde/Autostart/startcompiz.sh
+
<pre><nowiki>
 +
echo "compiz --replace" > ~/.kde/Autostart/startcompiz.sh
 
chmod +x ~/.kde/Autostart/startcompiz.sh
 
chmod +x ~/.kde/Autostart/startcompiz.sh
 
</nowiki></pre>
 
</nowiki></pre>
 
This creates a 'startcompiz.sh' script in the ~/.kde/Autostart directory,  if you wish you may also want to  have the script start up 'emerald --replace' or
 
This creates a 'startcompiz.sh' script in the ~/.kde/Autostart directory,  if you wish you may also want to  have the script start up 'emerald --replace' or
 
other window decorator for your system, such as in this example.   
 
other window decorator for your system, such as in this example.   
<pre><nowiki> cat ~/.kde/Autostart/startcompiz.sh
+
<pre><nowiki>
 
+
$ cat ~/.kde/Autostart/startcompiz.sh
 
compiz --replace  &
 
compiz --replace  &
 
emerald --replace &
 
emerald --replace &
 
 
</nowiki></pre>
 
</nowiki></pre>
 
Information on the 3 window decorators can be found at http://wiki.compiz-fusion.org/Plugins/Decoration
 
Information on the 3 window decorators can be found at http://wiki.compiz-fusion.org/Plugins/Decoration
第75行: 第91行:
 
If you ran nvidia-settings, then your xorg.conf lost some info.
 
If you ran nvidia-settings, then your xorg.conf lost some info.
 
To fix your compiz window decorations (titlebars) with an nVidia graphics card, run  
 
To fix your compiz window decorations (titlebars) with an nVidia graphics card, run  
<pre><nowiki>sudo nvidia-xconfig --add-argb-glx-visuals -d 24
+
<pre><nowiki>
 +
sudo nvidia-xconfig --add-argb-glx-visuals -d 24
 
</nowiki></pre>
 
</nowiki></pre>
 
then restart X by logging out and back in again and selecting "Restart X Server" from the login menu.
 
then restart X by logging out and back in again and selecting "Restart X Server" from the login menu.
 
If you want to stop Compiz and start the old window manager (metacity or kwin), just press ''Alt+F2'' and put in the following for Ubuntu
 
If you want to stop Compiz and start the old window manager (metacity or kwin), just press ''Alt+F2'' and put in the following for Ubuntu
<pre><nowiki>metacity --replace
+
<pre><nowiki>
 +
metacity --replace
 
</nowiki></pre>
 
</nowiki></pre>
 
Or for Kubuntu
 
Or for Kubuntu
<pre><nowiki>kwin --replace
+
<pre><nowiki>
 +
kwin --replace
 
</nowiki></pre>
 
</nowiki></pre>
 
=== Fullscreen windows bug ===
 
=== Fullscreen windows bug ===
 
It may happen that windows of specific programs might fully cover the desktop including the taskbar. This is due to a bug in the "workaround" plugin.
 
It may happen that windows of specific programs might fully cover the desktop including the taskbar. This is due to a bug in the "workaround" plugin.
This display default may be fixed by turning off the "Legacy Fullscreen Support" in the "workaround" plugin, opening your programs which were displayed improperly, and turning the "Legacy Fullscreen Support" option back on. For more details: [WWW] http://www.moleculargeek.net/blog/compiz-fusion-workarounds-for-workarounds.html  
+
This display default may be fixed by turning off the "Legacy Fullscreen Support" in the "workaround" plugin, opening your programs which were displayed improperly, and turning the "Legacy Fullscreen Support" option back on. For more details see [[http://www.moleculargeek.net/blog/compiz-fusion-workarounds-for-workarounds.html|This Link]]
 
----
 
----
 
[[category:CategoryDocumentation]]
 
[[category:CategoryDocumentation]]
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2008年10月19日 (日) 04:38的版本


Introduction

Compiz is a 3D desktop for your computer. Compiz Fusion is the new name for the plugins and tools from Beryl. This guide shows how to get it running on Ubuntu and Kubuntu 7.04 (Feisty) as well as Kubuntu 7.10 (Gutsy). For Kubuntu Hardy (8.04) you should use the installer KMenu -> System -> Desktop Effects. The following link shows a few demonstrations of Compiz Fusion:

Install Compiz & Compiz Fusion plugins

If you're on Feisty, we need to add a third party repository to your /etc/apt/sources.list. (Not needed on Gutsy) (Help for this available at AddingRepositoriesHowto)

deb http://ppa.launchpad.net/amaranth/ubuntu feisty main universe
deb-src http://ppa.launchpad.net/amaranth/ubuntu feisty main universe

NOTE: If you currently have compiz installed on your system, it is important to remove all of this first. Type

sudo apt-get remove compiz
sudo apt-get remove compiz-core

Then run

sudo apt-get update

That will update the package cache. Now to install the packages: From Ubuntu:

sudo apt-get install compiz compizconfig-settings-manager

If you are running Kubuntu then use this command to install the most commonly needed packatges.

sudo apt-get install  compiz compizconfig-settings-manager  compiz-kde compiz-fusion-plugins-main compiz-fusion-plugins-extra  emerald librsvg2-common

If you are missing the window decorations, then you most likely need the compiz-kde, or emerald packages.

Run Compiz

To run Compiz for the current session, hold Alt, then press F2, then enter the following command, or for better trouble shooting, open up a Terminal window and use the following command.

compiz --replace

Configure

To configure Compiz and associated plugins, hold Alt, then press F2, then enter the command, or use any Terminal.

ccsm

If ccsm is not found its installable from the compizconfig-settings-manager package. Alternatively, for Ubuntu: System -> Preferences -> !CompizConfig Settings Manager And for Kubuntu: KMenu -> Settings -> !CompizConfig Settings Manager or KMenu -> Settings -> Advanced Desktop Effects Settings You can select different themes with the emerald-theme-manager tool. To download the themes for emerald You must first install subversion, then activate the theme repositories.

sudo apt-get install subversion
svn ls https://svn.generation.no/emerald-themes

You can then use the "Fetch GPL'd themes" button of The "emerald-theme-manager" tool.

Window Decorators

Information on the 3 window decorators can be found at http://wiki.compiz-fusion.org/Plugins/Decoration Currently there are 3 choices in what window decorator to use. They work with compiz to give your windows the various borders, and widgets. For kde one normally uses the command

kde-window-decorator --replace

For Gnome the command

gtk-window-decorator --replace

If you perfer somthing different , the emerald decorator is worth checking out, Use it with.

emerald --replace

Add Compiz Startup (optional)

For Ubuntu

Go to System -> Preferences -> Desktop Effects and click 'Enable Desktop Effects'

For Kubuntu

Open Konsole (KMenu -> System -> Konsole) and type in these commands:

echo "compiz --replace" > ~/.kde/Autostart/startcompiz.sh
chmod +x ~/.kde/Autostart/startcompiz.sh

This creates a 'startcompiz.sh' script in the ~/.kde/Autostart directory, if you wish you may also want to have the script start up 'emerald --replace' or other window decorator for your system, such as in this example.

$ cat ~/.kde/Autostart/startcompiz.sh
compiz --replace  &
emerald --replace &

Information on the 3 window decorators can be found at http://wiki.compiz-fusion.org/Plugins/Decoration

Troubleshooting

Under Kubuntu, some settings in the Compiz Settings Manager may not be selectable unless you enable the "Flat-File Configuration Backend" Under the CCSM tool -> Preferances -> (Backend drop down menu) If you ran nvidia-settings, then your xorg.conf lost some info. To fix your compiz window decorations (titlebars) with an nVidia graphics card, run

sudo nvidia-xconfig --add-argb-glx-visuals -d 24

then restart X by logging out and back in again and selecting "Restart X Server" from the login menu. If you want to stop Compiz and start the old window manager (metacity or kwin), just press Alt+F2 and put in the following for Ubuntu

metacity --replace

Or for Kubuntu

kwin --replace

Fullscreen windows bug

It may happen that windows of specific programs might fully cover the desktop including the taskbar. This is due to a bug in the "workaround" plugin. This display default may be fixed by turning off the "Legacy Fullscreen Support" in the "workaround" plugin, opening your programs which were displayed improperly, and turning the "Legacy Fullscreen Support" option back on. For more details see [Link]