登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

Code@Pig Home

喜欢背着一袋Code傻笑的Pig .. 忧美.欢笑.记忆.忘却 .之. 角落

 
 
 

日志

 
 

[FreeBSD] Desktop on 8.0  

2010-01-18 23:25:08|  分类: os_FreeBSD |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |
安装 Xorg
# cd /usr/ports/x11/xorg
# make install clean
并在 /etc/rc.conf 中加入X常用的两个模块:
hald_enable="YES"
dbus_enable="YES"

配置 xorg.conf
# Xorg -configure
# mv /boot/xorg.conf.new /etc/X11/xorg.conf

配置 Ctrl+Alt+Backspace 退出 X 的功能
Xorg 7.4 之后,需要配置这个。而 FreeBSD 8.0 ports 里面正好是 Xorg 7.4 以上版本
在目录 /usr/local/etc/hal/fdi/policy 下创建 x11-input.fdi 
------------------
<?xml version="1.0" encoding="ISO-8859-1"?>
<deviceinfo version="0.2">
  <device>
    <match key="info.capabilities" contains="input.keyboard">
      <merge key="input.x11_options.XkbOptions" type="string">terminate:ctrl_alt_bksp</merge>
    </match>
  </device>
</deviceinfo>
------------------
重启,让 hald 加载此配置。同时修改 /etc/x11/xorg.conf, 在 [ServerLayout] 中加上
Option "DontZap" "off"

配置宽屏
修改 xorg.conf 的 [Screen] 加上:
Section "Screen"
  ...
  Monitor      "Monitor0"
  DefaultDepth 24
  ...
  SubSection "Display"
    Viewport  0 0
    Depth     24
    Modes     "1024x600"
  EndSubSection
EndSection

中文字体
# cd /usr/ports/x11-fonts/wqy
# make install clean
修改 xorg.conf 的 [Files]:
FontPath "/usr/local/lib/X11/fonts/wqy/"

配置 IceWM
# cd /usr/ports/x11-wm/icewm
# make install clean

$ cp /usr/local/lib/X11/xinit/xinitrc ~/.xinitrc
把最后启动的 wm 改成 IceWM
exec icewm-session


常用 ports
/lang/python26
/lang/erlang-lite
/lang/lua

/x11-drivers/xf86-video-intel

/www/firefox35
/graphics/epdfview

/graphics/sdl_gfx
/graphics/sdl_image
/graphics/sdl_ttf
/net/sdl_net

/textproc/scim
/chinese/scim-pinyin



配置 glx
Section "Device"
Option "DRI" "True"
Option "XAANoOffscreenPixmaps" "True"
EndSection

Section "ServerLayout"
Option "AIGLX" "True"
EndSection

Section "Extensions"
        Option "Composite" "Enable"
EndSection

Section "DRI"
Group   0
Mode    0666
EndSection

------------------------
To be continue ...
  评论这张
 
阅读(1136)| 评论(0)

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2018