OpenBSD 5.0安装手记

OpenBSD 5.0最快的镜像站点是日本的jaist站点(我的是佛山的中国电信):jaist的OpenBSD镜像站点

1、下载install50.iso。

2、刻录ISO到光盘中,然后启动安装

3、安装好后,设置packages的镜像站点,在/etc/rc.local最后添加下面一行:

export PKG_PATH=http://ftp.jaist.ac.jp/pub/OpenBSD/5.0/packages/i386/

4、重启系统。

5、然后选择你要安装的包的名称,按如下方式安装:

pkg_add <package_name>

6、ok.

7.create xorg.conf as follow:

My xorg.conf(/etc/X11/xorg.conf):

Section "Module"
    Load        "dbe"     
    SubSection  "extmod"
      Option    "omit xfree86-dga"   
    EndSubSection
    Load        "freetype"
    Load   "glx"
    Load   "type1"
    Load   "extmod"
EndSection
Section "Files"
    FontPath   "/usr/share/fonts/misc/"
    FontPath   "/usr/share/fonts/100dpi/"
    FontPath   "/usr/share/fonts/75dpi/"
EndSection
Section "InputDevice"
    Identifier   "Keyboard1"
    Driver   "kbd"
    Option "AutoRepeat" "500 30"
    Option "XkbRules"   "xorg"
    Option "XkbModel"   "pc104"
    Option "XkbLayout"   "be"
EndSection
Section "InputDevice"
    Identifier   "Mouse1"
    Driver "mouse"
    Option "Name" "Microsoft Wheel Mouse Optical"
    Option "Buttons" "5"
    Option "Protocol" "explorerps/2"   
    Option "Device" "/dev/input/mice"
    Option "ZAxisMapping" "4 5"
EndSection
Section "Monitor"
    Identifier  "Screen"
    #HorizSync   50 - 60
    HorizSync   55.82
    #VertRefresh 55-60
    VertRefresh   59.76
    Option      "DPMS"
    UseModes   "1440x900"
    #ModeLine   "1440x900"    106.50   1440 1552 1704 1904    900  903  909  934 +hsync -vsync
EndSection
Section "Modes"
#Modes "1440x900" "1024x768"

#Modeline "1024x768_60.00" 64.11 1024 1080 1183 1344 768 769 772 795 -HSync +Vsync
#Modeline "1440x900_60.00" 106.47 1440 1520 1672 1904 900 901 904 932 -HSync +Vsync
    Identifier   "1440x900"
    Modeline   "1440x900"    106.47   1440 1520 1672 1904    900  901  904  932 -HSync +Vsync
EndSection
Section "Device"
    Identifier  "NVIDIA GeForce 2 MX/MX400"
    Driver      "nv"
EndSection
Section "Screen"
    Identifier  "Screen 1"
    Device      "NVIDIA GeForce 2 MX/MX400"
    Monitor     "Screen"
    DefaultDepth 24
    Subsection "Display"
        Depth       8
        Modes       "1280x1024" "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       16
        Modes       "1280x1024" "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth       24
        Modes       "1440x900" "1280x1024" "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
EndSection
Section "ServerLayout"
    Identifier  "Simple Layout"
    Screen "Screen 1"
    InputDevice "Mouse1" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"
EndSection

8.download fvwm-themes-0.7.0.tar.gz, tar xvfz it and then :

./configure
make
make install
9. download fvwm-themes-extra-0.7.0.tar.gz , and then:

fvwm-theme-config --site --install fvwm-themes-extra-0.7.0.tar.gz
10. now , to setup the xorg's startx:

vim ~/.xinitrc

fvwm-theme-start

11. flash player's setup:

This just in (from the openbsd-misc mailing list): The FlashVideoReplacer add-on for Firefox works in OpenBSD with the help of gecko-mediaplayer, which is now an OpenBSD package.

For OpenBSD, the testers reported this combination working in OpenBSD-current. I've since found that it works for Vimeo videos in OpenBSD 4.8-release and could very well work for YouTube in 4.9-release.

This just hit the openbsd-misc mailing list today, and I hope more reports to flow in over the next day or so, helping us figure out exactly what this Firefox add-on is capable of.

The package that makes this happen for OpenBSD, gecko-mediaplayer, is available for OpenBSD 4.8 in version 0.9.9.2.

Gecko-mediaplayer is at version 1.0.0 in snapshots today, and at the same rev in Ports.

Find out more about gecko-mediaplayer at the project home page.

So how do you get FlashVideoReplacer and gecko-mediaplayer working on your OpenBSD box?

(I use sudo, but you can always su to root if you wish):

This works with Firefox, so you need to have that:

$ sudo pkg_add -iv mozilla-firefox

Then install gecko-mediaplayer

$ sudo pkg_add -iv gecko-mediaplayer

Then you need to add the FlashVideoReplacer add-on

Running OpenBSD 4.8-release, the version of FlashVideoReplacer I found while searching in Tools - Add-ons within the Firefox version that shipped with OpenBSD did not work. Instead, I went tohttps://addons.mozilla.org/en-US/firefox/addon/flashvideoreplacer/ and clicked the "Add to Firefox" button. I'm not sure of the differences between the two add-ons, but the second method worked for me.

Once the add-on is installed you are prompted to restart Firefox. Do so.

When Firefox reloads, Go to Vimeo.com to try a video.

It works! Sometimes you get a Flash error message before the add-on takes over, and you then have to wait for the video to load, but once it does you can see and hear the video in surprisingly high quality.

