打開終端
輸入
gedit ./beryl-install-script
把一下代碼拷貝進彈出的窗體(gedit)
#!/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;
保存,退出gedit編輯器。
2.執行安裝腳本
在終端中執行以下命令
sudo chmod +x ./beryl-install-script
sudo ./beryl-install-script
等腳本執行完畢,beryl已經成功安裝到你的電腦上了。
官方注意事項:
腳本執行期間不得關閉終端或者以其他方式中斷任務執行。
該腳本只能在已經安裝了97XX以上級別的驅動程序下運行。(一般我們ubuntu自帶的驅動都沒有問題的)
本腳本可能與 GeForce 4 以及 低于次級別的顯卡不兼容。
個人意見:
最好在執行腳本前,把源改為cn99的源,不然你更新的時候會經歷漫長的等待(大概幾個小時吧)。
腳本自動設置會話啟動時啟動beryl,但是為了防止出錯進入不了X界面,請在執行beryl前禁用beryl-manager自動啟動。然后打開終端,輸入
beryl-manager&
如果可以beryl順利啟動,那么恭喜。你可以解除“系統→首選項→會話”中對beryl-manager的禁用了。
常見問題:
beryl可以執行,但是3D界面中找不到標題欄(這個非常常見-_-||)
解決方案:
把顯示器色深設置為24色(默認應該時16色)
在終端中輸入
sudo gedit /etc/X11/xong.conf
把
Section "Screen"
里面的
DefaultDepth 16
改成
DefaultDepth 24
保存。
重啟X。
注:
該腳本在本人電腦上執行無誤,beryl成功安裝。
若安裝出錯,如遇到不能啟動X的情況
腳本已經把文件備份到
/etc/apt/source.list.beckup.beryl-script
和
/etc/X11/xorg.conf.backup.beryl-script
請自行恢復。
另附ubuntu 6.10 在cn99的源:
deb http://ubuntu.cn99.com/ubuntu/ edgy main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ edgy-updates main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ edgy-security main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ edgy-backports main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ edgy-proposed main multiverse restricted universe
聲明:
此文章部分參考beryl官方wiki
beryl官方站點:http://www.beryl-project.org/
wiki:http://wiki.beryl-project.org/wiki/Main_Page
其實beryl在各種發行版本的安裝方法在wiki上都有詳細介紹。
大家可以在不懂的時候參閱一下。
個人覺得wiki比上baidu搜好用多了。
翻譯整理修改 by 方云麟cst05001
baicker:
---------------------------------xorg.conf--------------------------------
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:? version 1.0? (buildmeister@builder3)? Fri Dec 15 10:12:14 PST 2006
# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the /etc/X11/xorg.conf manual page.
# (Type "man /etc/X11/xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#?? sudo dpkg-reconfigure -phigh xserver-xorg
Section "ServerLayout"
??? Identifier???? "Default Layout"
??? Screen???????? "Default Screen" 0 0
??? InputDevice??? "Generic Keyboard"
??? InputDevice??? "Configured Mouse"
??? InputDevice??? "stylus" "SendCoreEvents"
??? InputDevice??? "cursor" "SendCoreEvents"
??? InputDevice??? "eraser" "SendCoreEvents"
EndSection
Section "Files"
??? # path to defoma fonts
??? FontPath??????? "/usr/share/X11/fonts/misc"
??? FontPath??????? "/usr/share/X11/fonts/cyrillic"
??? FontPath??????? "/usr/share/X11/fonts/100dpi/:unscaled"
??? FontPath??????? "/usr/share/X11/fonts/75dpi/:unscaled"
??? FontPath??????? "/usr/share/X11/fonts/Type1"
??? FontPath??????? "/usr/share/X11/fonts/100dpi"
??? FontPath??????? "/usr/share/X11/fonts/75dpi"
??? FontPath??????? "/usr/share/fonts/X11/misc"
??? FontPath??????? "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
??? FontPath??????? "/usr/share/fonts/wenquanyi/wqy-bitmapfont/"
EndSection
Section "Module"
??? Load?????????? "i2c"
??? Load?????????? "bitmap"
??? Load?????????? "ddc"
??? ??? Load??? "dri"
??? Load?????????? "extmod"
??? Load?????????? "freetype"
??? Load?????????? "glx"
??? Load?????????? "int10"
??? Load?????????? "type1"
??? Load?????????? "vbe"
EndSection
Section "InputDevice"
??? Identifier???? "Generic Keyboard"
??? Driver???????? "kbd"
??? Option???????? "CoreKeyboard"
??? Option???????? "XkbRules" "xorg"
??? Option???????? "XkbModel" "pc105"
??? Option???????? "XkbLayout" "us"
??? Option???????? "XkbOptions" "lv3:ralt_switch"
EndSection
Section "InputDevice"
??? Identifier???? "Configured Mouse"
??? Driver???????? "mouse"
??? Option???????? "CorePointer"
??? Option???????? "Device" "/dev/input/mice"
??? Option???????? "Protocol" "ExplorerPS/2"
??? Option???????? "ZAxisMapping" "4 5"
??? Option???????? "Emulate3Buttons" "true"
??? Option???????? "TripleBuffer" "true"
EndSection
Section "InputDevice"
????????????????????????????????????????????????????? # /dev/input/event
????????????????????????????????????????????????????? # for USB
??? Identifier???? "stylus"
??? Driver???????? "wacom"
??? Option???????? "Device" "/dev/wacom"????????? # Change to
??? Option???????? "Type" "stylus"
??? Option???????? "ForceDevice" "ISDV4"?????????????? # Tablet PC ONLY
EndSection
Section "InputDevice"
????????????????????????????????????????????????????? # /dev/input/event
????????????????????????????????????????????????????? # for USB
??? Identifier???? "eraser"
??? Driver???????? "wacom"
??? Option???????? "Device" "/dev/wacom"????????? # Change to
??? Option???????? "Type" "eraser"
??? Option???????? "ForceDevice" "ISDV4"?????????????? # Tablet PC ONLY
EndSection
Section "InputDevice"
????????????????????????????????????????????????????? # /dev/input/event
????????????????????????????????????????????????????? # for USB
??? Identifier???? "cursor"
??? Driver???????? "wacom"
??? Option???????? "Device" "/dev/wacom"????????? # Change to
??? Option???????? "Type" "cursor"
??? Option???????? "ForceDevice" "ISDV4"?????????????? # Tablet PC ONLY
EndSection
Section "Monitor"
??? Identifier???? "LXB-L15E"
??? Option???????? "DPMS"
EndSection
Section "Device"
??? Identifier???? "NVIDIA Corporation NV34 [GeForce FX 5200]"
??? Driver???????? "nvidia"
EndSection
Section "Screen"
??? Identifier???? "Default Screen"
??? Device???????? "NVIDIA Corporation NV34 [GeForce FX 5200]"
??? Monitor??????? "LXB-L15E"
??? DefaultDepth??? 24
??? Option???????? "AddARGBGLXVisuals" "True"
??? SubSection???? "Display"
??????? Depth?????? 1
??????? Modes????? "1024x768" "832x624" "800x600" "720x400" "640x480"
??? EndSubSection
??? SubSection???? "Display"
??????? Depth?????? 4
??????? Modes????? "1024x768" "832x624" "800x600" "720x400" "640x480"
??? EndSubSection
??? SubSection???? "Display"
??????? Depth?????? 8
??????? Modes????? "1024x768" "832x624" "800x600" "720x400" "640x480"
??? EndSubSection
??? SubSection???? "Display"
??????? Depth?????? 15
??????? Modes????? "1024x768" "832x624" "800x600" "720x400" "640x480"
??? EndSubSection
??? SubSection???? "Display"
??????? Depth?????? 16
??????? Modes????? "1024x768" "832x624" "800x600" "720x400" "640x480"
??? EndSubSection
??? SubSection???? "Display"
??????? Depth?????? 24
??????? Modes????? "1280x1024" "1024x768" "832x624" "800x600" "720x400" "640x480"
??? EndSubSection
EndSection
Section "Extensions"
??? Option "Composite" "Enable"
#??? Option???????? "Composite" "Disable"
EndSection
--------------------------------------source.list------------------------------------------------deb http://ubuntu.cn99.com/ubuntu/ edgy main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ edgy-updates main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ edgy-security main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ edgy-backports main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu-cn/ edgy main restricted universe multiverse
deb http://nvidia.limitless.lupine.me.uk/ubuntu edgy stable
deb http://ubuntu.beryl-project.org/ edgy main
deb http://nvidia.limitless.lupine.me.uk/ubuntu edgy stable
deb http://nvidia.limitless.lupine.me.uk/ubuntu edgy stable
deb http://ubuntu.beryl-project.org/ edgy main
deb http://nvidia.limitless.lupine.me.uk/ubuntu edgy stable
deb http://nvidia.limitless.lupine.me.uk/ubuntu edgy stable
deb http://ubuntu.beryl-project.org/ edgy main
deb http://nvidia.limitless.lupine.me.uk/ubuntu edgy stable
deb http://nvidia.limitless.lupine.me.uk/ubuntu edgy stable
deb http://nvidia.limitless.lupine.me.uk/ubuntu edgy stable
deb http://ubuntu.beryl-project.org/ edgy main
deb http://nvidia.limitless.lupine.me.uk/ubuntu edgy stable
deb http://ubuntu.beryl-project.org/ edgy main