Xgl Edgy
De Guia Ubuntu PT
Tabela de conteúdo |
Introdução
Instalar o Xgl e o Beryl no (K)Ubuntu Edgy Eft é simples. Pô-lo a funcionar é um pouco mais complexo, mas com este how-to tudo será mais fácil.
ATENÇÃO: Se tem uma ATI mais baixa que a 9500, é recomendado o uso das drivers OpenSource ATI quem veem de base configuradas no Ubuntu e o uso do AIGLX - Veja este GUIA
Baseado em http://wiki.beryl-project.org/wiki/Install/Ubuntu/Edgy/XGL
Instalar Drivers da Placa Gráfica
Antes de instalar o Xgl, é preciso confirmar que tem aceleração, isto depende da placa gráfica que se tem:
- Ver Aqui para nVidia 8xxx series drivers
- Ver Aqui para ATI fglrx drivers.
Para confirmar que se tem aceleração 3D fazer:
glxinfo |grep direct
no terminal deve aparecer:
direct rendering: Yes
então pode-se continuar a instalação do Xgl.
Adicionando repositórios
Primeiro, é preciso adicionar o repositório do Beryl ao seu /etc/apt/sources.list - isto pode ser feito (como root) com um editor de texto, ou usando o Synaptic ou o Adept. A linha a adicionar é a seguinte:
deb http://ubuntu.beryl-project.org/ edgy main
Os pacotes nos repositórios estão assinados com uma chave, para que se possa verificar que são validos. Para adicionar a chave corra o comando:
wget http://ubuntu.beryl-project.org/root@lupine.me.uk.gpg -O- | sudo apt-key add -
e actualizar a lista de pacotes:
sudo apt-get update
Instalando Xgl & Beryl
O Xgl está contido no pacote xserver-xgl do Ubuntu. A seguir, faça:
sudo apt-get install xserver-xgl
A seguir, instalar os pacotes beryl e emerald-themes:
sudo apt-get install beryl emerald-themes
Pode também instalar os pacotes usando o Synaptic ou o Adept.
Configuração
Agora que o Beryl e o Xgl estão instalados. É melhor ter uma sessão separada (no gdm ou kdm) para o Xgl, pois algumas aplicações podem não funcionar correctamente na sessão Xgl.
Para criar a sessão, crie o ficheiro '/usr/share/xsessions/xgl.desktop', e adiciona o seguinte conteudo no mesmo, usado o seu editor de texto escolhido (como root ou usando sudo):
[Desktop Entry] Encoding=UTF-8 Name=Xgl Exec=/usr/bin/startxgl.sh Icon= Type=Application
Note que o xgl.desktop chama um ficheiro que actualmente não existe - '/usr/bin/startxgl.sh'. O conteudo desse ficheiro pode váriar, conforme se use Gnome ou Kde (ou outro window Manager).
Mais uma vez, criar como root/sudo usando um editor de texto o ficheiro '/usr/bin/startxgl.sh' ( Examplo: sudo gedit /usr/bin/startxgl.sh):
NVIDIA
Gnome:
#!/bin/sh /usr/bin/Xgl :1 -fullscreen -ac -br -accel xv:fbo -accel glx:pbuffer & sleep 4 export DISPLAY=:1 exec gnome-session
Para KDE mudar a última linha por
exec startkde
ATI
Gnome:
#!/bin/sh Xgl -fullscreen :1 -ac -br -accel glx:pbuffer -accel xv:pbuffer & sleep 4 export DISPLAY=:1 exec gnome-session
Para KDE mudar a última linha por
exec startkde
É necessário tormar o script executável, isto pode ser feito usando o Nautilus ou Konqueror, ou na Consola:
sudo chmod a+x /usr/bin/startxgl.sh
Agora quando o GDM ou KDM arancar, deve haver uma sessão chamada 'Xgl' disponivel para escolher; se fizer login na secção Xgl, vai correr o scrip startxgl e começar o Gnome ou Kde. Assim a sessão normal não irá ter as definições do Xgl, assim, podendo correr programas que não funcionem correctamente no mesmo.
Running Beryl
Now it's time to test Beryl. Open a terminal, and run:
beryl-manager
If all goes well Beryl should throw out a splash screen, and your windows will suddenly become wobbly! Also note that there is a new icon in your system tray - this allows you to control Beryl, run BSM (the Beryl settings manager) or Emerald (the theme manager). It also provides fallback to another window manager, in case Beryl crashes.
If you don't get a splash screen immediately, you may need to tell the manager to load Beryl - right-click on the red gem, go to "Select Window Manager" and choose "Beryl". If that doesn't work, there's a problem somewhere! Hopefully, useful debugging output will be in the terminal session; Ubuntu users can ask for help at #ubuntu-xgl, or the stock #xgl channel on irc://irc.freenode.net/
Assuming all goes well, you can set up Beryl Manager to start up every time you load into your Xgl session.
GNOME
- Go to System ---> Preferences ---> Sessions
- Go to the Startup Programs tab
- Click the 'Add' button and type in 'beryl-manager'
- Click the 'Add' button and type in 'beryl-xgl'
- Exit
KDE
Simpler - but less graphical. In a terminal:
ln -s /usr/bin/beryl-manager ~/.kde/Autostart/beryl-manager
Note on Window Decorations
If Window decorations does not show up, try running beryl-xgl. Open a terminal, and run:
beryl-xgl
In case this solves the problem, add beryl-xgl to Startup Programs or Autostart using the methods mentioned above, replacing beryl-manager with beryl-xgl.
For those who want to still utilize gnome GTK themes and icon settings you will need todo the following:
- Go to System --> Preferences --> Sessions
- Click the "Add" button and type in 'gnome-settings-daemon'
- Exit
- For people using who want to start this before you restart X simply type 'gnome-settings-daemon &' in a console.