At this point I went to YouTube. That didn't work. For a split second it looks like it will, but then you get the "upgrade Flash" message again.

Judging from the messages in openbsd-misc, it looks like this problem has been resolved in the newer versions of gecko-mediaplayer, and I figure you'll see better results in OpenBSD 4.9-release and OpenBSD-current.

12.

1. 首先的确认显卡驱动装没装好,
运行glxinfo | grep rendering

如果显示direct rendering: Yes,则已安装。


2. 用命令来看查看显示器的相关参数 (液晶的同学就可以不看了)
代码:
# ddcprobe | grep monitorrange

得到两个数值:
31-83   56-76
一个是水平扫描频率 31-83HZ
一个是垂直扫描频率 56-76HZ

3. /etc/X11/xorg.conf是X服务器的主要配置文件,修改它即可改变分辨率和刷新频率。

先备份,避免不测!

# cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup

4. 开始修改了
代码:
vi /etc/X11/xorg.conf

找到Section "Screen"段

添加两行到Section "Monitor"和EndSection中间,例如:

Section "Monitor"
    Identifier     "BenQ FP71G"
    Option         "DPMS"
    HorizSync       31-83    (为添加行)
    VertRefresh     56-76    (为添加行)
EndSection


(使用液晶的同学加也无所谓哦)
-----------------------------------------------------------

可是在“屏幕分辨率”窗口还是调不了刷新频率,分辨率倒是一堆。解决办法:
在Section "Screen"模块下的常用分辨率后加“_xx”(xx是你想要的刷新频率)。
还要注意一点,Section "Monitor"下的Identifier值要和Section "Screen"下的Monitor的值一致才行。一般只修改DefaultDepth值的色深后的分辨率即可,下边是例子:

Section "Screen"
    Identifier     "Default Screen"
    Device         "NVIDIA Corporation NV11DDR [GeForce2 MX 100 DDR/200 DDR]"
    Monitor        "BenQ FP71G"
    DefaultDepth    24
    SubSection     "Display"
        Depth       1
        Modes      "1280x1024"
    EndSubSection
    SubSection     "Display"
        Depth       4
        Modes      "1280x1024"
    EndSubSection
    SubSection     "Display"
        Depth       8
        Modes      "1280x1024"
    EndSubSection
    SubSection     "Display"
        Depth       15
        Modes      "1280x1024"
    EndSubSection
    SubSection     "Display"
        Depth       16
        Modes      "1280x1024"
    EndSubSection
    SubSection     "Display"
        Depth       24
        Modes      "1280x1024_60"
    EndSubSection
EndSection

保存退出,重启X即可;(Ctrl+ALT+Backspace)

5. 其他相关命令:

运行xrandr可以看到现在的分辨率和刷新频率等信息.

按住 Ctrl +Alt + Backspace 重启 X

sudo ddcprobe可以查看当前支持的分辨率和刷新频率,你也可以用gtf和sudo ddcprobe | grep monitorrange来对比查看,例如:gtf gtf 1280 1024 60

# 1280x1024 @ 60.00 Hz (GTF) hsync: 63.60 kHz; pclk: 108.88 MHz
Modeline "1280x1024_60.00" 108.88 1280 1360 1496 1712 1024 1025 1028 1060 -HSync +Vsync

看hsync和pclk后的值是否在得出的那两个数值之内即可。


-----------------------------------------------------------

如果想更改登录界面的分辨率可以把每个色深后的不用的分辨率都删掉就ok了:




----------------------------------------------------------------------------------------------------------------------------

安装Gnome:


pkg_add -v gnome-desktop-2.24.3p3.tgz
pkg_add -v gnome-session-2.24.3p4.tgz
3、为了让以后开机启动Gnome Display Manager,作如下设置:
#vi /etc/rc.local

#------------gdm-2.20.9p5-----------------
#To enable the GNOME Display Manger,add the following lines to the
#/et/rc.local file:
if [ -x /usr/local/sbin/gdm ];then
   echo -n 'gdm';    /usr/local/sbin/gdm
fi
编辑完后按Esc键,再shift+:wq Enter保存并退出。

4、然后:

#echo "exec gnome-session" > ~/.xinitrc
5、最后,执行startx进入gnome!
#startx
6、分辨率的设置,openbsd下也可以用xrandr命令,如下:

xrandr -s 1024x768

7、OK.


--------------------安裝 fvwm -------------------------
安装之前下载相关的包:

安裝fvwm
#tar zxvf fvwm-2.4.20.tar.gz
#cd fvwm-2.4.20
#./configure --prefix=/usr/share/fvwm --with_enable_multibyte
#make
#make install
安裝fvwm-themes
#tar zxvf fvwm-themes-0.6.2.tar.gz
#cd fvwm-themes-0.6.2
#./configure
#make
#make install
安裝fcitx
#tar zxvf fcitx-3.4.2.tar.bz2
#cd fcitx-3.4.2
#./configure
#make
#make install
-----環境設置-----
#cat >> .xinitrc
export LANG=zh_CN.GBK
export LC_CTYPE=zh_CN.GBK
export XMODIFIERS='@im=fcitx'
exec fcitx&
exec fvwm-themes-start
#Ctrl+D
#startx

===================================
关于fvwm的一些教程:
1、FVWM简明教程:http://docs.huihoo.com/homepage/shredderyin/fvwm.html#startfunc
2、Xwindow 教程:http://docs.huihoo.com/homepage/shredderyin/x.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值