Sabtu, 02 Juli 2011

Enabling Compiz Fusion On An Ubuntu 11.04 Desktop (With The Unity Desktop)


This tutorial shows how you can enable Compiz Fusion on an Ubuntu 11.04 (Natty Narwhal) desktop with the Unity interface (the system must have a 3D-capable graphics card which I assume it has because otherwise Unity wouldn't start, and GNOME would be used instead). With Compiz Fusion you can use beautiful 3D effects like wobbly windows or a desktop cube on your desktop.
This document comes without warranty of any kind! I do not issue any guarantee that this will work for you!

1 Preliminary Note

I have tried this on a desktop computer with an NVIDIA GeForce 8200. It should work the same way with all other 3D-capable graphics cards.
Your system might tell you that additional drivers (e.g. the proprietary NVIDIA drivers) are available for installation, but normally you don't need these. The installed driver should work fine and make the system use your graphics card's 3D features because otherwise the Unity desktop would not have started.

2 Installing AWN (Avant Window Navigator) And CompizConfig Settings Manager

The first thing we do is install AWN (Avant Window Navigator), a dock-like navigation bar for the Linux desktop. We use this as a fallback because when we configure Compiz, the Unity navigation and taskbar will disappear temporarily, making it impossible to launch any program or to log out of the current session (which we will have to do at the end to complete the Compiz setup). Once Compiz is configured correctly, you can use the Unity navigation and taskbar again.
Start the Ubuntu Software Center:
Search for avant in the search box. This should list the Avant Window Navigator package in the results. Click on the Install button to install AWN:
Next search for ccsm in the search box. This should bring up the package Advanced Desktop Effects Settings (ccsm) in the result list - this tool allows us to configure Compiz. Again click onInstall to install that package:
Afterwards, you can close the Ubuntu Software Center.


Now start the Avant Window Navigator:
Click to enlarge
The AWN dock should appear at the bottom of your desktop. Because we need to be able to launch programs and log out from that dock, we have to add two applets to the dock that enable us to do these tasks. Right-click on the dock and select Dock Preferences from the menu:
Click to enlarge
In the Awn Settings window, go to Applets and drag & drop the Cairo Main Menu and the Quit-Log Out applet to the Active Applets area; then close the Awn Settings window:
Click to enlarge
Click to enlarge
You should now find new icons in the AWN dock.

3 Configuring Compiz Fusion

Now click on the Ubuntu icon in the dock and go to Preferences > CompizConfig Settings Manager to start the Compiz configuration:
Click to enlarge
In the CompizConfig Settings Manager, go to General and click on the General Options button:
Click to enlarge
Now go to the Desktop Size tab and change the settings from 2/2/1 to 4/1/1 (Horizontal Virtual Size: 4; Vertical Virtual Size: 1; Number of Desktops: 1) and click on the Back button:
Click to enlarge
Next go to the Desktop section and uncheck Ubuntu Unity Plugin (this will make the Unity navigation and taskbar disappear)...
Click to enlarge
... and Desktop Wall:
Click to enlarge
Now go to the General section and check if CompositeGnome Compatibility, and OpenGL are still checked (if not, check them):
Click to enlarge
Now go back to the Desktop section and check Desktop Cube (you might have to click twice to make the selection):
Click to enlarge
A dialogue will come up - please click on Enable OpenGL:
Click to enlarge
A second dialogue will come up - please click on Enable Composite:
Click to enlarge
Now, still in the Desktop section, please check Rotate Cube and Viewport Switcher:
Click to enlarge

Now go to the General section again and check if CompositeGnome Compatibility, and OpenGL are still checked (if not, check them):
Click to enlarge
Go to the Desktop section again and check Ubuntu Unity Plugin:
Click to enlarge
Click on Ignore Conflicts in the dialogue that comes up:
Click to enlarge
Go to the Uncategorized section and check Unity MT Grab Handles:
Click to enlarge
Click on Enable Png in the dialogue:
Click to enlarge
Go to the Utility section and enable Regex Matching:
Click to enlarge
In the Image Loading section, please enable JPEG and Svg - Png should already be enabled:
Click to enlarge
Go to the Utility section again and check BailerCompiz Library Toolkit, and Workarounds:
Click to enlarge
Under Window Management, please check Move WindowResize Window, and Static Application Switcher:
Click to enlarge
Under Accessibility, please enable Zoom Desktop:
Click to enlarge
Finally go to Effects and activate Blur WindowsWindow DecorationFading Windows, and Wobbly Windows. Click on Close afterwards to leave the CompizConfig Settings Manager:
Click to enlarge
We have to log out and back in to make the changes effective. In the AWN dock, click on the Quit button and then on Log Out <username>:
Click to enlarge
Select Log Out:
Click to enlarge
Now log in again. Your Unity desktop should start again (with the navigation and taskbar fully working).
Compiz Fusion should now be working - here are some screenshots (I apologize for the artifacts - these exist only in the screenshots, but not on the real desktop; I created the screenshots with Ubuntu'sTake Screenshot tool):
Click to enlarge
Click to enlarge
Click to enlarge
Click to enlarge
Click to enlarge
Click to enlarge

4 Keyboard Shortcuts

Here's a list of the most common Compiz Fusion keyboard shortcuts. If they work for you depends on what effects you enabled in the CompizConfig Settings Manager.
SUPER+SHIFT+DRAG LEFT MOUSE = draw fire
SUPER+SHIFT+C = clear fire
CTRL+ALT+DRAG LEFT MOUSE = rotate cube
CTRL+ALT+LEFT ARROW = rotate cube
CTRL+ALT+DOWN ARROW = flat desktop
SHIFT+ALT+UP = initiate window picker
CTRL+ALT+DOWN = unfold cube
ALT+TAB = window switch
SUPER+TAB = flip switcher or ring switcher, depending on which is enabled.
ALT+F7 = initiate 'move windows'
SHIFT+F9 = water effect
SHIFT+F10 = slow animations
CTRL+ALT+D = show desktop
For Grouping and Tabbing:
SUPER+S = select single window
SUPER+T = tab group
SUPER+Left = change left tab
SUPER+Right = change right tab
SUPER+G = group windows
SUPER+U = ungroup windows
SUPER+R = remove group window
SUPER+C = close group
SUPER+X = ignore group
Hold the SUPER button then select the windows you want to group and then hit SUPER+G.
The SUPER key is the Windows key on most keyboards.


0 komentar:

Posting Komentar

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Best Buy Coupons