Using Compiz on Fedora 12 as Linux Guest in VirtualBox

December 9, 2009

To enable Compiz fusion on any Linux Guest (including Fedora 12) in VirtualBox is easy since VirtualBox supports 3D acceleration.

The following procedure is to install and enable Compiz on Fedora 12 as Linux guest in VirtualBox. This procedure might work on other distribution of Linux. This procedure is not for Fedora 12 installed in Microsoft Virtual PC or VMWare.

Installing and Enabling Compiz on Fedora 12 in VirtualBox

VirtualBox Setup

  • In the virtual machine setting for Fedora 12, make sure that you set the display RAM at the maximum of 128MB and checked “Enable 3D Acceleration”

Install VirtualBox Linux Guest Additions

  • Before installing guest additions, you need to install gcc, kernel headers and dkms.
    • #yum install gcc kernel-devel dkms
  • Next, you need to mount the Guest Additions ISO and proceed to the main folder. Run the appropriate guest addition base on your guest OS and architecture such as:
    • #./VBoxLinuxAdditions-x86.run
  • or
    • #./VBoxLinuxAdditions-amd64.run
  • After installation proceed to restart the virtual machine since kernel has been modified.

Install Compiz Fusion

  • The command to install Compiz fusion is as follows:
    • #yum install emerald-themes compiz-fusion-extras emerald compiz-fusion compiz-manager compiz-fusion-extras-gnome gnome-compiz-manager libcompizconfig compiz-fusion-gnome ccsm

Configuring Compiz

You can change the settings using CompizConfig Settings Manager (ccsm) under System >> Preference. However, due to some bug, the changes in ccsm will not affect the system. To rectify this problem you need to change the script file for Compiz in /usr/bin/compiz-gtk

Once you open this file, change the following line from:

  • exec compiz –ignore-desktop-hints glib gconf gnomecompat $@

to:

  • exec compiz –ignore-desktop-hints glib gconf gnomecompat ccp $@

Enabling, Configuring and Using Compiz

  • You enabled Compiz by select System >> Preference >> Desktop Effect. Choose Compiz.
  • You can change the effects using System >> Preference >> CompizConfig Settings Manager
  • To rotate the Window Cube, press Ctrl+Alt and simultaneously use your mouse to rotate the window.

***


Install Compiz on Fedora 12

December 9, 2009

Installing Compiz on Fedora 12 is not easy. First of all, due to compatibility issues with nouveau driver, additional steps are required to install and configure nvidia 3D driver. After resolving 3D driver issue, you need to modify Compiz configuration file so that your settings are captured. The installation procedure is the same for 32-bit/64-bit Fedora 12.

Note: The following procedure is to install Compiz on Fedora 12 in a normal PC environment using Nvidia graphics card. For installing Compiz on a Fedora 12 guest machine in VirtualBox, please check the instruction at the end of this post.

Installing Proprietary Nvidia Driver

Important: This procedure involves in modifying the kernel. You need to reboot the PC if you have just updated your kernel before starting this procedure.

Open a terminal with root access. Then proceed with the following command:

  • #yum install kmod-nvidia xorg-x11-drv-nvidia

After installing the drivers, you need to change some security setting on SELinux:

  • #setsebool -P allow_execstack on

Then you need to perform the following to disabled nouveau driver:

  • #mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r)-nouveau.img
  • #dracut /boot/initramfs-$(uname -r).img $(uname -r)

Important: Reboot your PC since kernel has been modified. Ensure that the Nvidia driver is working properly

Additional Note: You need to repeat the above procedure every time a new kernel is being updated.

Installing Compiz

Issue the following command to install Compiz:

  • #yum install emerald-themes compiz-fusion-extras emerald compiz-fusion compiz-manager compiz-fusion-extras-gnome gnome-compiz-manager libcompizconfig compiz-fusion-gnome ccsm

Configuring Compiz

You can change the settings using CompizConfig Settings Manager (ccsm) under System >> Preference. However, due to some bug, the changes in ccsm will not affect the system. To rectify this problem you need to change the script file for Compiz in /usr/bin/compiz-gtk

