特殊:Badtitle/NS100:CompositeManager/InstallingCompiz
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/CompositeManager/InstallingCompiz }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:CompositeManager/InstallingCompiz | UbuntuHelp:CompositeManager/InstallingCompiz | {{#if: | :}}CompositeManager/InstallingCompiz}}/af | • {{#if: UbuntuHelp:CompositeManager/InstallingCompiz|Afrikaans| [[::CompositeManager/InstallingCompiz/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/InstallingCompiz | UbuntuHelp:CompositeManager/InstallingCompiz | {{#if: | :}}CompositeManager/InstallingCompiz}}/ar | • {{#if: UbuntuHelp:CompositeManager/InstallingCompiz|العربية| [[::CompositeManager/InstallingCompiz/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/InstallingCompiz | UbuntuHelp:CompositeManager/InstallingCompiz | {{#if: | :}}CompositeManager/InstallingCompiz}}/az | • {{#if: UbuntuHelp:CompositeManager/InstallingCompiz|azərbaycanca| [[::CompositeManager/InstallingCompiz/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/InstallingCompiz | UbuntuHelp:CompositeManager/InstallingCompiz | {{#if: | :}}CompositeManager/InstallingCompiz}}/bcc | • {{#if: UbuntuHelp:CompositeManager/InstallingCompiz|جهلسری بلوچی| [[::CompositeManager/InstallingCompiz/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/InstallingCompiz | UbuntuHelp:CompositeManager/InstallingCompiz | {{#if: | :}}CompositeManager/InstallingCompiz}}/bg | • {{#if: UbuntuHelp:CompositeManager/InstallingCompiz|български| [[::CompositeManager/InstallingCompiz/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/InstallingCompiz | UbuntuHelp:CompositeManager/InstallingCompiz | {{#if: | :}}CompositeManager/InstallingCompiz}}/br | • {{#if: UbuntuHelp:CompositeManager/InstallingCompiz|brezhoneg| [[::CompositeManager/InstallingCompiz/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/InstallingCompiz | UbuntuHelp:CompositeManager/InstallingCompiz | {{#if: | :}}CompositeManager/InstallingCompiz}}/ca | • {{#if: UbuntuHelp:CompositeManager/InstallingCompiz|català| [[::CompositeManager/InstallingCompiz/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/InstallingCompiz | UbuntuHelp:CompositeManager/InstallingCompiz | {{#if: | :}}CompositeManager/InstallingCompiz}}/cs | • {{#if: UbuntuHelp:CompositeManager/InstallingCompiz|čeština| [[::CompositeManager/InstallingCompiz/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/InstallingCompiz | UbuntuHelp:CompositeManager/InstallingCompiz | {{#if: | :}}CompositeManager/InstallingCompiz}}/de | • {{#if: UbuntuHelp:CompositeManager/InstallingCompiz|Deutsch| [[::CompositeManager/InstallingCompiz/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/InstallingCompiz | UbuntuHelp:CompositeManager/InstallingCompiz | {{#if: | :}}CompositeManager/InstallingCompiz}}/el | • {{#if: UbuntuHelp:CompositeManager/InstallingCompiz|Ελληνικά| [[::CompositeManager/InstallingCompiz/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/InstallingCompiz | UbuntuHelp:CompositeManager/InstallingCompiz | {{#if: | :}}CompositeManager/InstallingCompiz}}/es | • {{#if: UbuntuHelp:CompositeManager/InstallingCompiz|español| [[::CompositeManager/InstallingCompiz/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/InstallingCompiz | UbuntuHelp:CompositeManager/InstallingCompiz | {{#if: | :}}CompositeManager/InstallingCompiz}}/fa | • {{#if: UbuntuHelp:CompositeManager/InstallingCompiz|فارسی| [[::CompositeManager/InstallingCompiz/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/InstallingCompiz | UbuntuHelp:CompositeManager/InstallingCompiz | {{#if: | :}}CompositeManager/InstallingCompiz}}/fi | • {{#if: UbuntuHelp:CompositeManager/InstallingCompiz|suomi| [[::CompositeManager/InstallingCompiz/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/InstallingCompiz | UbuntuHelp:CompositeManager/InstallingCompiz | {{#if: | :}}CompositeManager/InstallingCompiz}}/fr | • {{#if: UbuntuHelp:CompositeManager/InstallingCompiz|français| [[::CompositeManager/InstallingCompiz/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/InstallingCompiz | UbuntuHelp:CompositeManager/InstallingCompiz | {{#if: | :}}CompositeManager/InstallingCompiz}}/gu | • {{#if: UbuntuHelp:CompositeManager/InstallingCompiz|ગુજરાતી| [[::CompositeManager/InstallingCompiz/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/InstallingCompiz | UbuntuHelp:CompositeManager/InstallingCompiz | {{#if: | :}}CompositeManager/InstallingCompiz}}/he | • {{#if: UbuntuHelp:CompositeManager/InstallingCompiz|עברית| [[::CompositeManager/InstallingCompiz/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/InstallingCompiz | UbuntuHelp:CompositeManager/InstallingCompiz | {{#if: | :}}CompositeManager/InstallingCompiz}}/hu | • {{#if: UbuntuHelp:CompositeManager/InstallingCompiz|magyar| [[::CompositeManager/InstallingCompiz/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/InstallingCompiz | UbuntuHelp:CompositeManager/InstallingCompiz | {{#if: | :}}CompositeManager/InstallingCompiz}}/id | • {{#if: UbuntuHelp:CompositeManager/InstallingCompiz|Bahasa Indonesia| [[::CompositeManager/InstallingCompiz/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/InstallingCompiz | UbuntuHelp:CompositeManager/InstallingCompiz | {{#if: | :}}CompositeManager/InstallingCompiz}}/it | • {{#if: UbuntuHelp:CompositeManager/InstallingCompiz|italiano| [[::CompositeManager/InstallingCompiz/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/InstallingCompiz | UbuntuHelp:CompositeManager/InstallingCompiz | {{#if: | :}}CompositeManager/InstallingCompiz}}/ja | • {{#if: UbuntuHelp:CompositeManager/InstallingCompiz|日本語| [[::CompositeManager/InstallingCompiz/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/InstallingCompiz | UbuntuHelp:CompositeManager/InstallingCompiz | {{#if: | :}}CompositeManager/InstallingCompiz}}/ko | • {{#if: UbuntuHelp:CompositeManager/InstallingCompiz|한국어| [[::CompositeManager/InstallingCompiz/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/InstallingCompiz | UbuntuHelp:CompositeManager/InstallingCompiz | {{#if: | :}}CompositeManager/InstallingCompiz}}/ksh | • {{#if: UbuntuHelp:CompositeManager/InstallingCompiz|Ripoarisch| [[::CompositeManager/InstallingCompiz/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/InstallingCompiz | UbuntuHelp:CompositeManager/InstallingCompiz | {{#if: | :}}CompositeManager/InstallingCompiz}}/mr | • {{#if: UbuntuHelp:CompositeManager/InstallingCompiz|मराठी| [[::CompositeManager/InstallingCompiz/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/InstallingCompiz | UbuntuHelp:CompositeManager/InstallingCompiz | {{#if: | :}}CompositeManager/InstallingCompiz}}/ms | • {{#if: UbuntuHelp:CompositeManager/InstallingCompiz|Bahasa Melayu| [[::CompositeManager/InstallingCompiz/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/InstallingCompiz | UbuntuHelp:CompositeManager/InstallingCompiz | {{#if: | :}}CompositeManager/InstallingCompiz}}/nl | • {{#if: UbuntuHelp:CompositeManager/InstallingCompiz|Nederlands| [[::CompositeManager/InstallingCompiz/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/InstallingCompiz | UbuntuHelp:CompositeManager/InstallingCompiz | {{#if: | :}}CompositeManager/InstallingCompiz}}/no | • {{#if: UbuntuHelp:CompositeManager/InstallingCompiz|norsk| [[::CompositeManager/InstallingCompiz/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/InstallingCompiz | UbuntuHelp:CompositeManager/InstallingCompiz | {{#if: | :}}CompositeManager/InstallingCompiz}}/oc | • {{#if: UbuntuHelp:CompositeManager/InstallingCompiz|occitan| [[::CompositeManager/InstallingCompiz/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/InstallingCompiz | UbuntuHelp:CompositeManager/InstallingCompiz | {{#if: | :}}CompositeManager/InstallingCompiz}}/pl | • {{#if: UbuntuHelp:CompositeManager/InstallingCompiz|polski| [[::CompositeManager/InstallingCompiz/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/InstallingCompiz | UbuntuHelp:CompositeManager/InstallingCompiz | {{#if: | :}}CompositeManager/InstallingCompiz}}/pt | • {{#if: UbuntuHelp:CompositeManager/InstallingCompiz|português| [[::CompositeManager/InstallingCompiz/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/InstallingCompiz | UbuntuHelp:CompositeManager/InstallingCompiz | {{#if: | :}}CompositeManager/InstallingCompiz}}/ro | • {{#if: UbuntuHelp:CompositeManager/InstallingCompiz|română| [[::CompositeManager/InstallingCompiz/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/InstallingCompiz | UbuntuHelp:CompositeManager/InstallingCompiz | {{#if: | :}}CompositeManager/InstallingCompiz}}/ru | • {{#if: UbuntuHelp:CompositeManager/InstallingCompiz|русский| [[::CompositeManager/InstallingCompiz/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/InstallingCompiz | UbuntuHelp:CompositeManager/InstallingCompiz | {{#if: | :}}CompositeManager/InstallingCompiz}}/si | • {{#if: UbuntuHelp:CompositeManager/InstallingCompiz|සිංහල| [[::CompositeManager/InstallingCompiz/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/InstallingCompiz | UbuntuHelp:CompositeManager/InstallingCompiz | {{#if: | :}}CompositeManager/InstallingCompiz}}/sq | • {{#if: UbuntuHelp:CompositeManager/InstallingCompiz|shqip| [[::CompositeManager/InstallingCompiz/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/InstallingCompiz | UbuntuHelp:CompositeManager/InstallingCompiz | {{#if: | :}}CompositeManager/InstallingCompiz}}/sr | • {{#if: UbuntuHelp:CompositeManager/InstallingCompiz|српски / srpski| [[::CompositeManager/InstallingCompiz/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/InstallingCompiz | UbuntuHelp:CompositeManager/InstallingCompiz | {{#if: | :}}CompositeManager/InstallingCompiz}}/sv | • {{#if: UbuntuHelp:CompositeManager/InstallingCompiz|svenska| [[::CompositeManager/InstallingCompiz/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/InstallingCompiz | UbuntuHelp:CompositeManager/InstallingCompiz | {{#if: | :}}CompositeManager/InstallingCompiz}}/th | • {{#if: UbuntuHelp:CompositeManager/InstallingCompiz|ไทย| [[::CompositeManager/InstallingCompiz/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/InstallingCompiz | UbuntuHelp:CompositeManager/InstallingCompiz | {{#if: | :}}CompositeManager/InstallingCompiz}}/tr | • {{#if: UbuntuHelp:CompositeManager/InstallingCompiz|Türkçe| [[::CompositeManager/InstallingCompiz/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/InstallingCompiz | UbuntuHelp:CompositeManager/InstallingCompiz | {{#if: | :}}CompositeManager/InstallingCompiz}}/vi | • {{#if: UbuntuHelp:CompositeManager/InstallingCompiz|Tiếng Việt| [[::CompositeManager/InstallingCompiz/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/InstallingCompiz | UbuntuHelp:CompositeManager/InstallingCompiz | {{#if: | :}}CompositeManager/InstallingCompiz}}/yue | • {{#if: UbuntuHelp:CompositeManager/InstallingCompiz|粵語| [[::CompositeManager/InstallingCompiz/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/InstallingCompiz | UbuntuHelp:CompositeManager/InstallingCompiz | {{#if: | :}}CompositeManager/InstallingCompiz}}/zh | • {{#if: UbuntuHelp:CompositeManager/InstallingCompiz|中文| [[::CompositeManager/InstallingCompiz/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/InstallingCompiz | UbuntuHelp:CompositeManager/InstallingCompiz | {{#if: | :}}CompositeManager/InstallingCompiz}}/zh-hans | • {{#if: UbuntuHelp:CompositeManager/InstallingCompiz|中文(简体)| [[::CompositeManager/InstallingCompiz/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CompositeManager/InstallingCompiz | UbuntuHelp:CompositeManager/InstallingCompiz | {{#if: | :}}CompositeManager/InstallingCompiz}}/zh-hant | • {{#if: UbuntuHelp:CompositeManager/InstallingCompiz|中文(繁體)| [[::CompositeManager/InstallingCompiz/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:CompositeManager/InstallingCompiz|:CompositeManager/InstallingCompiz|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :CompositeManager/InstallingCompiz/zh | | {{#ifexist: CompositeManager/InstallingCompiz/zh | | {{#ifeq: {{#titleparts:CompositeManager/InstallingCompiz|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:CompositeManager/InstallingCompiz|1|-1|}} | zh | | }}
Introduction
This page details how to set up and run the Compiz window manager/composing manager. <!> In order to run Compiz, you need Xgl or AIGLX. This guide assumes that you already have one of these running. More information about all this is available on the UbuntuHelp:CompositeManager page.
Installing Compiz
<!> You must be running Ubuntu Dapper 6.06 LTS or newer. There is different way to install compiz :
Using ubuntu official packages
The compiz package of ubuntu are quite old. It is not recommended to use them. For edgy, there is a slightly newer package in the backport section. To use it, you'll need to enable UbuntuBackports. The packages we need are compiz and compiz-gnome (or compiz-kde if you are using KDE). See Adding, Removing and Updating Applications for help with this.
sudo apt-get install compiz compiz-gnome
OR
sudo apt-get install compiz compiz-kde
Using Third party repository
Gandalfn maintain a repository of a stable and up to date version of compiz. For dapper, you may have a look there For edgy, you may have a look there
Using official compiz installation guide for edgy
The better and fatest way to install compiz on edgy, is probably to use the official guide provide by the compiz website. Instructions are there
Running Compiz
To start compiz, run compiz --replace gconf
from the terminal.
You also need a window decorator, which is responsible for drawing the window titlebar/frame. For GNOME users running the latest version of compiz from the backports repository, the above command is all that's necessary, because compiz will start a window decorator itself. If that doesn't happen automatically, you may need to manually start the window decorator, as outlined below. Gnome users can use gtk-window-decorator
(or gnome-window-decorator
if you have an older version of compiz), and KDE users can use kde-window-decorator
. Each window-decorator is designed to integrate with the corresponding desktop environment.
Example:
$ compiz --replace gconf & $ gtk-window-decorator --replace &
Creating a compiz-start script
To make things easier for yourself, you can place all this in a script, for example: Start a text editor (gedit) as root with the name of the script specified:
$ gksudo gedit /usr/local/bin/start-compiz
In the text editor, paste the list of commands to run:
Free Drivers
#!/bin/bash compiz --replace gconf & gtk-window-decorator --replace
Non-free Drivers
Nvidia (Note that on Fiesty, it seems that the LD_PRELOAD hack is not necessary, and in fact can actually make Compiz not work.)
#!/bin/bash LD_PRELOAD=/usr/lib/nvidia/libGL.so.1.2.xlibmesa compiz --replace gconf & gtk-window-decorator --replace
ATI
#!/bin/bash LD_PRELOAD=/usr/lib/fglrx/libGL.so.1.2.xlibmesa compiz --replace gconf & gtk-window-decorator --replace
Save and quit gedit, then mark the script executable:
$ sudo chmod +x /usr/local/bin/start-compiz
You can now start both compiz and your window decorator by running start-compiz
.
Making compiz start automatically when you log in (GNOME)
From the menu at the top of your screen, select "System > Preference > Sessions". Click on the right-most tab, "Startup Programs". Now create a new entry for the compiz-start script you created above:
/usr/local/bin/start-compiz
Extra: Makes Shift-Backspace NOT restart X-server; A common irritant
xmodmap -e \"keycode 22 = BackSpace Delete\"
Close the Session Preference Panel. Compiz will now start automatically when you log in.
Done! - Now what?
Let's find out about configuring compiz!
Troubleshooting
If you are using an NVIDIA chipset, you may get the following error:
compiz: GLX_EXT_texture_from_pixmap is missing compiz: Failed to manage screen: 0 compiz: No manageable screens found on display :0.0
If so, start compiz like this:
LD_PRELOAD=/usr/lib/nvidia/libGL.so.1.2.xlibmesa compiz --replace gconf &
If you are using Ubuntu 6.10 and the Windows Decorator is missing (i.e. the titlebar which contains the minimise, maximise, close buttons) then you have not properly setup AIGLX/XGL. For AIGLX (and maybe XGL) troubleshooting see the document AIGLXOnEdgy