October 30, 2007

Compiz Fusion for ATI cards + Xgl in Ubuntu 7.10(Gusty Gibbon)




How To : Compiz Fusion for ATI cards + Xgl in Ubuntu 7.10(Gusty Gibbon)


I'm making this guide because I have seen many people have problems in installing Compiz Fusion with Xgl in Ubuntu.
This guide is written for Gusty Gibbon.

Guide:

After installing Gusty, make sure your system is completely updated. Paste this into a terminal:
Code:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade


First step is getting your drivers set up. To do this use the Restricted Driver Manager.
Code:

System >> Administration >> Restricted Drivers Manager

Enable your ATI driver (By clicking the little box) and let it do its thing. Once finished , reboot the computer and make sure fglrx loaded correctly. There should be an icon (small and green) in the notification area telling you that you have restricted modules loaded.

Now we need to install XGL.
Code:
sudo apt-get install xserver-xgl

Now XGL won't load on its own so we need to write a few scripts to have it start.
Code:
sudo gedit /usr/local/bin/startxgl.sh

Now copy and paste this into the file that pops up:
Code:
#!/bin/sh
Xgl :1 -fullscreen -ac -br -accel xv:pbuffer -accel glx:pbuffer &
DISPLAY=:1
cookie="$(xauth -i nextract - :0 | cut -d ' ' -f 9)"
xauth -i add :1 . "$cookie"
exec dbus-launch --exit-with-session gnome-session

SAVE THIS FILE! Once its done saving, make that fire executable (like a program) by pasting this into a terminal:
Code:
sudo chmod a+x /usr/local/bin/startxgl.sh

Now we need to make a way to start that session from your login menu, paste this into a terminal:
Code:
sudo gedit /usr/share/xsessions/xgl.desktop

And paste this into the file:
Code:
[Desktop Entry]
Encoding=UTF-8
Name=GNOME with XGL
Comment=
Exec=/usr/local/bin/startxgl.sh
Icon=
Type=Application

Now make this script executable by pasting this into a terminal:
Code:
sudo chmod a+x /usr/share/xsessions/xgl.desktop

Now test your login. Logout, click sessions and chose GNOME with XGL. If you get to the desktop you're now very close.

Now install Compiz Fusion:
Method 1:
Start by pasting this into a terminal:
Code:
sudo apt-get install compiz compizconfig-settings-manager compiz-plugins compiz-gnome compiz-fusion-plugins-extra emerald emerald-themes

Method 2:
Go to synaptic manager,search compiz fusion and install
1. compiz
2. compizconfig-setting-manager
3. compiz-plugins
4. compiz-gnome
5. compiz-fusion-plugins-extra
6. emerald
7. emerald-themes


It is installed,Now go to
1.System < Preferences < Appearance < Visual Effects - Select Custom.
2.System < Preferences < Advanced Desktop Effect Settings and choose the effect what u want to run.

Now just logout, then log back in, and BOOM! Shiny desktop effects!!!!

No comments:

About Me

My photo
Purnea/Bangalore, Bihar/Karnataka, India