Sections
|
 |
 |
 |
Installing OpenBSD
The installation of OpenBSD is pretty easy and straightforward.
Setup I use:
- CPU: Intel Pentium-I 233MHz
- RAM: 128MB
- HD: 10GB, 15GB
- FD: 1,44"
- NIC: Realtek 8139, 3Com 3c905 100Base-TX
A log file of the installation process of OpenBSD 2.9 is
available here. It was retrieved
from a FTP mirror, not created by me. It is meant to give an
impression of how the installation process looks like. The
installation of OpenBSD 3.4 is just slightly different.
The OpenBSD v3.4 installation process went as follows (mail me
if I forget important steps and/or info):
- Connect to the nearest OpenBSD FTP mirror.
- Go to the
/pub/OpenBSD/3.4/i386 directory. Use something other than i386
if you install on an other platform.
- Retrieve the installation floppy image (floppy34.fs). This should be enough to start the
install in most situations.
- Burn the installation floppy to a floppy disk:
Example: dd if=floppy34.fs of=/dev/fd0
- Boot the system from the floppy disk.
- When asked for
/bin/sh just hit the enter key.
- For installation hit "i", for a upgrade "u". Only the installation
option is covered here. I like clean installs.
- If you'd like to use the complete disk for OpenBSD enter "yes".
- Now configure your OpenBSD disk slice. This is done by the label editor. Type "?" for help, "x"
to exit without saving changes and "q" to exit and save changes. To add an partition type "a x" where
"x"
is the partition you'd like to add. Type "p" to see all partions. Partition "a" is
often the / (root) partion, "b" is reserved for a potential swap partition, "c" is
a sort of symbolic partition representing the whole disk, the rest of the letters are free to (ab)use.
You would probably a separate partition for /, /tmp, /var,
/usr and /home. My suggestion
for a small (2G HD, 32MB RAM) home server/workstation system:
/ : 128 MB
swap : 128 MB
/tmp : 128 MB
/var : 256 MB
/usr : 1048 MB
/home : the rest
If you got the space, a 10G harddisk for instance and 64MB RAM, you could
do it like this:
/ : 128 MB
swap : 128 MB
/tmp : 512 MB
/var : 1024 MB
/usr : 2048 MB
/home : 1024 MB
/vol : the rest
With a real small server, say 1G HD and 16MB RAM, you could probably
do best by using this kind of layout:
/ : 64 MB
swap : 96 MB
/usr : the rest
And symlink /var, /tmp and /home
to respectively /usr/var, /usr/tmp and /usr/home.
Above layouts are rough indications and can vary enormously from system
to system. Database
servers might/should want a bigger /var for instance. A lot of users
wanting space for their files could warrant more space being allocated to /home.
Hit "q" to exit and save your configuration when done.
- The install process then presents a chance to initialize more disks (if found) via
the same process explained a step earlier. If you're satisfied with your disk(s),
enter "done" and hit return. The install process shows all partitions and
their respective mount points of all disks initialized for you to review. Hitting
return will show the next partition and its moint point. This is an endless loop.
When everything is okay, enter "done" and hit return, to escape the endless loop
and continue.
- The install formats your disks and partitions and continues by asking if
you'd like to setup networking. Answer the simple questions and hit return
at the default answer of no, when it asks if you'd like to
escape to a shell environment.
- The install mounts your partitions and asks for the root password. Type it
carefully and remember it! (-;
- Next, if you'd like to run the XFree86 X Window System, answer yes
to the question prompted. If your setting up a server, answering no will be
a good decision in most cases.
- Now, you're ready to download the base install files via FTP, HTTP and some
other neat protocols. Select your favourite and select which packages it should
install. To select or deselect a package simply type in the full name of it,
including the ending ".tgz".
- When you're done installing those nice tarballs answer no to
the "extract more sets" question. The install creates some files
in
/etc and lets you choose your timezone. Select a cool looking
zone and hit the return key.
- Finally, you're almost done! You only have to reboot the system now! But wait
until the install process tells you it's save, before doing that.
|