본문 바로가기

Study/Linux

install Compiz-fusion && Emerald theme on Gutsy

This is a quick and dirty guide to install Compiz, Emerald and Fusion-icon on Kubuntu Gutsy, based on my own experience. The guide works for Intel graphic cards (855GM mine) and, I think, with the proper configuration of xorg.conf and drivers works with other graphic cards as well.

See this thread to find a proper xorg.conf for your card (if is posted):
http://ubuntuforums.org/showthread.php?t=629303


The guide is based on Kubuntu (KDE env) upgraded from Feisty to Gutsy with 3rd party repositories on Feisty side (for instance Trevino repos for Compiz), but even in a clean installation worth a try in case of issues with Compiz.

Please be sure to have enabled *only* official Ubuntu repositories and to have enabled all of them (universe, multiverse, etc..).

Let's start.

1) The cleaning part (can be omitted by the users with a clean install and no 3rd party repository and/or scripts)

Clean apt
Code:
sudo apt-get clean
Remove all Compiz/Emerald
Code:
sudo aptitude purge ~ncompiz ~nlibdecoration
Update the slocate database (it takes a while)
Code:
sudo updatedb
Save your actual settings of Compiz in your Home dir (not mandatory)
Code:
cp ~/.config/compiz/compizconfig/Default.ini ~/
Remove one-by-one all the occourences of Compiz/Emerald left on your box, here how to find them.
For Compiz:
Code:
locate compiz |more
For ccsm:
Code:
locate ccsm |more
For Emerald:
Code:
locate emerald |more
After the deletion of files/directories above we have a really clean box and we are ready for the second part.

2) The installation part

Install the official packages
Code:
sudo apt-get install compiz-bcop compiz-core compiz-fusion-plugins-extra compiz-fusion-plugins-main compiz-kde compiz-plugins compizconfig-settings-manager emerald libcompizconfig-backend-kconfig libcompizconfig0 libdecoration0 libemeraldengine0 python-compizconfig librsvg2-common
Install the Fusion-icon launcher (not provided by Ubuntu repositories)
Be sure to have essential packages for compilation
Code:
sudo apt-get install build-essential
Download and save on your desktop this version of Fusion-icon
Code:
http://gitweb.opencompositing.org/?p=users/crdlb/fusion-icon;a=snapshot;h=b3217b36e92fd76b39310de98a9c983923a7464a
Then install it:
Code:
cd ~/Desktop
Code:
tar xvfz fusion-icon-b3217b36e92fd76b39310de98a9c983923a7464a.tar.gz
Code:
cd fusion-icon/
Code:
make
Code:
sudo make install
*NOTE*: this is not the last version of Fusion-icon, but is the one that works with kwin (or at least the one that I was able to make it works)

Install at least one theme for Emerald (the package emerald-themes is not provided by Ubuntu repositories)
Go here and choose one or more:
Code:
http://www.compiz-themes.org/index.php?xsortmode=high&xcontentmode=103&page=0
Or choose one of my favorites
Code:
http://www.compiz-themes.org/content/show.php/Kubuntu+Edgy+Default+%28trueglass%29?content=48646
Save a theme package on your desktop

3) The configuration part

Launch the Fusion-icon
Code:
fusion-icon &
Press enter twice in the console.
The Fusion-icon launcher will be appear in the tray next to clock, right click on it and choose "Emerald Theme Manager", then click Import button, point to the theme file saved on the desktop and close.
Right click again on Fusion-icon, choose "Select window decorator" and thick on Emerald
Anyway, the Fusion-icon is pretty clear and will restart automatically to the next boot

Save your new settings of Compiz and switch back your original one (if needed, maybe after a test) *not mandatory*
Code:
cp ~/.config/compiz/compizconfig/Default.ini ~/.config/compiz/compizconfig/Default.ini.original
Code:
cp  ~/Default.ini ~/.config/compiz/compizconfig/Default.ini
Now you can delete fusion-icon-b3217b36e92fd76b39310de98a9c983923a7464a.tar.gz, fusion-icon/ dir and Emerald theme package from your desktop

That's it. Hope it helps.

Addendum
In order to disable annoyances with OpenOffice and Emerald/Compiz (windows out of screen and menu flickering) do a right click on Fusion-icon and choose Settings Manager, go to Utility section, enable the Workarounds plugin and in the Workarounds general tab unthick "Legacy Fullscreen Support" and enable all other options.

Consider to use as configuration file the flat-file option (instead of KDE Configuration Backend)
CCSM -> Preferences -> Backend -> Flat-file Configuration Backend

http://ubuntu-forum.com/showthread.php?t=601310

http://forum.compiz-fusion.org/showthread.php?t=5303


Ubuntu Gutsy and Emerald !

Emerald is a replacement for metacity using compiz fusion, here’s an example:

emerald01

For this to work, first install emerald (and svn for themes):

# sudo apt-get install emerald  subversion

How you can download the themes, however the current svn for GPL’d themes seems to not work, here’s another way to install those:

# cd ~/.emerald/themes
#svn checkout http://svn.beryl-project.org/beryl/trunk/emerald-themes-repo \
&& for theme in emerald-themes-repo/*.emerald ; do dir=`basename “$theme” \
.emerald`; mkdir $dir ; tar xzf $theme -C ${dir}/ ; done

For the non GPL’d Themes, simply dl them from inside the Emerald GUI.

To replace metacity with emerald, run:

# emerald --replace

For emerald settings, run:

# emerald-theme-manager

Enjoy !

http://neo2k.dk/blog/?p=24