Thread: BeryL on Ubuntu
View Single Post
Old 28-02-2007, 10:46 PM   #13 (permalink)
nach p
In The Zone
 
nach p's Avatar
 
Join Date: Jan 2006
Location: mUMBAI
Posts: 241
Default Re: BeryL on Ubuntu

Referred
Code:
http://wiki.beryl-project.org/wiki/Install_Beryl_on_Ubuntu_Dapper_with_XGL
Upgrade the drivers:
Code:
$ sudo aptitude update && sudo aptitude dist-upgrade
Adding the Beryl Project repositories
Code:
$ sudo nano /etc/apt/sources.list
Insert the following repositories to the bottom of the file

Code:
deb http://ubuntu.beryl-project.org dapper main
deb http://download.tuxfamily.org/3v1deb dapper beryl-svn
Save the file by pressing CTRL+X, Y, Enter


Add the repository keys:

Code:
$ wget http://ubuntu.beryl-project.org/root@lupine.me.uk.gpg -O- | sudo apt-key add -
$ wget http://download.tuxfamily.org/3v1deb/DD800CD9.gpg -O- | sudo apt-key add -
Finish off by typing the following. Upgrade your existing packages when prompted
Code:
$ sudo aptitude update && sudo aptitude dist-upgrade
Install Xgl and Beryl

Code:
$ sudo aptitude install xserver-xgl beryl emerald-themes
Creating A Separate Xgl session

Code:
$ sudo nano /usr/local/bin/startxgl.sh
GNOME & Nvidia graphics card(dont have nvidia grafix card)

Code:
#!/bin/sh
/usr/bin/Xgl :1 -fullscreen -ac -br -dpi 96 -accel xv:fbo -accel glx:pbuffer &
sleep 4  
export DISPLAY=:1
cookie="$(xauth -i nextract - :0 | cut -d ' ' -f 9)"
xauth -i add :1 . "$cookie" 
exec /etc/X11/Xsession gnome-session
ave the file by pressing CTRL+X, Y, Enter

Make the script executable by typing:


Code:
$ sudo chmod a+x /usr/local/bin/startxgl.sh

Next, we need to create an Xgl session entry in our log in manager:



Code:
$ sudo nano /usr/share/xsessions/xgl.desktop

Make it look like this:


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

Save the file by pressing CTRL+X, Y, Enter

Running Beryl


Code:
$ sudo nano /usr/local/bin/start_beryl.sh
Copy the following into the new file:


Code:
#!/bin/bash
#
# Start beryl-manager within gnome-session
#
if (( `ps -A -o comm | grep -c '^Xgl$'` == "1" )); then
       DISPLAY=:1 beryl-manager
       DISPLAY=:1 beryl-xgl
else echo "${0}: Error: beryl-manager not launched. Xgl not running?"
fi

Save the file by pressing CTRL+X, Y, Enter. Make the scipt executable:



Code:
$ sudo chmod +x /usr/local/bin/start_beryl.sh

GNOME
* Go to System - Preferences - Sessions
* Go to the 'Startup Programs' tab
* Click the 'Add' button and type /usr/local/bin/start_beryl.sh into the dialog box
* Click 'Close'

Adding Beryl to every session

GNOME
* Go to System ? Preferences ? Sessions
* Go to the 'Startup Programs' tab
* Click the 'Add' button and type beryl-manager into the dialog box
* Click 'Close'


Reboot
__________________
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity."
-Dennis Ritchie
nach p is offline