个人工具

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

来自Ubuntu中文

跳转至: 导航, 搜索
 
(未显示同一用户的5个中间版本)
第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.10 (Gutsy). For Kubuntu 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)
 
(Help for this available at [[UbuntuHelp:AddingRepositoriesHowto|AddingRepositoriesHowto]])
 
<pre><nowiki>deb http://ppa.launchpad.net/amaranth/ubuntu feisty main universe
 
deb-src http://ppa.launchpad.net/amaranth/ubuntu feisty main universe
 
</nowiki></pre>
 
Then run
 
<pre><nowiki>sudo apt-get update
 
</nowiki></pre>
 
That will update the package cache.
 
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
+
If you are running Kubuntu then use this command to install the most commonly needed packages. 
<pre><nowiki>sudo apt-get install compizconfig-settings-manager compiz-kde emerald
+
<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>
Or you won't get any window decorations.
+
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 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
+
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>
Alternatively, for Ubuntu: System -> Preferences -> CompizConfig Settings Manager
+
If ccsm is not found its installable from the  compizconfig-settings-manager package.
And for Kubuntu: KMenu -> Settings -> CompizConfig Settings Manager
+
Alternatively, for Ubuntu: System -> Preferences -> ![[UbuntuHelp:CompizConfig|CompizConfig]] Settings Manager
 +
And for Kubuntu: KMenu -> Settings -> ![[UbuntuHelp:CompizConfig|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 ===
 +
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
 +
<pre><nowiki>
 +
kde-window-decorator --replace
 +
</nowiki></pre>
 +
For Gnome the command
 +
<pre><nowiki>
 +
gtk-window-decorator --replace
 +
</nowiki></pre>
 +
If you perfer somthing different , the emerald  decorator is worth checking out, Use it with.
 +
<pre><nowiki>
 +
emerald --replace
 +
</nowiki></pre>
 
== Add Compiz Startup (optional) ==
 
== Add Compiz Startup (optional) ==
 
=== For Ubuntu ===
 
=== For Ubuntu ===
第44行: 第56行:
 
=== 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
 +
other window decorator for your system, such as in this example. 
 +
<pre><nowiki>
 +
$ cat ~/.kde/Autostart/startcompiz.sh
 +
compiz --replace  &
 +
emerald --replace &
 +
</nowiki></pre>
 +
Information on the 3 window decorators can be found at http://wiki.compiz-fusion.org/Plugins/Decoration
 
== Troubleshooting ==
 
== Troubleshooting ==
 
Under Kubuntu, some settings in the Compiz Settings Manager may not be selectable unless you  enable the "Flat-File Configuration Backend"
 
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)  
+
Under the CCSM tool -> Preferences -> (Backend drop down menu)  
 
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
 +
 
 +
# Alternate syntax if you receive: 'Window Manager error: Unable to Open X display'
 +
# when using the above command.  The correct --display= value can be determined by
 +
# issuing the 'who' command and noting the values in parenthesis at line-end.
 +
 
 +
metacity --display=:0.0 --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:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2009年11月17日 (二) 18:48的最新版本


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.10 (Gutsy). For Kubuntu 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

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 packages.

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 -> Preferences -> (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

# Alternate syntax if you receive: 'Window Manager error: Unable to Open X display'
# when using the above command.  The correct --display= value can be determined by 
# issuing the 'who' command and noting the values in parenthesis at line-end.

metacity --display=:0.0 --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 This Link