ubuntu上安装beryl
2024-08-28 00:17:49
供稿:网友
这一段安装过程是从beryl上的wiki摘来的,经过作者的整理,保留了基本的安装步骤。实验系统为Ubuntu7.04, 显卡nVidia.
Install Beryl on Ubuntu Feisty with nVidia
Ubuntu
1. Open a terminal. Execute:
sudo echo "Beryl & nVidia installation script for ubuntu Ubuntu Feisty"
(this one line requires your password so that, the next text paste is uninterrupted.)
2. Copy and paste all the text into the Terminal in one action. [Select all the text. Then middle button click in terminal]
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup.beryl-script
sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup.beryl-script
echo "deb http://ubuntu.beryl-project.org feisty main
deb-src http://ubuntu.beryl-project.org feisty main" | sudo tee -a /etc/apt/sources.list
wget http://ubuntu.beryl-project.org/root@lupine.me.uk.gpg -O- | sudo apt-key add -
sudo apt-get update
sudo apt-get -y install beryl beryl-manager emerald-themes
sudo nvidia-xconfig --add-argb-glx-visuals
sudo cp /usr/share/applications/beryl-manager.desktop /etc/xdg/autostart/beryl-manager.desktop
cp /usr/share/applications/beryl-manager.desktop ~/Desktop/beryl-manager.desktop
echo -e "Logout now and then press /e[0;31mCTRL+ALT+BACKSPACE/e[0m to restart xorg"
echo "Installation completed !"
3. Now Logout and then press [CTRL+ALT+BACKSPACE] to restart xorg
DONE
WARNING: THIS HAS BEEN KNOWN TO BREAK FEISTY IN SOME INSTANCES, BREAKING THE WHOLE GUI SYSTEM AND NOT ALLOWING THE UBUNTU GUI TO LOAD SINCE NVIDIA CANNOT LOAD THE KERNEL MODULE
LOAD THE NVIDIA DRIVERS SEPARATELY --THEN --Execute the script above. Some repositories have out-of-date nVidia drivers and the script above is really hard to get undone.
[edit]
Removing the autostart
System > Preferences > Sessions
Click on the "Startup Programs" tab and select "beryl-manager" then subsequently click "disable."
Open a terminal. Execute:
sudo rm /etc/xdg/autostart/beryl-manager.desktop
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" | sudo tee /usr/share/applications/beryl-manager.desktop
gedit ./beryl-install-script
Now, copy and paste the following script into the window:
#!/bin/bash
red='/e[0;31m'
bred='/e[1;31m'
nocolor='/e[0m'
willrestartx="n"
dist="feisty"
echo -e "${bred}.----------------------------.${nocolor}"
echo -e "${bred}|${red} Beryl/nVidia install. ${bred}|${nocolor}"
echo -e "${bred}'----------------------------'${nocolor}"
if [ `whoami` != "root" ]; then
echo -e "${bred}You must run this script as root.${nocolor}";
else
echo -e "${nocolor}Starting install${bred}...${nocolor}";