如何在Freebsd 7实现3D桌面 [ 网站地图 ]

发表于:2009-11-25 浏览:214 作者: 来源:互联网

关键字:FREEBSD,3D桌面

描述:在Freebsd7.1RC1下实现3D桌面配置intel显卡+compiz-fusion+avant-window-navigator 前提条件为你已经装好了gnome桌面环境。 1、显卡配置       我的显卡具体型号为&

在Freebsd 7.1RC1 下实现3D桌面配置 intel 显卡 + compiz-fusion + avant-window-navigator

前提条件为你已经装好了gnome桌面环境。

1、显卡配置
        我的显卡具体型号为
    vendor     = ‘Intel Corporation‘
    device     = ‘82945G Integrated Graphics Controller‘
    class      = display
    subclass   = VGA
其它型号的Intel显卡应该也差不多。。
    显卡驱动我是安装的ports中的 xf86-video-intel-2.4.2
  
2、内核配置
        内核配置中加入
        device                drm                # DRM core module required by DRM drivers
        device                i915drm                # Intel i830 through i915
3、xorg.conf 配置

        在 ServerLayout 小节加入
         Option         "AIGLX" "true"
        在 Module 小节中 确认有

         Load  "extmod"
         Load  "dri"
在7.1 中这些是默认打开的。

        加入以下小节
        Section "Extensions"
        Option "Composite" "Enable"
        EndSection
Device 小节 加入
      Option      "XAANoOffscreenPixmaps" "true"
      Option      "DRI"     "true"
在 Screen 小节中
        类似
         Identifier "Screen0"
         Device     "Card0"
         Monitor    "Monitor0"

        加入  DefaultDepth 24
       
        然后 找一个适合你的分辨率 改成下面的样子,
        SubSection "Display"
                Viewport   0 0
                Depth     24
                Modes     "1440x900"
        EndSubSection
最后加入
        Section "DRI"
             Group   0
             Mode    0666
        EndSection
xorg.conf 配置完成后要重起一下才能生效。
       
4、安装 compiz-fusion

        cd /usr/ports/x11-wm/compiz-fusion
       
        在make config 中 去掉gconf支持 ,gconf 存在的话会比较麻烦

[Copy to clipboard] [ - ]CODE:
         │ │          [X] EXTRA    Enable extra plugins                      │ │ 
         │ │          [ ] UNSUP    Enable unsupported plugins                 │ │ 
         │ │          [X] EMERALD  Enable emerald window decorator          │ │ 
         │ │          [ ] GCONF    Enable the gconf backend  
make install clean
       
        写一个start-compiz 脚本 内容如下
        #!/bin/sh
        export LIBGL_ALWAYS_INDIRECT=1
        export INTEL_BATCH=1
        compiz --replace --indirect-rendering --sm-disable ccp
然后在 gnome 菜单-》系统-》首选项-》compiz setting manager 中确保 Effects 中的 window decoration 选中,点击它进入设置选项 在 command 那里 填写 emerald。
现在运行 start-compiz 可以实现3D桌面了。。
       
5、如果想装一个 dock玩玩的话,可以装 avant-window-navigator  这个软件 没有 ports 只能手动安装

        到这里https://launchpad.net/awn/+download下载  0.2.6  版本。
       
         tar zxvf  avant-window-navigator-0.2.6.tar.gz
        cd avant-window-navigator-0.2.6
        fetchhttp://launchpadlibrarian.net/12276028/xutil_fix_v3.patch
        patch -p0 < xutil_fix_v3.patch
        ./configure LDFLAGS="-L/usr/local/include -L/usr/local/lib"
        完成后不要急
        cd po
        vi Makefile  在 46,47 行 编辑下面的样子
        GMSGFMT=msgfmt
        MSGFMT=msgfmt
        cd ../
        gmake && gmake install
       
        运行 avant-window-navigator
        dock  就出现了。。


站长资讯网 做中国最丰富的资讯网站 沪ICP备05004089号