Once you open this file, change the following line from:

  • exec compiz –ignore-desktop-hints glib gconf gnomecompat $@

to:

  • exec compiz –ignore-desktop-hints glib gconf gnomecompat ccp $@

Enabling, Configuring and Using Compiz

You enabled Compiz by select System >> Preference >> Desktop Effect. Choose Compiz.

You can change the effects using System >> Preference >> CompizConfig Settings Manager

To rotate the Window Cube, press Ctrl+Alt and simultaneously use your mouse to rotate the window.

Installing Compiz on Fedora 12 Guest Machine in VirtualBox

Since VirtualBox supports 3D acceleration, you need to perform the following:

  1. In Fedora 12 vritual machine settings, set the display RAM to the maximum (128MB) and checked “Enable 3D Acceleration”
  2. Install Linux Guest Addition: For instructions, please refer to my post Fedora 12 Software Installation and Configuration Guide and look for the section Installing VirtualBox.
  3. Follow the steps in the section above: Installing Compiz
  4. Follow the steps in the section above: Configuring Compiz
  5. Follow the steps in the section above: Enabling, Configuring and Using Compiz

End.


Installing Compiz on Fedora 12

December 2, 2009

Installing Compiz on Fedora 12 is not easy. First of all, due to compatibility issues with nouveau driver, additional steps are required to install and configure nvidia 3D driver. After resolving 3D driver issue, you need to modify Compiz configuration file so that your settings are captured. The installation procedure is the same for 32-bit/64-bit Fedora 12.

Note: The following procedure is to install Compiz on Fedora 12 in a normal PC environment using Nvidia display card.

Please DO NOT use this procedure to install Compiz on a Fedora 12 guest machine in VirtualBox.

To install Compiz on Fedora 12 virtual machine in VirtualBox. Check this post: Using Compiz on Fedora 12 as Linux Guest in VirtualBox


Installing Proprietary Nvidia Driver

Important: This procedure involves in modifying the kernel. You need to reboot the PC if you have just updated your kernel before starting this procedure.

Open a terminal with root access. Then proceed with the following command:

  • #yum install akmod-nvidia kmod-nvidia xorg-x11-drv-nvidia

After installing the drivers, you need to change some security setting on SELinux:

  • #setsebool -P allow_execstack on

Then you need to perform the following to disabled nouveau driver:

  • #mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r)-nouveau.img
  • #dracut /boot/initramfs-$(uname -r).img $(uname -r)

Important: Reboot your PC since kernel has been modified. Ensure that the Nvidia driver is working properly

Additional Note:

  • Please note that after you had install kmod-nvidia driver, you need to resinstall the driver whenever there is a kernel update.
  • In order for the Nvidia driver to update automatically after every kernel update, we include the driver akmod-nvidia.

Installing Compiz

Issue the following command to install Compiz:

  • #yum install emerald-themes compiz-fusion-extras emerald compiz-fusion compiz-manager compiz-fusion-extras-gnome gnome-compiz-manager libcompizconfig compiz-fusion-gnome ccsm

Configuring Compiz

CCSM Problem

You can change the settings using CompizConfig Settings Manager (ccsm) under System >> Preference. However, due to some bug, the changes in ccsm will not affect the system. To rectify this problem you need to change the script file for Compiz in /usr/bin/compiz-gtk

Once you open this file, change the following line from:

  • exec compiz –ignore-desktop-hints glib gconf gnomecompat $@

to:

  • exec compiz –ignore-desktop-hints glib gconf gnomecompat ccp $@

Enabling, Configuring and Using Compiz

You enabled Compiz by select System >> Preference >> Desktop Effect. Choose Compiz.

You can change the effects using System >> Preference >> CompizConfig Settings Manager

To rotate the Window Cube, press Ctrl+Alt and simultaneously use your mouse to rotate the window.

Automation (Script)

I’ve compiled a shell script that automate the compiz installation. If you are new Linux user, it is recommended that you follow the step mentioned above.

For seasoned user, you can download the script: FC12-compiz-install-noarch

Please read the script file carefully prior installation. There is no support or warranty using this script file.