OpenBSD 5.0安装手记
2011-11-09 16:21
274 查看
OpenBSD 5.0最快的镜像站点是日本的jaist站点(我的是佛山的中国电信):jaist的OpenBSD镜像站点
1、下载install50.iso。
2、刻录ISO到光盘中,然后启动安装
3、安装好后,设置packages的镜像站点,在/etc/rc.local最后添加下面一行:
4、重启系统。
5、然后选择你要安装的包的名称,按如下方式安装:
6、ok.
7.create xorg.conf as follow:
My xorg.conf(/etc/X11/xorg.conf):
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:
[align=left]
[align=left]
编辑完后按Esc键,再shift+:wq Enter保存并退出。
4、然后:
[align=left]
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
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" EndSection8.download fvwm-themes-0.7.0.tar.gz, tar xvfz it and then :
./configure make make install9. download fvwm-themes-extra-0.7.0.tar.gz , and then:
fvwm-theme-config --site --install fvwm-themes-extra-0.7.0.tar.gz10. 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:
[align=left]
pkg_add -v gnome-desktop-2.24.3p3.tgz[/align]
[align=left]
pkg_add -v gnome-session-2.24.3p4.tgz3、为了让以后开机启动Gnome Display Manager,作如下设置:[/align]
#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、然后:
[align=left]
#echo "exec gnome-session" > ~/.xinitrc5、最后,执行startx进入gnome![/align]
#startx6、分辨率的设置,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
相关文章推荐
- openBSD4.1安装手记(图解)
- CentOS 5.0 LAMP 安装手记
- PushToTest TestMaker 5.0 安装手记
- vSphere 5 安装手记系列之二-VMware vSphere Client 5.0 的安装与设置
- [VMware] vSphere 5 安装手记[2]-VMware vSphere Client 5.0 的安装与设置
- Materials Studio 5.0 LINUX 版小集群并行安装手记
- [置顶] 龙芯2f笔记本- openbsd5.4安装手记
- 将U盘启动5.0无损安装至移动硬盘某分区
- GENTOO 安装手记(转)
- 让Linux不再古老---蓝牙安装手记
- 2.VMware vsphere 5.0新体验-安装ESXi
- ubuntu14.04系统中安装tensorflow(gpu版)cuda-8.0 + cudann(5.0 or 6.0)
- Virtualbox安装使用手记
- 在Vista下安装Mysql 5.0
- 银河麒麟KYLIN--安装手记
- 红旗Linux安装手记
- Mac 安装Elasticsearch 5.0
- 远程安装oracle 10.2.1 for redhat 5.0 2.6.18-53.el5xen【转】
- JBoss 5.0 安装与配置详解