OpenBSD 5.0 Installation notes

Source: Internet
Author: User

The fastest image site in OpenBSD 5.0 is jaist in Japan (my website is China Telecom in Foshan): jaist's OpenBSD image site

1. Download install50.iso.

2. Burn ISO to the CD and start Installation

3. After installation, set the packages image site and add the following line at the end of/etc/rc. Local:

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

4. restart the system.

5. Select the name of the package to be installed and install it as follows:

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"EndSectionSection "Files"    FontPath   "/usr/share/fonts/misc/"    FontPath   "/usr/share/fonts/100dpi/"    FontPath   "/usr/share/fonts/75dpi/"EndSectionSection "InputDevice"    Identifier   "Keyboard1"    Driver   "kbd"    Option "AutoRepeat" "500 30"    Option "XkbRules"   "xorg"    Option "XkbModel"   "pc104"    Option "XkbLayout"   "be"EndSectionSection "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"EndSectionSection "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 -vsyncEndSectionSection "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 +VsyncEndSectionSection "Device"    Identifier  "NVIDIA GeForce 2 MX/MX400"    Driver      "nv"EndSectionSection "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    EndSubsectionEndSectionSection "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:

./configuremakemake 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 ~/.xinitrcfvwm-theme-start

11. Flash Player's setup:

This just in (from
The OpenBSD-MISC mailing list):
Flashvideoreplacer add-on for Firefox works in OpenBSD with the help
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
Vimeo videos in OpenBSD 4.8-release and cocould 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.

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
The same Rev in ports.

Find out more about Gecko-mediaplayer at
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 ships 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. First confirm that the video card driver is not installed,
Run glxinfo | grep Rendering

If direct rendering: Yes is displayed, it is installed.

2. Run the command to view the relevant parameters of the Monitor (the LCD staff will not be able to view the parameters)
Code:
# Ddcprobe | grep monitorrange

Two values are obtained:
31-83 56-76
One is horizontal Scan Frequency 31-83Hz
One is Vertical Scan Frequency 56-76Hz

3./etc/X11/Xorg. conf is the main configuration file of X server. modify it to change the resolution and refresh frequency.

Back up first to avoid unexpected events!

# Cp/etc/X11/Xorg. CONF/etc/X11/Xorg. conf_backup

4. Modification started.
Code:
VI/etc/X11/Xorg. conf

Locate section "screen" section

Add two rows to the center of section "Monitor" and endsection, for example:

Section "Monitor"
Identifier "BenQ fp71g"
Option "dpms"
Horizsync 31-83 (add row)
Vertrefresh 56-76 (add row)
Endsection

(It doesn't matter if you use LCD)
-----------------------------------------------------------

However, in the "Screen Resolution" window, the refresh frequency still cannot be adjusted, but the resolution is a bunch. Solution:
Add "_ xx" after the common resolution in section "screen" module (XX is the desired refresh frequency ).
Note that the Identifier value under section "Monitor" must be consistent with the value of monitor under section "screen. Generally, only the resolution after the ultdepth value is modified. Below is an example:

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

Save and exit. Restart X. (CTRL + ALT + backspace)

5. Other related commands:

Run xrandroid to view the current resolution and refresh frequency.

Press CTRL + ALT + backspace to restart x

Sudo ddcprobe can view the resolution and refresh frequency currently supported. You can also use GTF and sudo ddcprobe | grep monitorrange for comparison and view, for example: GTF 1280 1024 60

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

Check whether the values after hsync and pclk are within the two obtained values.

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

If you want to change the resolution of the logon interface, you can delete all unnecessary resolutions after each color depth:

Bytes ----------------------------------------------------------------------------------------------------------------------------

Install gnome:

pkg_add -v gnome-desktop-2.24.3p3.tgz
pkg_add -v gnome-session-2.24.3p4.tgz

3. To enable gnome Display Manager to start later, make the following settings:

#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/gdmfi
After editing, Press ESC, and then SHIFT +: WQ enter to save and exit.

4. Then:

#echo "exec gnome-session" > ~/.xinitrc

5. Finally, run startx to enter gnome!

#startx

6. Set the resolution. You can use the xrandroid command in OpenBSD as follows:

xrandr -s 1024x768

7. OK.

-------------------- An Yi FVWM -------------------------
Download related packages before installation:

Anw.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
Anw.fvwm-themes
# Tar zxvf fvwm-themes-0.6.2.tar.gz
# Cd fvwm-themes-0.6.2
#./Configure
# Make
# Make install
Security shield fcitx
# Tar zxvf fcitx-3.4.2.tar.bz2
# Cd fcitx-3.4.2
#./Configure
# Make
# Make install
----- Setting environment -----
# 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

==========================================
Some tutorials on FVWM:
1. FVWM concise Tutorial: http://docs.huihoo.com/homepage/shredderyin/fvwm.html#startfunc
2, XWindow Tutorial: http://docs.huihoo.com/homepage/shredderyin/x.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.