比之前在ubuntu上弄多花了很多時間,主要是為了找出更簡易的步驟
可以參考這篇,那個beryl-install的script簡化了很多動作
http://www.ubuntu.org.tw/modules/newbb/viewtopic.php?topic_id=3703
若連結斷掉,該script內容如下
#!/bin/bash
if [ `whoami` != "root" ]; 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" | sudo tee /etc/xdg/autostart/beryl-manager.desktop
sudo 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;
存成單一文字檔後chmod 755,切到文字模式的終端機下,用root執行它
他會幫你安裝新版的nvidia driver,算是超級省事的了
另外,由於他會改寫你的sources.list (也會自動幫你備份)
但是萬一你跑他兩次的話,原本的sources.list就沒了,所以最好還是備份一下
因為用的是kde,所以安裝aquamarine改善順暢度以及讓工作列上的桌面管理程式有作用
$sudo apt-get aquamarine
當然也可以去Adept用圖形化安裝aquamarine...:)
似乎因為桌上型電腦沒使用到stylus" "cursor" "eraser" 這三個table PC用的裝置
所以beryl-manager雖然可以啟動成功,但是會出現:
X Error: BadDevice, invalid or uninitialized input device 169
Major opcode: 146
Minor opcode: 3
Resource id: 0x0
Failed to open device
X Error: BadDevice, invalid or uninitialized input device 169
Major opcode: 146
Minor opcode: 3
Resource id: 0x0
Failed to open device
要解決這個問題,用root身份去修改/etc/X11/xorg.conf
找到這三行註解掉
# InputDevice "stylus" "SendCoreEvents"
# InputDevice "cursor" "SendCoreEvents"
# InputDevice "eraser" "SendCoreEvents"
也要把相應的裝置設定註解掉
#Section "InputDevice"
# Identifier "stylus"
# Driver "wacom"
# Option "Device" "/dev/input/wacom"
# Option "Type" "stylus"
# Option "ForceDevice" "ISDV4" # Tablet PC ONLY
#EndSection
#Section "InputDevice"
# Identifier "eraser"
# Driver "wacom"
# Option "Device" "/dev/input/wacom"
# Option "Type" "eraser"
# Option "ForceDevice" "ISDV4" # Tablet PC ONLY
#EndSection
#Section "InputDevice"
# Identifier "cursor"
# Driver "wacom"
# Option "Device" "/dev/input/wacom"
# Option "Type" "cursor"
# Option "ForceDevice" "ISDV4" # Tablet PC ONLY
#EndSection
沒註解下面這些裝置設定只註解上面那三行導入敘述的話,kdm啟動會出問題
會卡在開機那個splash畫面...= =
都沒問題的話,beryl應該可以跑的很順利了
要讓他在KDE啟動時跟著啟動的話,作個連結到Autostart
$cd ~/.kde/Autostart/
$ln -s `which beryl-manager` .
0 意見:
張貼留言