Captain's Universe Home
Captain's Universe Home
Cosmic Ray Muon DetectorTeleGarden Pages
Time on MarsBryophyllum Plants
Jupiter Radio AstronomyAncient Pages
Salzburg Tourist GuideEarth Magnetometer
  H O M E     AJAX & MORE     LINUX & MORE     RTAI     XENOMAI     ADEOS IPIPE      
    JAVA & BROWSERS     *NIX     ELECTRONICS     REVIEWS     ARTEMIA     FAIRY SHRIMP      


OpenBSD 3.7 Installation - Install Tutorial

Here are my notes for installing OpenBSD 3.7 (I guess that will also apply to the newly released OpenBSD 3.8)

First of all, download all files in /OpenBSD/3.X/i386/ from your favorite mirror.


Make the boot floppy (in linux of course ;-) :
# fdformat /dev/fd0
# dd if=floppy37.fs of=/dev/fd0 bs=32k
Boot from the floppy and follow those steps:
  rootdev=0x1100 rrootdev=0x2f00 rawdev=0x2f02
  erase ^?, werase ^W, kill ^U, intr ^C, status ^T
  (I)nstall, (U)pgrade or (S)hell? i

Specify terminal type: [vt220] Enter
Do you wish to select a keyboard encoding table? [no] Enter

Proceed with install? [no] y

  Available disks are: wd0.
  Which one is the root disk? (or done) [wd0] Enter

Do you want to use *all* of wd0 for OpenBSD? [no] y

Initial label editor (enter '?' for help at any prompt)
> p m
[...disk-info...]
16 partitions:
  #             size        offset  fstype [fsize bsize  cpg]
    a:       6149.9M          0.0M  unused      0     0      
    c:       6150.8M          0.0M  unused      0     0      
> 
You will note there is a c partition we seem to have ignored.
This partition is your entire hard disk; don't attempt to alter it.
> a a
offset: [63] Enter
size: [12596787] Enter
FS type: [4.2BSD] Enter
mount point: [none] /
> p m
[...disk-info...]
16 partitions:
  #             size        offset  fstype [fsize bsize  cpg]
    a:       6150.8M          0.0M  4.2BSD   2048 16384   16 # /      
    c:       6150.8M          0.0M  unused      0     0      
> q
Write new label?: [y] Enter

  The next step *DESTROYS* all existing data on these partitions!
  Are you really sure that you're ready to proceed? [no] y

  Enter system hostname (short form, e.g. 'foo'): cosmicray

  Configure the network? [yes] Enter
  Available interfaces are: xl0.
  Which one do you wish to initialize? (or 'done') [xl0] Enter
  Symbolic (host) name for fxp0? [cosmicray] Enter
  The default media for fxp0 is
          media: Ethernet autoselect (100baseTX full-duplex)
  Do you want to change the media options? [no] Enter
  IP address for xl0? (or 'dhcp') 192.168.0.3
  Netmask? [255.255.255.0] Enter
  No more interfaces to initialize.
  DNS domain name? (e.g. 'bar.com') [my.domain] cosmicrays
  DNS nameserver? (IP address or 'none') [none] Enter
  Default IPv4 route? (IPv4 address or 'none') none
  Edit hosts with ed? [no] Enter 
  Do you want to do any manual network configuration? [no] Enter

Password for root account? (will not echo) pAssWOrd
Password for root account? (again) pAssWOrd


Choosing installation media:

  Sets can be located on a (m)ounted filesystem; a (c)drom, (d)isk or (t)ape
  device; or a (f)tp, (n)fs or (h)ttp server.
  Where are the install sets? c
  Available CD-ROMs are: cd0.
  Which one contains the install media? (or 'done') [cd0] Enter
  Pathname to the sets?  (or 'done') [3.7/i386] .

