2009年3月9日星期一

OpenBSD4.4 配置 X-Windows

« Previous Entries Next Entries »
OpenBSD4.4 配置 X-Windows


* 首页
* RSS
* 链接
* 归档
* 星标日志
* 中山php
* 评论

« Previous Entries Next Entries »
OpenBSD4.4 配置 X-Windows
大 | 中 | 小
一、配置X
执行以下命令

# X -configure

生成/root/xorg.conf.new。进行测试:

# X -config /root/xorg.conf.new

修改配置文件(/root/xorg.conf.new),设置分辨率(红色内容):
引用

Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
... ...
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1024x768"
EndSubSection
EndSection

复制配置文件到系统默认配置中:

# cp /root/xorg.conf.new /etc/X11/xorg.conf

执行startx进入X了,缺省的窗口管理器是fvwm。

二、配置fvwm
在fvwm中增加alt+tab功能,以便与其他窗口管理器习惯一致。
编辑/usr/X11R6/lib/X11/fvwm/.fvwmrc,添加:

key Tab A M WindowList Root c c CurrentDesk, NonGeometry

三、设置Xterm
缺省Xterm不读取用户主目录下.profile文件,这通过编辑~/.Xdefaults来改变:

echo "XTerm*LoginShell: true" >> ~/.Xdefaults

或修改.profile的拥有者,其中username是你的用户名.

chown username ~username/.profile

ksh(1) does not appear to read my .profile!
四、设置PKG_PATH
编辑.profile,设置PKG_PATH环境变量:

export PKG_PATH=ftp://ftp.openbsd.org/pub/OpenBSD/4.4/packages/`machine -a`/

五、安装Firefox浏览器

# pkg_add -v mozilla-firefox

编辑/usr/X11R6/lib/X11/fvwm/.fvwmrc,在根菜单中增加firefox菜单项,放在xterm项后:

+ "Firefox" Exec exec firefox

参考文章 :
http://www.duangw.net/computer/work-env/real/openbsd-v4_3.html
http://www.openbsd.org/faq/faq8.html
相关日志
[转载]用msmtp替代esmtp作发信代理
小型的邮件发送
[转载]OpenBSD.Nginx.MySQL.PHP环境搭建手册[第一版]
Mysql配置解释

没有评论: