Pular para o conteúdo

Instalando o Beryl junto com o XGL/Compiz

Dica publicada em Linux / Introdução
Diógenes Alves de Lira dald
Hits: 9.280 Categoria: Linux Subcategoria: Introdução
  • Indicar
  • Impressora
  • Denunciar

Instalando o Beryl junto com o XGL/Compiz

Este artigo é voltado para as pessoas que desejam instalar o Beryl.

Instalando o Beryl

O primeiro passo é adicionar o repositório do Beryl no /etc/apt/sources.list:

deb http://ubuntu.beryl-project.org feisty main

Feito isto, importe a chave gpg do repositório com o seguinte comando:

$ wget http://ubuntu.beryl-project.org/root@lupine.me.uk.gpg -O- | sudo apt-key add -

Depois execute o comando de atualização dos repositórios do apt com o seguinte comando:

$ sudo apt-get update

Instale o driver da placa de vídeo "Nvidia":

$ sudo apt-get install nvidia-glx

Antes de editar qualquer arquivo devemos fazer uma cópia e nomear ela como backup, sem fugir desse ditado faça uma cópia do seguinte arquivo que vamos fazer uma pequena alteração:

$ sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.bkp

Depois de ter feito o backup, use o editor de texto de sua preferência para editar o arquivo /etc/X11/xorg.conf.

Procure a seção "Module" e adicione as seguintes linhas:

Load "dbe"
Load "glx"

Depois vá na seção "Device" e adicione as seguintes linhas:

Option "XAANoOffscreenPixmaps"
Option "AddARGBGLXVisuals" "True"

Agora vamos instalar os pacotes necessários do Beryl:

$ sudo aptitude install beryl emerald-themes

Feito a instalação dos pacotes, reinicie o X pressionando as teclas Ctrl+Alt+Backspace, após fazer o login na máquina rode o beryl-manager, para isso use o ALT+F2 e digite beryl-manager para ativar os efeitos que você desejar.

OBS: Se quiser ativar a opção "ON TOP" faça o seguinte passo:

ALT+F2 e digite beryl-manager >> clique com o botão direito do mouse >> Emerald Theme Manager, vai abrir uma janela. Vá em Themes Settings >> Edit Themes >> Titlebar, edite o campo Title-bar Object Layout adicionando a letra U, ficando dessa forma (IT::NUXC:Normal Layout).

Instalando o Xgl/Compiz

Edite novamente /etc/X11/xorg.conf e procure a seção Module. Comente as linhas dri e GLcore (se não existir tudo bem!):

#       Load    "dri"
#       Load    "GLcore"

Confirme que o módulo glx esta sendo carregado (Load "glx").

Procure a seção Device e substitua com as seguintes linhas, deixando "Identifier" e "BusID" como estão:

Section "Device"
   ...
   Driver    "nvidia"
   ...
   Option    "RenderAccel"           "true"
   Option    "AllowGLXWithComposite" "true"
EndSection

Procure a seção Screen e confirme se o DefaultDepth está definido para 24 como no exemplo abaixo:

Section "Screen"
    Identifier    "Default Screen"
    Device        "NVIDIA Corporation NV34M [GeForce FX Go5200]"
    Monitor       "Generic Monitor"
    DefaultDepth  24

Depois de feito tudo isso salve o arquivo, já estamos chegando lá. =)

Agora digite no console as seguintes linhas de comando:

$ sudo apt-get install compiz xserver-xgl libgl1-mesa xserver-xorg libglitz-glx1 compiz-gnome
$ sudo cp /etc/gdm/gdm.conf-custom /etc/gdm/gdm.conf-custom.bk
$ sudo vim /etc/gdm/gdm.conf-custom


(Você pode usar qualquer editor de texto de sua preferência)

Substitua tudo que contem no arquivo gdm.conf-custom com as seguintes linhas:

# GDM Configuration Customization file.
#
# This file is the appropriate place for specifying your customizations to the
# GDM configuration. If you run gdmsetup, it will automatically edit this
# file for you and will cause the daemon and any running GDM GUI programs to
# automatically update with the new configuration. Not all configuration
# options are supported by gdmsetup, so to modify some values it may be
# necessary to modify this file directly by hand.
#
# To hand-edit this file, simply add or modify the key=value combination in
# the appropriate section in the template below. Refer to the comments in the
# gdm.conf file for information about each option. Also refer to the reference
# documentation.
#
# If you hand edit a GDM configuration file, you should run the following
# command to get the GDM daemon to notice the change. Any running GDM GUI
# programs will also be notified to update with the new configuration.
#
# gdmflexiserver --command="UPDATE_CONFIG <configuration key>"
#
# For example, the "Enable" key in the "[debug]" section would be specified by
# "debug/Enable".
#
# You can also run gdm-restart or gdm-safe-restart to cause GDM to restart and
# re-read the new configuration settings. You can also restart GDM by sending
# a HUP or USR1 signal to the daemon. HUP behaves like gdm-restart and causes
# any user session started by GDM to exit immediately while USR1 behaves like
# gdm-safe-restart and will wait until all users log out before restarting GDM.
#
# For full reference documentation see the gnome help browser under
# GNOME|System category. You can also find the docs in HTML form on
# http://www.gnome.org/projects/gdm/
#
# NOTE: Lines that begin with "#" are considered comments.
#
# Have fun!


[daemon]

[security]

[xdmcp]

[gui]

[greeter]

[chooser]

[debug]

[servers]# Override display 1 to use Xgl
0=Xgl

[server-Xgl]
name=Xgl server
command=/usr/bin/Xgl :0 -fullscreen -ac -accel glx:pbuffer -accel xv:fbo
flexible=true

Depois de ter feito a edição do arquivo, crie um script que rode o Xgl/Compiz na inicialização:

$ sudo vim /usr/bin/thefuture

Insira as seguintes linhas no novo arquivo. E preste bem atenção, substitua o ".us" com o teclado de seu país, no nosso caso (os brasileiros) use .abnt2.

#!/bin/bash
gnome-window-decorator & compiz --replace gconf decoration wobbly fade minimize cube rotate zoom scale move resize place switcher &
xmodmap /usr/share/xmodmap/xmodmap.us

Salve o arquivo e mude a sua permissão:

$ sudo chmod 755 /usr/bin/thefuture

Para rodar o compiz execute o "thefuture".

Para ter o compiz carregado na inicialização:

System >> Preferências >> Sessões
Aplicações de inicialização >> Adicionar
/usr/bin/thefuture

Clique Ok e depois feche.

Utilizando o vim

Visualizar vídeos feitos em Adobe Flash no Google Chrome usando Ubuntu 64 bits

Segurança começa entrar em pauta

Instalação de arquivos .bin no Linux

Instalando Openfire (servidor de mensagens instantâneas)

Instalando Flash Player para Firefox/Opera/etc na mão

#1 Comentário enviado por davidaquilino em 05/07/2007 - 16:16h
Gostaria do rpm para suse 10.2 do xgl.

Contribuir com comentário

Entre na sua conta para comentar.