[NOTE: . = root of CDROM if you burnt all files into the CD root]

  The following sets are available. Enter a filename, 'all' to select
  all the sets, or 'done'. You may de-select a set by prepending a '-'
  to its name.

          [X] bsd
          [X] bsd.rd
          [ ] bsd.mp
          [X] base37.tgz
          [X] etc37.tgz
          [X] misc37.tgz
          [X] comp37.tgz
          [X] man37.tgz
          [X] game37.tgz
          [ ] xbase37.tgz
          [ ] xetc37.tgz
          [ ] xshare37.tgz
          [ ] xfont37.tgz
          [ ] xserv37.tgz

  File Name? (or 'done') [bsd.mp] all

  The following sets are available. Enter a filename, 'all' to select
  all the sets, or 'done'. You may de-select a set by prepending a '-'
  to its name.

          [X] bsd
          [X] bsd.rd
          [X] bsd.mp
          [X] base37.tgz
          [X] etc37.tgz
          [X] misc37.tgz
          [X] comp37.tgz
          [X] man37.tgz
          [X] game37.tgz
          [X] xbase37.tgz
          [X] xetc37.tgz
          [X] xshare37.tgz
          [X] xfont37.tgz
          [X] xserv37.tgz

  File Name? (or 'done') [done] Enter
  Ready to install sets? [yes] Enter

[...]


  Sets can be located on a (m)ounted filesystem; a (c)drom, (d)isk or (t)ape
  device; or a (f)tp, (n)fs or (h)ttp server.
  Where are the install sets? (or 'done') [done] Enter

Finishing:

Start sshd(8) by default? [yes] y
Start ntpd(8) by default? [no] Enter
Do you expect to run the X Window System? [yes] y
Change the default console to com0? [no] Enter

  Saving configuration files......done.
  Generating initial host.random file ......done.
  What timezone are you in? ('?' for list) [Canada/Mountain] ?
[Set your timezone now]

The last steps are for the system to create the /dev directory (which may take a 
while on some systems, especially if you have a small amount of RAM), and install
the boot blocks.

  CONGRATULATIONS! Your OpenBSD install has been successfully completed!
  To boot the new system, enter halt at the command prompt. Once the
  system has halted, reset the machine and boot from the disk.
  # halt

  syncing disks... done

  The operating system has halted.
  Please press any key to reboot.

Now we've installed the OpenBSD base system. Now it's time to add some stuff, a FTP server, a shell text editor "nano" and of course "gcc" the GNU C compiler.


ADDING PACKAGES IN OPENBSD:

Download the pure-ftpd package from your favorite mirror and copy it to a floppy disk and copy it to the harddisk of the newly installed OpenBSD machine.

Then do this:
cosmicray# pkg_add -v pure-ftpd-1.0.20.tgz
parsing pure-ftpd-1.0.20
pure-ftpd-1.0.20: complete
In order to start Pure-FTPd at boot-time, add something like this to /etc/rc.local:
if [ -x /usr/local/sbin/pure-ftpd ]; then
  echo Starting Pure-FTPd
  /usr/local/sbin/pure-ftpd -A -B -H -u1000
fi
or start the FTP server manually:
cosmicray# /usr/local/sbin/pure-ftpd -A -B -H -u1000
If you desire, add some user(s) now:
cosmicray# adduser
[...]
Now we add the nano text editor:
# pkg_add -v nano-1.2.4p0.tgz
parsing nano-1.2.4p0
Dependencies for nano-1.2.4p0 resolve to: gettext-0.10.40p2, 
libiconv-1.9.2 (todo: libiconv-1.9.2,gettext-0.10.40p2)
nano-1.2.4p0:Can't find libiconv-1.9.2
/usr/sbin/pkg_add: libiconv-1.9.2:Fatal error
It seems we have some dependencies here, so download those packages and install them with pkg_add.


Now we install the GCC C compiler...
cosmicray# pkg_add -v gcc-3.4-20050225.tgz
parsing gcc-3.4-20050225
gcc-3.4-20050225: complete
... and we're ready to compile OpenBSD kernel modules. WAIT! Not really:
/usr/include/sys/systm.h:308:33: lib/libkern/libkern.h: No such file or directory
We need to install the kernel source:
Get sys.tar.gz from ftp://ftp.openbsd.org/pub/OpenBSD/3.7/
Untar it with:
# tar xzf sys.tar.gz
in /usr/src

NOW we're ready to compile kernel modules!

TROUBLESHOOTING:
modload: not loading symbols: kernel does not support symbol table loading: Operation not permitted
modload: can't reserve memory: Operation not permitted
--> change securelevel to -1 in /etc/rc.securelevel and reboot.

Last-Modified: Sat, 04 Feb 2006 16:03:05 GMT

Google
 
Web www.captain.at
go to top
© 1996-2010 . All rights reserved.
No reproduction, distribution, publishing or transmission of the copyrighted materials at this site is permitted. Policy
go to top