<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.cchtml.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=24.36.72.255</id>
	<title>cchtml.com - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.cchtml.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=24.36.72.255"/>
	<link rel="alternate" type="text/html" href="http://wiki.cchtml.com/index.php?title=Special:Contributions/24.36.72.255"/>
	<updated>2026-05-02T11:32:31Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>http://wiki.cchtml.com/index.php?title=XGL-Ubuntu&amp;diff=3102</id>
		<title>XGL-Ubuntu</title>
		<link rel="alternate" type="text/html" href="http://wiki.cchtml.com/index.php?title=XGL-Ubuntu&amp;diff=3102"/>
		<updated>2006-08-17T20:04:21Z</updated>

		<summary type="html">&lt;p&gt;24.36.72.255: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Xgl/Compiz on Ubuntu Dapper/Gnome - the Kombatant Way ==&lt;br /&gt;
&lt;br /&gt;
So here we are, rewriting the whole guide, just because I found out a more bullet-proof way to do it. Before we start, I want to make clear that these instructions are targeted for those people using the ATI Proprietary Driver (&amp;quot;fglrx&amp;quot;) and having &#039;&#039;&#039;WORKING 3D ACCELERATION&#039;&#039;&#039;. This is configured in your xorg.conf. To make sure you are &amp;quot;accelerated&amp;quot;, running with the new driver, try typing fglrxinfo in a terminal and see what you get. If it talks about ATI then awesome... if it talks about Mesa, you still don&#039;t have your driver setup properly (xorg.conf). Your xorg.conf file doesn&#039;t need any special parametres - what I did was simply generate the default xorg.conf file with the command:&lt;br /&gt;
&lt;br /&gt;
    sudo dpkg-reconfigure xserver-xorg&lt;br /&gt;
&lt;br /&gt;
and replace the &amp;quot;ati&amp;quot; instance with &amp;quot;fglrx&amp;quot;. Nothing more.&lt;br /&gt;
* If you want the absolute newest stuff, then you&#039;re going to have to add some lines to your repositories. So open the /etc/apt/sources.list file as root, and add these lines in order to add the two repositories that are of interest here.&lt;br /&gt;
&lt;br /&gt;
    #compiz Quinn&#039;s&lt;br /&gt;
    deb http://www.beerorkid.com/compiz dapper main&lt;br /&gt;
    deb http://xgl.compiz.info/ dapper main&lt;br /&gt;
    deb-src http://xgl.compiz.info/ dapper main&lt;br /&gt;
&lt;br /&gt;
* After you add the repos in the sources.list file, issue the following commands:&lt;br /&gt;
&lt;br /&gt;
    wget http://www.beerorkid.com/compiz/quinn.key.asc -O - | sudo apt-key add -&lt;br /&gt;
&lt;br /&gt;
    sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
    sudo apt-get install compiz xserver-xgl libgl1-mesa xserver-xorg libglitz-glx1 compiz-gnome&lt;br /&gt;
&lt;br /&gt;
* If during the apt-get installation you get the error &#039;&#039;&amp;quot;trying to overwrite `/usr/share/man/man1/Xserver.1x.gz&#039;, which is also in package xserver-xorg-core&amp;quot;&#039;&#039; issue the following two commands to continue:&lt;br /&gt;
&lt;br /&gt;
    sudo dpkg-divert --package xserver-xorg-core --divert /usr/share/man/man1/Xserver.1x.gz.xgl --rename /usr/share/man/man1/Xserver.1x.gz&lt;br /&gt;
&lt;br /&gt;
    sudo apt-get -f install&lt;br /&gt;
&lt;br /&gt;
* Instead of messing with gdm.conf and gdm.conf-custom, we&#039;re going to do something better. From the terminal, issue the command:&lt;br /&gt;
&lt;br /&gt;
    sudo gedit /usr/bin/startxgl.sh&lt;br /&gt;
&lt;br /&gt;
and add these as contents:&lt;br /&gt;
&lt;br /&gt;
    Xgl -fullscreen :1 -ac -accel glx:pbuffer -accel xv:pbuffer &amp;amp; sleep 2 &amp;amp;&amp;amp; DISPLAY=:1&lt;br /&gt;
    exec gnome-session&lt;br /&gt;
&lt;br /&gt;
Save it, and then issue the command:&lt;br /&gt;
&lt;br /&gt;
    sudo chmod 755 /usr/bin/startxgl.sh&lt;br /&gt;
&lt;br /&gt;
* From the terminal again:&lt;br /&gt;
&lt;br /&gt;
    sudo gedit /usr/share/xsessions/xgl.desktop&lt;br /&gt;
&lt;br /&gt;
and add this as its contents:&lt;br /&gt;
&lt;br /&gt;
    [Desktop Entry]&lt;br /&gt;
    Encoding=UTF-8&lt;br /&gt;
    Name=XGl&lt;br /&gt;
    Exec=/usr/bin/startxgl.sh&lt;br /&gt;
    Icon=&lt;br /&gt;
    Type=Application&lt;br /&gt;
&lt;br /&gt;
* And again, from the terminal:&lt;br /&gt;
&lt;br /&gt;
    sudo gedit /usr/bin/startcompiz&lt;br /&gt;
&lt;br /&gt;
and inside it add the following:&lt;br /&gt;
&lt;br /&gt;
    #!/bin/sh&lt;br /&gt;
    killall gnome-window-decorator&lt;br /&gt;
    wait&lt;br /&gt;
    gnome-window-decorator &amp;amp; DISPLAY=:1 LD_PRELOAD=/opt/mesa/libGL.so.1.2 compiz --replace gconf&lt;br /&gt;
&lt;br /&gt;
and then from the command line&lt;br /&gt;
&lt;br /&gt;
    sudo chmod 755 /usr/bin/startcompiz&lt;br /&gt;
&lt;br /&gt;
I can already see some of you complaining: &amp;quot;Hey, there is no such thing as /opt/mesa/libGL thing!! Please carry on reading and everything will be cleared&lt;br /&gt;
&lt;br /&gt;
* So here&#039;s the trick. What we&#039;ve done is to add a new session in gdm. This means that, when gdm loads, you can select the &amp;quot;Xgl&amp;quot; session instead of the normal session you usually use, and it&#039;ll load Xgl. It would be a good idea to either load /usr/bin/startcompiz from your System &amp;gt; Preferences &amp;gt; Sessions, in order for it to load automatically, or just add a link to your desktop and double-click it to work. That way, if something goes horribly wrong, you can simply reboot, and when gdm loads , you will be able to select your normal (and working) session again without editing files all the time. &lt;br /&gt;
&lt;br /&gt;
* And here comes the big part: the mesa libraries. I see many people having the well-known &amp;quot;compiz.real: GLX_EXT_texture from pixmap is missing&amp;quot; error, and they can&#039;t seem to find out why this happens. Well, the reason as simple and as complicated the message suggests: this certain extension is NOT supported by ATI&#039;s driver (nVidia doesn&#039;t support it either, so no need to go OMGATILOOSE etc ). So, in order to run compiz, you&#039;re going to have to resort to standard mesa libraries. But, I hear you ask, where should I find these? The answer is simple: package libgl1-mesa has them. Now read carefully: when you install this particular package via apt-get, it&#039;ll place a libGL.so.1.2 inside your /usr/lib, and a symlink file called libGL.so.1 which points to the libGL.so.1.2 file. Now, if you install the ATI drivers by using the installer, these files will be replaced by symlinks to ATI&#039;s libGL.so.1.2 which resides inside /usr/lib/fglrx. So what do you do? After installing libgl-mesa and before installing ATI&#039;s drivers, create a directory called /opt/mesa and copy the file there, like this:&lt;br /&gt;
&lt;br /&gt;
    sudo mkdir /opt/mesa&lt;br /&gt;
&lt;br /&gt;
    sudo cp /usr/lib/libGL.so.1.2 /opt/mesa/libGL.so.1.2&lt;br /&gt;
&lt;br /&gt;
Now install ATI&#039;s drivers; it will replace the files inside /usr/lib, but you&#039;ll already have the libGL file you are interested in saved in the location we created. &lt;br /&gt;
&lt;br /&gt;
* If you have already installed ATI&#039;s drivers, and then installed libgl1-mesa, ATI&#039;s symlinks will be lost. So proceed to create /opt/mesa and copy the file there as normal; then create the two symlinks by hand, like this:&lt;br /&gt;
&lt;br /&gt;
    sudo rm /usr/lib/libGL.so.1&lt;br /&gt;
&lt;br /&gt;
    sudo rm /usr/lib/libGL.so.1.2&lt;br /&gt;
&lt;br /&gt;
    sudo ln -sf /usr/lib/fglrx/libGL.so.1.2 /usr/lib/libGL.so.1&lt;br /&gt;
&lt;br /&gt;
    sudo ln -sf /usr/lib/fglrx/libGL.so.1.2 /usr/lib/libGL.so.1.2&lt;br /&gt;
&lt;br /&gt;
* After all that, we are ready. Reboot your machine and when gdm loads, look at the sessions; if you see an &amp;quot;Xgl&amp;quot; session there, everything&#039;s going according to plan. Load it up, and hopefully everything will be working On my occassion, the login screen is a little slow, so don&#039;t panic if you see something like that. Everything should be quick once compiz is loaded. You&#039;ll also notice that the window decoration has changed; again, this is normal, for now, this is the only window decoration available. I am certain proper support for the Metacity window decorations will be added soon. When you login, you should have a &amp;quot;apps/compiz&amp;quot; section in gconf-editor. If you don&#039;t, don&#039;t worry about it; I don&#039;t either, and the effects work like a charm. &lt;br /&gt;
&lt;br /&gt;
* To get around the problem with &amp;lt;Shift&amp;gt; and &amp;lt;Backspace&amp;gt; enter this in your terminal whenever you login:&lt;br /&gt;
&lt;br /&gt;
    xmodmap /usr/share/xmodmap/xmodmap.&amp;lt;language&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;language&amp;gt; refers to your country&#039;s code. For the US, it would be:&lt;br /&gt;
&lt;br /&gt;
    xmodmap /usr/share/xmodmap/xmodmap.us&lt;br /&gt;
&lt;br /&gt;
Or, of course, append it to the .gnomerc file.&lt;br /&gt;
&lt;br /&gt;
Once everything is running along happily, this is a good appendix for the commands for using the nifty stuff compiz gives you: http://en.opensuse.org/Compiz&lt;br /&gt;
&lt;br /&gt;
Hopefully somebody will find all these useful - I will also update this with more suggested information and tips, to cover more potential problems/configurations.&lt;br /&gt;
Any additional suggestions will be more than welcome.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;&amp;lt;&amp;lt; The stuff about the mesa libs is not required.  Please check this link for an easier method, which WORKS: http://www.ubuntuforums.org/showthread.php?t=168618&lt;br /&gt;
&lt;br /&gt;
Main differences:&lt;br /&gt;
&lt;br /&gt;
* startcompiz: &lt;br /&gt;
&lt;br /&gt;
    killall gnome-window-decorator &lt;br /&gt;
    wait&lt;br /&gt;
    gnome-window-decorator &amp;amp; DISPLAY=:1&lt;br /&gt;
    compiz --replace gconf&lt;br /&gt;
    #fixes the shift-backspace bug&lt;br /&gt;
    xmodmap /usr/share/xmodmap/xmodmap.us&lt;br /&gt;
&lt;br /&gt;
(us should be your countrycode)&lt;br /&gt;
&lt;br /&gt;
    sudo apt-get install gset-compiz&lt;br /&gt;
&lt;br /&gt;
(nice interface for plugins!!!)&lt;br /&gt;
&lt;br /&gt;
* xorg.conf:&lt;br /&gt;
&lt;br /&gt;
    Section &amp;quot;Device&amp;quot;&lt;br /&gt;
    	Identifier	&amp;quot;ATI Technologies, Inc. M24 1P [Radeon Mobility X600]&amp;quot;&lt;br /&gt;
       	Driver		&amp;quot;fglrx&amp;quot;&lt;br /&gt;
    	BusID		&amp;quot;PCI:1:0:0&amp;quot;&lt;br /&gt;
    	Option		&amp;quot;UseFBDev&amp;quot;		&amp;quot;true&amp;quot;&lt;br /&gt;
    	Option &amp;quot;OpenGLOverlay&amp;quot; &amp;quot;off&amp;quot; #this isn&#039;t necessary for me&lt;br /&gt;
    	Option &amp;quot;UseInternalAGPGART&amp;quot; &amp;quot;no&amp;quot;&lt;br /&gt;
    	Option &amp;quot;KernelModuleParm&amp;quot; &amp;quot;agplock=0&amp;quot; #Only necessary for X series ATI cards, or there is always hardware lockup after about 30 seconds&lt;br /&gt;
    EndSection&lt;br /&gt;
&lt;br /&gt;
* Create a desktop script for easy startup of compiz after logging in:&lt;br /&gt;
&lt;br /&gt;
    sudo gedit ~/Desktop/Compiz&lt;br /&gt;
&lt;br /&gt;
    #!/bin/bash&lt;br /&gt;
    gnome-window-decorator &amp;amp;&lt;br /&gt;
    compiz --replace $1 gconf &amp;amp;&lt;br /&gt;
    xmodmap /usr/share/xmodmap/xmodmap.us #Substitute .us for your country code&lt;br /&gt;
&lt;br /&gt;
    sudo chmod +x ~/Desktop/Compiz&lt;br /&gt;
&lt;br /&gt;
Now, after choosing Xgl Session from gdm, and being logged in, just double-click the compiz icon and a new world opens!!!&lt;br /&gt;
(click on http://en.opensuse.org/Compiz for a good manual by the makers of Compiz/Xgl)&lt;/div&gt;</summary>
		<author><name>24.36.72.255</name></author>
	</entry>
</feed>