Preparing Your Linux System for ATI and Beryl
The Ubuntu Way
Reconstructed by Chad Kullhem
The first thing is to check whether the graphics card can handle 3D video. In terminal type:
user@home~:$ glxinfo | grep rendering
The output should be:
direct rendering: Yes
If no, then please continue reading. If yes, skip to “Installing Software”.
The correct driver must be installed in order for xgl and beryl to work. In terminal, install xorg-driver-fglrx:
user@home~:$ sudo apt-get install xorg-driver-fglrx
Next, the computer must be configured to use this driver.
user@home~:$ sudo dpkg-reconfigure xserver-xorg
The terminal will now turn into a dialoge box and ask a sequence of questions. When it says to pick a driver choose fglrx. The rest of the questions are straigh forward. I hit yes/ok for most. Now restart your system
user@home~:$ sudo shutdown -r now
Now the Beryl repository must be added to our sources list.
user@home~:$ sudo gedit /etc/apt/sources.list
and add the following to the bottom of the page:
deb http://ubuntu.beryl-project.org feisty main
Save and exit the text editor. Now a key must be added to validate the repository. In terminal type:
user@home~:$ wget http://firstname.lastname@example.org -O- | sudo apt-key add -
*Note: All one line
Now update the software packages:
user@home~:$ sudo apt-get update
Now we will be able to install the packages from synaptic package manager.
In terminal install the following packages:
user@home~:$ sudo apt-get install xserver-xgl beryl-ubuntu beryl-manager emerald emerald-themes
On beryl-project.org they recommend using beryl-core version 0.2.0. To do this type the following:
user@home~:$ sudo gedit /etc/apt/preferences
Now add the following to this file.
Pin: release o=lupine
Then install beryl-core:
user@home~:$ sudo apt-get install beryl-core=0.2.0~0beryl1
Beryl will only work on xgl, therefore we need to create a login session to load xgl. We will create a startup script to load xgl and will login to this whenever we restart.
user@home~:$ sudo gedit /usr/local/bin/startxgl.sh
Add the following to the startxgl.sh script:
Xgl -fullscreen :1 -ac -br -accel glx:pbuffer -accel xv:pbuffer &
cookie=”$(xauth -i nextract - :0 | cut -d ‘ ‘ -f 9)”
xauth -i add :1 . “$cookie”
Now we need to make this script executable:
user@home~:$ sudo chmod a+x /usr/local/bin/startxgl.sh
Now we'll add an option to the gnome login manager so that we can choose to log into our new Xgl-gnome session. Create an Xsession file like so:
gksudo gedit /usr/share/xsessions/xgl.desktop
In this file, paste the following:
Comment=Start an Xgl Session
Finally, we need to have beryl load during start up. Go to System-> Preferences-> Sessions. Under the startup tab, click New. Type beryl under the name and beryl-manager in the command text box. Close and thats it!
Under the log in screen, make sure you pick XGL session to log into or else it will not work.
To log into Xgl, logout of your current session, and from the login screen click "Options" and "Session chooser".
Select "Xgl" from the Session menu.
When you login, gdm will ask if you would like to make the "Xgl" session the default session. For now, choose "Just for this session".
When your Xgl desktop appears for the first time, gnome may ask you about your keyboard localization preference. Choose "Use Gnome keyboard localization" to continue using your usual keyboard settings.
Try out the settings with Beryl and if any problems occur, revert back to your original GNOME desktop.