Microwave Biscuit

Modified Beryl Install

Posted in Linux, ubuntu by microwavebiscuit on February 20, 2007

If you are looking to install Beryl, you should definitely visit the Beryl Wiki as there are some scripts and instructions written for different distros which are easy to follow. That being said, I had to hack the default Beryl script a bit to make it work for me. Here’s what I did:

Ran the default Beryl Install script found here which is:


#!/bin/bash
if [ $UID -gt 0 ]; then
echo "You must run this script as root.";
else
cp /etc/apt/sources.list /etc/apt/sources.list.backup.beryl-script
cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup.beryl-script
echo "deb http://nvidia.limitless.lupine.me.uk/ubuntu edgy stable" >> /etc/apt/sources.list
wget http://nvidia.limitless.lupine.me.uk/ubuntu/root@lupine.me.uk.gpg -O- | apt-key add -
aptitude -y update && aptitude -y install linux-restricted-modules-$(uname -r) nvidia-glx
nvidia-xconfig --add-argb-glx-visuals
echo "deb http://ubuntu.beryl-project.org/ edgy main" >> /etc/apt/sources.list
wget http://ubuntu.beryl-project.org/root@lupine.me.uk.gpg -O- | apt-key add -
aptitude -y update && aptitude -y dist-upgrade
aptitude -y install beryl emerald emerald-themes
echo "[Desktop Entry]
Encoding=UTF-8
Name=Beryl Manager
GenericName=3D Window Manager
Comment=Beryl Manager daemon
Icon=/usr/share/icons/hicolor/scalable/apps/beryl-manager.svg
Exec=beryl-manager
Terminal=false
Type=Application
Categories=GTK;GNOME;Application;Utility;
StartupNotify=true
X-Ubuntu-Gettext-Domain=beryl-manager" > /etc/xdg/autostart/beryl-manager.desktop
cp /etc/xdg/autostart/beryl-manager.desktop /usr/share/applications/beryl-manager.desktop
cp /etc/xdg/autostart/beryl-manager.desktop ~/Desktop/beryl-manager.desktop
echo -e "\n\nBeryl is now installed.\n\nTo run Beryl on Ubuntu startup, please add beryl-manager to your\nstartup programs (System > Preferences > Sessions, and click on\nthe \"startup programs\" tab). Afterwards, please reboot.\n\nBackups of /etc/apt/sources.list and /etc/X11/xorg.conf were made:\n /etc/apt/sources.list.backup.beryl-script\n /etc/X11/xorg.conf.backup"
fi;

The problem that I ran into is that I already had nVidia drivers installed and the drivers downloaded in this script were no good with my kernel. Upon rebooting X crashed and the basic message was:


Feb 10 13:29:45 mypc kernel: [ 594.572323] NVRM: API mismatch: the client has the version 1.0-9746, but
Feb 10 13:29:45 mypc kernel: [ 594.572325] NVRM: this kernel module has the version 1.0-8776. Please
Feb 10 13:29:45 mypc kernel: [ 594.572327] NVRM: make sure that this kernel module and all NVIDIA driver
Feb 10 13:29:45 mypc kernel: [ 594.572329] NVRM: components have the same version.

So, I had to go through a couple of gyrations to get my machine back to where it should be which included uninstalling all of the nVidia drivers, uninstalling Beryl, then reinstalling the nVidia drivers and getting that to work. I started by reconfiguring the X server to use the “nv” driver. Then I uninstalled the nVidia drivers in Automatix. Finally, I reinstalled the nVidia drivers via Automatix and then ran this modified script below which removes the nVidia driver install portion.

#!/bin/bash
if [ $UID -gt 0 ]; then
echo "You must run this script as root.";
else
cp /etc/apt/sources.list /etc/apt/sources.list.backup.beryl-script
echo "deb http://ubuntu.beryl-project.org/ edgy main" >> /etc/apt/sources.list
wget http://ubuntu.beryl-project.org/root@lupine.me.uk.gpg -O- | apt-key add -
aptitude -y update && aptitude -y dist-upgrade
aptitude -y install beryl emerald emerald-themes
echo "[Desktop Entry]
Encoding=UTF-8
Name=Beryl Manager
GenericName=3D Window Manager
Comment=Beryl Manager daemon
Icon=/usr/share/icons/hicolor/scalable/apps/beryl-manager.svg
Exec=beryl-manager
Terminal=false
Type=Application
Categories=GTK;GNOME;Application;Utility;
StartupNotify=true
X-Ubuntu-Gettext-Domain=beryl-manager" > /etc/xdg/autostart/beryl-manager.desktop
cp /etc/xdg/autostart/beryl-manager.desktop /usr/share/applications/beryl-manager.desktop
cp /etc/xdg/autostart/beryl-manager.desktop ~/Desktop/beryl-manager.desktop
echo -e "\n\nBeryl is now installed.\n\nTo run Beryl on Ubuntu startup, please add beryl-manager to your\nstartup programs (System > Preferences > Sessions, and click on\nthe \"startup programs\" tab). Afterwards, please reboot.\n\nBackup of /etc/apt/sources.list was made:\n /etc/apt/sources.list.backup.beryl-script\n
fi;

Because the original script downloaded different nVidia drivers the recovery process was a little more painful than it could have been. When I just replaced the old xorg.conf file it still didn’t work because the driver version was different. So, if you are running Ubuntu and you already have the nVidia drivers installed I would recommend using the above script instead which leaves your xorg.conf alone and does not update the video drivers.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: