|
在 Fedora Core 5 上体验 Aiglx 和 Xgl & Compiz
|
|
来源:http://www.unix5.com 作者:riechelr_hl 发布时间:2007-08-17
|
|
icewm) WMnow=Icewm;; twm) WMnow=Twm;; wmake) WMnow=WMmake;; startxfce4) WMnow=Xfce4;; startkde) WMnow=KDE;; gnome-session) WMnow=GNOME;; esac } preXgl(){ if [ -e $HOME/.Xgl-Status-0 ] then perl -e 'print "="x80;print "\n"' echo -e "\t\tCreating necessary links and cache to share libraries\n" echo -e "\t\tPlease stand by ...\n" perl -e 'print "="x80;print "\n"' sleep 2 sudo ldconfig /opt/Xgl/lib /opt/Xgl/lib/window-manager-settings \ /opt/Xgl/lib/xorg/modules/xgl /opt/Xgl/lib/compiz [ "$?" -eq 0 ] && mv $HOME/.Xgl-Status-0 $HOME/.Xgl-Status-1 sed -i 's/vo=xv,x11/vo=x11,xv/' $HOME/.mplayer/config fi } postXgl(){ if [ -e $HOME/.Xgl-Status-1 ] then perl -e 'print "="x80;print "\n"' echo -e "\t\tCreating necessary links and cache to share libraries\n" echo -e "\t\tPlease stand by ...\n" perl -e 'print "="x80;print "\n"' sleep 2 sudo ldconfig [ "$?" -eq 0 ] && mv $HOME/.Xgl-Status-1 $HOME/.Xgl-Status-0 sed -i 's/vo=x11,xv/vo=xv,x11/' $HOME/.mplayer/config fi } startX(){ currentWM case "$wmnow" in gnome-session) startx -- :1 & DISPLAY=:1 metacity & ;; startxfce4) startx -- :1 & DISPLAY=:1 xfwm4 --daemon & ;; *) startx -- :1 & ;; esac } startXgl(){ export LANG="en_US.UTF-8" # 此处设置界面为英文,不是必需,如果不习惯注销即可 LD_PRELOAD=/usr/lib/libGL.so /opt/Xgl/bin/Xgl :1 -ac -accel glx:pbuffer -accel xv:fbo -audit 0 & # change xv:fbo to xv:pbuffer for ATI video card if [ "$wmnow" = "gnome-session" -o "$wmnow" = "startkde" -o "$wmnow" = "startxfce4" ] then DISPLAY=:1 LD_LIBRARY_PATH="/opt/Xgl/lib:/opt/Xgl/lib/window-manager-settings: \ /opt/Xgl/lib/xorg/modules/xgl:/opt/Xgl/lib/compiz" \ compiz --replace gconf & [ "$wmnow" = "gnome-session" ] && DISPLAY=:1 eval $(dbus-launch --auto-syntax) DISPLAY=:1 gnome-window-decorator &
共9页: 上一页 [1] [2] [3] 4 [5] [6] [7] [8] [9] 下一页
|
| |
|
|
如果您对本文有任何疑问或者建议,请到论坛讨论区发表您的意见: >> 论坛入口 |
[ 收藏]
[ 推荐]
[ 评论(0条)]
[返回顶部] [打印本页]
[关闭窗口] |
|
|
|