| 论坛注册| 加入收藏 | 设为首页| RSS
Google
您当前的位置:首页 > Linux频道 > Linux入门与提高 > 安装与配置

ubuntu7.04 上安装beryl

时间:2007-08-24 11:11:26  来源:Linux联盟收集整理  作者:
这一段安装过程是从beryl上的wiki摘来的,经过作者的整理,保留了基本的安装步骤。5NFLinux联盟
实验系统为ubuntu7.04, 显卡nVidia.5NFLinux联盟
5NFLinux联盟
Install Beryl on Ubuntu Feisty with nVidia5NFLinux联盟
5NFLinux联盟
Ubuntu5NFLinux联盟
5NFLinux联盟
1. Open a terminal. Execute:5NFLinux联盟
5NFLinux联盟
sudo echo "Beryl & nVidia installation script for ubuntu Ubuntu Feisty"5NFLinux联盟
5NFLinux联盟
(this one line requires your password so that, the next text paste is uninterrupted.)5NFLinux联盟
5NFLinux联盟
2. Copy and paste all the text into the Terminal in one action. [Select all the text. Then middle button click in terminal]5NFLinux联盟
5NFLinux联盟
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup.beryl-script5NFLinux联盟
sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup.beryl-script5NFLinux联盟
echo "deb http://ubuntu.beryl-project.org feisty main5NFLinux联盟
deb-src http://ubuntu.beryl-project.org feisty main" | sudo tee -a /etc/apt/sources.list 5NFLinux联盟
wget http://ubuntu.beryl-project.org/root@lupine.me.uk.gpg -O- | sudo apt-key add -5NFLinux联盟
sudo apt-get update5NFLinux联盟
sudo apt-get -y install beryl beryl-manager emerald-themes 5NFLinux联盟
sudo nvidia-xconfig --add-argb-glx-visuals5NFLinux联盟
sudo cp /usr/share/applications/beryl-manager.desktop /etc/xdg/autostart/beryl-manager.desktop 5NFLinux联盟
cp  /usr/share/applications/beryl-manager.desktop ~/Desktop/beryl-manager.desktop5NFLinux联盟
echo -e "Logout now and then press \e[0;31mCTRL+ALT+BACKSPACE\e[0m to restart xorg"5NFLinux联盟
echo "Installation completed !"5NFLinux联盟
5NFLinux联盟
5NFLinux联盟
3. Now Logout and then press [CTRL+ALT+BACKSPACE] to restart xorg5NFLinux联盟
5NFLinux联盟
DONE5NFLinux联盟
5NFLinux联盟
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 MODULE5NFLinux联盟
5NFLinux联盟
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.5NFLinux联盟
[edit]5NFLinux联盟
Removing the autostart5NFLinux联盟
5NFLinux联盟
System > Preferences > Sessions5NFLinux联盟
5NFLinux联盟
Click on the "Startup Programs" tab and select "beryl-manager" then subsequently click "disable."5NFLinux联盟
5NFLinux联盟
Open a terminal. Execute:5NFLinux联盟
5NFLinux联盟
sudo rm /etc/xdg/autostart/beryl-manager.desktop5NFLinux联盟
5NFLinux联盟
echo "[Desktop Entry]5NFLinux联盟
Encoding=UTF-85NFLinux联盟
Name=Beryl Manager5NFLinux联盟
GenericName=3D Window Manager5NFLinux联盟
Comment=Beryl Manager daemon5NFLinux联盟
Icon=/usr/share/icons/hicolor/scalable/apps/beryl-manager.svg5NFLinux联盟
Exec=beryl-manager5NFLinux联盟
Terminal=false5NFLinux联盟
Type=Application5NFLinux联盟
Categories=GTK;GNOME;Application;Utility;5NFLinux联盟
StartupNotify=true5NFLinux联盟
X-Ubuntu-Gettext-Domain=beryl-manager" | sudo tee /usr/share/applications/beryl-manager.desktop5NFLinux联盟
5NFLinux联盟
5NFLinux联盟
gedit ./beryl-install-script5NFLinux联盟
5NFLinux联盟
Now, copy and paste the following script into the window:5NFLinux联盟
5NFLinux联盟
#!/bin/bash5NFLinux联盟
red='\e[0;31m'5NFLinux联盟
bred='\e[1;31m'5NFLinux联盟
nocolor='\e[0m'5NFLinux联盟
willrestartx="n"5NFLinux联盟
dist="feisty"5NFLinux联盟
echo -e "${bred}.----------------------------.${nocolor}"5NFLinux联盟
echo -e "${bred}|${red}    Beryl/nVidia install.   ${bred}|${nocolor}"5NFLinux联盟
echo -e "${bred}'----------------------------'${nocolor}"5NFLinux联盟
if [ `whoami` != "root" ]; then5NFLinux联盟
 echo -e "${bred}You must run this script as root.${nocolor}";5NFLinux联盟
else5NFLinux联盟
 echo -e "${nocolor}Starting install${bred}...${nocolor}";5NFLinux联盟
 sleep 1s5NFLinux联盟
 echo -e "${red}Do not close the terminal while the script is running, or in any other way interrupt the script!${nocolor}"5NFLinux联盟
 if  grep -q "deb http://ubuntu.beryl-project.org ${dist} main" /etc/apt/sources.list5NFLinux联盟
  then5NFLinux联盟
  echo -e "${red}beryl repositories have already been added${nocolor}"5NFLinux联盟
 else5NFLinux联盟
  echo "Adding beryl repositories to /etc/apt/sources.list and installing Beryl"5NFLinux联盟
  cp /etc/apt/sources.list /etc/apt/sources.list.backup.beryl-script5NFLinux联盟
  echo "deb http://ubuntu.beryl-project.org ${dist} main" | tee -a /etc/apt/sources.list5NFLinux联盟
  echo "deb-src http://ubuntu.beryl-project.org ${dist} main" | tee -a /etc/apt/sources.list5NFLinux联盟
  wget http://ubuntu.beryl-project.org/root@lupine.me.uk.gpg -O- | sudo apt-key add -5NFLinux联盟
  aptitude update5NFLinux联盟
  echo "Backup of /etc/apt/sources.list made to /etc/apt/sources.list.backup.beryl-script"5NFLinux联盟
 fi5NFLinux联盟
 if [ -e /usr/bin/beryl-manager ]; then5NFLinux联盟
  updateberyl="upgrade"5NFLinux联盟
 else 5NFLinux联盟
  updateberyl="install"5NFLinux联盟
 fi5NFLinux联盟
 echo -e "${updateberyl} Beryl?${bred}(y/n)${nocolor}"; read answer5NFLinux联盟
 if [ $answer = y ]; then5NFLinux联盟
  apt-get -y ${updateberyl} beryl emerald-themes5NFLinux联盟
 fi5NFLinux联盟
 echo "Installing nVidia drivers"5NFLinux联盟
 echo -ne "${nocolor}Install nVidia drivers? ${bred}(y/n)${nocolor}"; read answer5NFLinux联盟
 if [ $answer = y ]; then5NFLinux联盟
  aptitude -y install nvidia-glx nvidia-kernel-common5NFLinux联盟
 fi5NFLinux联盟
 if grep -q AddARGBGLXVisuals /etc/X11/xorg.conf5NFLinux联盟
  then5NFLinux联盟
  echo -e "    ${bred}Driver   \"nvidia\"${red} has already been added to ${bred}Section \"Device\"${nocolor}"5NFLinux联盟
  echo -e "    ${bred}Option \"AddARGBGLXVisuals\" \"True\" ${red} has already been added to ${bred} Section \"Screen\"${nocolor}"5NFLinux联盟
 else5NFLinux联盟
  echo "configuring /etc/X11/xorg.conf"5NFLinux联盟
  echo "Backup of /etc/X11/xorg.conf made to /etc/X11/xorg.conf.backup"5NFLinux联盟
  cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup.beryl-script5NFLinux联盟
  nvidia-xconfig --add-argb-glx-visuals5NFLinux联盟
  echo -e "${red}\nRestart X.org NOW?${nocolor}\nClose and save any open windows. ${bred}(y/n)${nocolor}"; read willrestartx5NFLinux联盟
 fi;5NFLinux联盟
 if [ -e /usr/bin/beryl-manager ]; then5NFLinux联盟
  echo -e "${nocolor}Beryl is ${updateberyl}ed.\ntype ${bred}beryl-manager${nocolor} in terminal to run${nocolor}"5NFLinux联盟
 fi;5NFLinux联盟
 if [ $willrestartx = y ]; then5NFLinux联盟
  sleep 3s5NFLinux联盟
  /etc/init.d/gdm restart5NFLinux联盟
 fi;5NFLinux联盟
fi;5NFLinux联盟
5NFLinux联盟
Running the script5NFLinux联盟
5NFLinux联盟
Run the following command5NFLinux联盟
5NFLinux联盟
sudo bash ./beryl-install-script5NFLinux联盟
5NFLinux联盟
The script will then perform all the necessary functions to perform the installation of Beryl. Do not close the terminal while the script is running, or in any other way interrupt the script.5NFLinux联盟
[edit]5NFLinux联盟
Postinstallation5NFLinux联盟
5NFLinux联盟
In general, it is not a good idea to rerun the script after the initial execution. Thus, you should remove it:5NFLinux联盟
5NFLinux联盟
rm ./beryl-install-script5NFLinux联盟
5NFLinux联盟
Add beryl repositories and install Beryl5NFLinux联盟
5NFLinux联盟
Adding beryl repositories5NFLinux联盟
5NFLinux联盟
Run the following command:5NFLinux联盟
5NFLinux联盟
 echo "deb http://ubuntu.beryl-project.org feisty main" | sudo tee -a /etc/apt/sources.list5NFLinux联盟
 echo "deb-src http://ubuntu.beryl-project.org feisty main" | sudo tee -a /etc/apt/sources.list5NFLinux联盟
 wget http://ubuntu.beryl-project.org/root@lupine.me.uk.gpg -O- | sudo apt-key add -5NFLinux联盟
5NFLinux联盟
Installing Beryl5NFLinux联盟
 sudo apt-get update5NFLinux联盟
 sudo apt-get -y install beryl emerald-themes5NFLinux联盟
5NFLinux联盟
Configure X.Org to use the new nVIDIA driver5NFLinux联盟
5NFLinux联盟
Submethod 1 (nvidia-xconfig) [recommended]5NFLinux联盟
5NFLinux联盟
Run the following command:5NFLinux联盟
5NFLinux联盟
sudo apt-get install -y nvidia-glx nvidia-kernel-common5NFLinux联盟
sudo nvidia-xconfig --add-argb-glx-visuals5NFLinux联盟
5NFLinux联盟
Restart X115NFLinux联盟
5NFLinux联盟
Restart X11 using Ctrl + Alt + Backspace, or reboot. Beryl should begin running after your desktop environment loads. An icon resembling a red gem will now appear in the system tray; clicking on it is the recommended way to access needed programs and change settings.5NFLinux联盟
5NFLinux联盟
Executing Beryl5NFLinux联盟
5NFLinux联盟
Beryl may be started by running the following command (restarting X11 [Ctrl + Alt + Backspace] is recommended prior to doing so upon installation): beryl-manager5NFLinux联盟
5NFLinux联盟
Generally, however, beryl-manager is used in such a manner that Beryl is executed upon loading the desktop environment.5NFLinux联盟
5NFLinux联盟
Users of GNOME5NFLinux联盟
5NFLinux联盟
The recommended method of adding a startup script to the GNOME Desktop Environment is to access the sessions configuration program (System > Preferences > Sessions). Click on the "Startup Programs" tab and subsequently click "add." Copy and paste the following into the text field:5NFLinux联盟
5NFLinux联盟
beryl-manager5NFLinux联盟
and click on "OK".5NFLinux联盟
来顶一下
近回首页
返回首页
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表
相关文章
栏目更新
栏目热门