You are on page 1of 7

How-to install XGL/Beryl on Ubuntu and Kubuntu

6.06.1 LTS
Posted in Ubuntu, XGL, How-to's by VemeC on the October 3rd, 2006

Xgl and Beryl are alpha software so it isn’t recommended that you install this software
on a production machine.

This guide is only to users with video cards that can’t run Aixgl.

Introduction

 You need a supported video card with 3D acceleration.


 You need to have video card drivers with 3D acceleration installed in your box.

In order to check if you 3d acceleration is working you sould execute this command:

glxinfo | grep rendering

This should output “direct rendering: Yes”.

If it gives the same but then with “No”, hardware 3d acceleration is disabled and all
rendering will be done on the CPU (’software’ rendering).

Installation

Make sure that you have the proper repositories configured. You need the Universe and
Multiverse repositories as well as either the followings non-Ubuntu repository:

 deb http://www.beerorkid.com/compiz dapper main aiglx


 deb http://media.blutkind.org/xgl/ dapper main aiglx

Then you need to download the public keys for those repositories :

sudo wget http://www.beerorkid.com/compiz/quinn.key.asc -O - | sudo


apt-key add -
sudo wget http://media.blutkind.org/xgl/quinn.key.asc -O - | sudo apt-
key add -

And now update the package list, type following commands in a terminal:

sudo apt-get update


sudo apt-get dist-upgrade

When all packages are update, we need to install the xserver-xgl and everything more,
type this into the terminal to install it:

sudo apt-get install xserver-xgl libgl1-mesa xserver-xorg libglitz-


glx1 beryl emerald-themes

Now we need to start the xserver-xgl to do this we can create a session on Login
Window, typing the following command in a terminal:

sudo vi /usr/bin/startxgl.sh

And copy this into the new file:


#!/bin/sh
Xgl -fullscreen :1 -ac -accel glx:pbuffer -accel xv:pbuffer & sleep 2
&& DISPLAY=:1
exec gnome-session
#exec startkde # Kubuntu user uncomment this line and comment the line
"exec gnome-session"

Note: Kubuntu users must replace “exec gnome-session” with “exec startkde”

Save this file, and close the editor, and make the script executable with the following
command:

sudo chmod +x /usr/bin/startxgl.sh

Now we’ll add an option to the Gnome/KDE login manager so that we can choose to
log into our new Xgl-gnome/Xgl-kde session. Create an Xsession file like so:

sudo vi /usr/share/xsessions/xgl.desktop

And in this file, paste the following:

[Desktop Entry]
Encoding=UTF-8
Name=Xgl
Exec=/usr/bin/startxgl.sh
Icon=
Type=Application

Save this file and close the editor.

To log into Xgl, logout of your current session, and from the login screen click
“Options” and “Session chooser” and select “Xgl” from the Session menu.

When you are in the Xgl Session open a console and run:

beryl-manager

And see Xgl/Beryl in your Box!

To start automatically. In Gnome, go: System > Preferences > Sessions > Startup
Programs Then add these two entries:

xmodmap /usr/share/xmodmap/xmodmap.us
beryl-manager

In KDE (Kubuntu), you can add a simple script to the “~/.kde/Autostart/” directory that
activates those commands.

More info: HERE

Enjoy!

Share This

8 Responses to 'How-to install XGL/Beryl on Ubuntu and Kubuntu 6.06.1


LTS'

Subscribe to comments with RSS or TrackBack to 'How-to install XGL/Beryl on


Ubuntu and Kubuntu 6.06.1 LTS'.
1. c0nfidencal said,

on October 22nd, 2006 at 10:06 am

Neat! Thanks for the tutorial! :p

2. Alexandre said,

on October 23rd, 2006 at 10:24 pm

This is a good tutorial.


But i had a problem, my screens turns white and i can’t see the firefox window

3. Omegatron said,

on October 28th, 2006 at 2:10 pm

This wiki entry covers the same installation instructions, but should always stay
up to date:

http://wiki.beryl-project.org/index.php/Install/Ubuntu/Dapper/XGL

4. Paul D. said,

on November 8th, 2006 at 1:52 am

I am discovering the world of linux since i got interested by videos in internet


about ubuntu, zenwalk, etc. (lovely graphics!) and those names plus xgl, compiz,
beryl, etc. are all new to me. I barely find any clear info on the net. Do you know
where can i find out more about those? though i am 26 and studying chemistry,
think of me as a kid of 5 or 6 when talking about computers!! sorry my bad
english. Thank you beforehand!

5. Paul D. said,

on November 8th, 2006 at 1:56 am

I meant, i´d like to change my system to linux (if ever possible) and first i´d
need to know the how-to´s.
Thanks.

6. Arun said,

on November 8th, 2006 at 4:02 pm


Hi, So what about non-NVIDIA users? like.. I have a integrated graphics card..
Intel 865GBF. Can I make this thing work in mine??

7. dfs said,

on November 20th, 2006 at 2:05 pm

hey thanks for the clear and well-structured tutorial! And thanks again that you
also INCLUDE US AMD64 users ! Well done.

8. myself337 said,

on January 11th, 2007 at 2:53 pm

>Hi, So what about non-NVIDIA users? like.. I have a integrated graphics


>card.. Intel 865GBF. Can I make this thing work in mine??

i have an old dell with integrated intel graphics and ubuntu installed. looks good
but kinda slow. works better than vista on the same machine.
COMO:Xgl en Dapper
Enviado por wraith el Jue, 02/03/2006 - 19:15 Gnome

Aquí teneis una guia extraida de https://wiki.ubuntu.com/XglHowto para aquellos que


querais disfrutar de las Xgl en vuestro dapper:

Lo primero es tener ubuntu actualizada a dapper. Para ello aseguraos que en el fichero
/etc/apt/sources.list en todas las líneas que corresponden a los repositorios de ubuntu
ponga dapper en lugar de breezy(u hoary o warty si andais muy anticuados XD).

Esto se ejecutara en un terminal:

$sudo aptitude update && sudo aptitude dist-upgrade

Si quereis limpiar los paquetes que habeis descargado:

$sudo aptitude clean

Bien ya hemos actualizado ubuntu a la version dapper mas reciente, pasemos a instalar
las Xgl:

$sudo aptitude install libgl1-mesa libglitz1 libglitz-glx1 xserver-xgl compiz-gnome


$sudo ln -sf /usr/bin/Xgl /etc/X11/X

Con esto cambiamos el link simbolico que hay en /etx/X11/X para que apunte a Xgl en
lugar de a Xorg.
IMPOTANTE ANTES DE SEGUIR:(LEER COMENTARIO (1) AL FINAL DEL
COMO)

A continuación nos vamos a una consola: Ctrl+Alt+1

Tecleamos lo siguiente para reiniciar gdm:

$sudo /etc/init.d/gdm restart

Si todo ha ido bien ( a mi aun no me funciona en mi ADM64) deberia arrancar GDM.

Para activar Compiz cuando arranque GNOME y asi poder usar el escritorio cubico
entre otras cosas:
Escribir en un terminal:

$echo "compiz --replace gconf decoration wobbly fade minimize cube rotate zoom scale
move resize place switcher" >> ~/.gnomerc
$echo "nohup gnome-window-decorator &" >> ~/.gnomerc

(1)QUE HACER SI FALLA


En caso de que no funcione id a una consola (Ctrl+Alt+1)

Escribid esto para recuperar las Xorg:

$sudo ln -sf /usr/bin/Xorg /etc/X11/X


Espero que os sirva de ayuda!

Salu2!

» bitácora de wraith | 23071 lecturas

Ayer al fin pude configurar la aceleración 3D en el equipo donde cambie la tarjeta de


video -el de mi esposa-, en este equipo fue donde cambie la tarjeta de video ATI por una
Nvidia y definitivamete fue mucho más sencillo configurar la Nvidia, de hecho la ATI
no la pude hacer funcionar, espero que ahora que la voy a usar en mi equipo no me da
tanta lata.

Para instalar los drivers propietarios de Nvidia y despues de ir instalando el software


que me marcaban los drivers, si, lo primero que me marco fue que necesitaba bindutils
lo instale y así sucesivamente, hice lo siguiente:

1.- Bajar los drivers de Nvidia, los baje de aquí.

2.- Modificar permisos de los drivers sudo chmod +x NVIDIA-Linux-x86-1.0-8756-


pkg1.run

3.- Terminar la sesión gráfica, entrar a una terminal (ctrl-alt+f1) y detener las x (sudo
/etc/init.d/gdm stop).

4.- Cambiar a usuario root (sudo -s)

5.- Intente instalar, los drivers con sh NVIDIA-Linux-x86-1.0-8756-pkg1.run al


empezar a instalarse me marco que necesitaba otros paquetes en mi equipo para poder
hacer la instalación así que comense a instalar lo que me solicitaba, lo primero que me
marco fue bindutils, así que lo instalale con apt-get install binutils

6.- Instalar software neesario para compilar (apt-get install build-essential)

7.- Instalar cabezeras del núcleo, estoy usando el kernel 2.6.15-22-k7 así que necesito
instalar las cabezeras del mismo, si usan otro kernel deben instalar las cabezeras que le
correspondan (apt-get install linux-headers-2.6.15-22-k7)

8.- Una vez instalados esos tres paquetes ahora si podemos correr sin fallas la
instalación de los drivers de Nvidia con sh NVIDIA-Linux-x86-1.0-8756-pkg1.run ,
ojo, debemos seleccionar que SI modifique el archivo xorg.conf

Al terminar la instalación salimos de root tecleando (exit), ahora sólo volvemos a correr
las x con (sudo /etc/init.d/gdm start)

. Despues de esto ya tengo acceleración 3D en el equipo, el equipo donde instale tenía


una instalación nueva de dapper beta, tal ves haya formas más sencillas de lograr esto,
pero esta fue la que a mi funciono, ahora sólo me falta configurar xgl :-).

Ayer al fin pude configurar la aceleración 3D en el equipo donde cambie la tarjeta de


video -el de mi esposa-, en este equipo fue donde cambie la tarjeta de video ATI por una
Nvidia y definitivamete fue mucho más sencillo configurar la Nvidia, de hecho la ATI
no la pude hacer funcionar, espero que ahora que la voy a usar en mi equipo no me da
tanta lata.
Para instalar los drivers propietarios de Nvidia y despues de ir instalando el software
que me marcaban los drivers, si, lo primero que me marco fue que necesitaba bindutils
lo instale y así sucesivamente, hice lo siguiente:

1.- Bajar los drivers de Nvidia, los baje de aquí.

2.- Modificar permisos de los drivers sudo chmod +x NVIDIA-Linux-x86-1.0-8756-


pkg1.run

3.- Terminar la sesión gráfica, entrar a una terminal (ctrl-alt+f1) y detener las x (sudo
/etc/init.d/gdm stop).

4.- Cambiar a usuario root (sudo -s)

5.- Intente instalar, los drivers con sh NVIDIA-Linux-x86-1.0-8756-pkg1.run al


empezar a instalarse me marco que necesitaba otros paquetes en mi equipo para poder
hacer la instalación así que comense a instalar lo que me solicitaba, lo primero que me
marco fue bindutils, así que lo instalale con apt-get install binutils

6.- Instalar software neesario para compilar (apt-get install build-essential)

7.- Instalar cabezeras del núcleo, estoy usando el kernel 2.6.15-22-k7 así que necesito
instalar las cabezeras del mismo, si usan otro kernel deben instalar las cabezeras que le
correspondan (apt-get install linux-headers-2.6.15-22-k7)

8.- Una vez instalados esos tres paquetes ahora si podemos correr sin fallas la
instalación de los drivers de Nvidia con sh NVIDIA-Linux-x86-1.0-8756-pkg1.run ,
ojo, debemos seleccionar que SI modifique el archivo xorg.conf

Al terminar la instalación salimos de root tecleando (exit), ahora sólo volvemos a correr
las x con (sudo /etc/init.d/gdm start)

. Despues de esto ya tengo acceleración 3D en el equipo, el equipo donde instale tenía


una instalación nueva de dapper beta, tal ves haya formas más sencillas de lograr esto,
pero esta fue la que a mi funciono, ahora sólo me falta configurar xgl :-).

You might also like