How To Install OpenBSD Step By Step + KDE Desktop

Today , Lets take a look to openbsd installation .
but first a little explanation about OpenBSD :
OpenBSD is a Unix-like computer operating system descended from Berkeley Software Distribution (BSD), a Unix derivative developed at the University of California, Berkeley. It was forked from NetBSD by project leader Theo de Raadt in late 1995. The project is widely known for the developers’ insistence on open-source code and quality documentation, uncompromising position on software licensing, and focus on security and code correctness. The project is coordinated from de Raadt’s home in Calgary, Alberta, Canada. Its logo and mascot is a pufferfish named Puffy.
OpenBSD includes a number of security features absent or optional in other operating systems, and has a tradition in which developers audit the source code for software bugs and security problems. The project maintains strict policies on licensing and prefers the open-source BSD licence and its variants—in the past this has led to a comprehensive licence audit and moves to remove or replace code under licences found less acceptable
in addition about openbsd security
Only two remote holes in the default install since 1996 :O
and no need to explain its amazing .
Ok Leave this part . if you need more information you can collect information from official site or wikipedia . there are good references.
And now how install it with KDE Desktop
Please Click On More To Read Continuance
first you need download your image from openbsd.org
i suggest download amd64 version but its your choice you can download another one .
now when i writing this post the last version released by openbsd is 4.9 and you can download it from here :
http://ftp.openbsd.org/pub/OpenBSD/4.9/
Direct link for amd64 CD image : http://ftp.openbsd.org/pub/OpenBSD/4.9/amd64/install49.iso
OpenBSD Installation :
you can install it on your pc box or virtual box :
first boot your computer or virtual box with downloaded image or cd .
you seen :
Welcome to the OpenBSD/amd64 installation program. (I)nstall, (U)pgrade or (S)hell?
Write I and Press Enter
Next choose your keyboard layout :
Choose your keyboard Layout
Select and Press Enter
Next enter machine name for example crashbsd :
System hostname ?
Crashbsd{Enter}
Ok Now configure for network :
Available network interfaces are: em0 vlan0
Which one do you wish to configure? (or 'done') [em0]
{Press Enter}
IP adress v4 for em0? (or 'dhcp' or 'none') [dhcp]
{Press Enter}
IPv6 address for em0? (or 'rtsol' or 'none') [none]
{Press Enter}
IPv6 prefix length for em0? [64]
{Press Enter}
Available network interfaces are: em0 vlan0
Which one do you wish to configure? (or 'done') [done]
{Press Enter}
Do you want to add any manual network configuration? [no]
{Press Enter}
Now choose your root password ( Choose Storng Password But Please Remember it
)
Password for root account? (will not echo)
(rootpassword){Enter}
Password for root account? (again)
(rootpassword){Enter}
Choose default for next questions .
Start sshd(8) by default? [yes]
{Press Enter}
Start ntpd(8) by default? [no]
{Press Enter}
in this step choose yes and press enter
Do you expect to run the X Window System? [yes]
{Press Enter}
choose no for this step because we want install KDE Environment in next step .
Do you want the X Window System to be started by xdm(1)? [no]
{Press Enter}
You can add another user in this step
Setup a user? (Enter a lowercase login name, or 'no') [no]
ircrash{Press Enter}
Full user name for ircrash? [ircrash]
Khashayar Fereidani
Password for ircrash account? (will not echo)
(user-password){Press Enter}
Password for ircrash account? (again)
(user-password){Press Enter}
Since you set up a user, disable sshd(8) logins to root? [yes]
{Press Enter}
Define your timezone here ,
What timezone are you in?
{Enter}
you can select install openbsd in which hard disk . ( if you have multiple hard disks )
Available disks are: wd0
Which one is the root disk? (or 'done') [wd0]
{Enter}
Now you can select whole of hard disk or edit partitions .
Warning , if you have important information in your hard disk Press E and Edit Your hard disk . if you use W , you will lose all information you have on disk .
MBR has invalid signature; not showing it.
Use (W)hole disk or (E)dit the MBR? [whole]
{Enter}
Ok now you can choose your source for installation .
Lets install the sets!
Location of sets? (cd disk ftp http or 'done') [cd]
{Enter}
Available CD-ROMs are: cd0
Which one contains the install media? (or 'don') [cd0]
{Enter}
Pathname of the sets? (or 'done') [4.8/amd64]
{Enter}
Set name(s)? (or 'abort' or 'done') [done]
bsd.mp{Enter}
Set name(s)? (or 'abort' or 'done') [done]
{Enter}
installation of sets, maybe take a while
Just press enter
Location of sets? (cd disk ftp http or 'done') [done]
{Enter}
press enter again
Time appears wrong. Set to (date of day)? [yes]
{Enter}
Congratulation , you successfully install OpenBSD , Now write reboot and press enter.
reboot
KDE Installation :
Ok Remove CD or Disk Image login to system and follow this commands :
in openbsd we can install programs by tar.gz package developed by openbsd official website or compile programs directly ( If possible )
for install by openbsd official package in openbsd we user pkg_add command .
in openbsd like another unix like systems we have some environment variable . pkg_add source path environment variable is PKG_PATH .
you have 2 choice for install packages .
first download all of them and save theme to a path on your openbsd box .
our better way
:
set path to one of online ftp servers to download and install directly from them .
now please follow this commands : ( if you use amd64 and Openbsd 4.9 )
# export PKG_PATH=ftp://ftp.openbsd.org/pub/OpenBSD/4.9/packages/amd64/
ok now system ready to install packages .
you require these packages for KDE Desktop :
- kdebase
- kdelibs
- kdeaddons
- kdeadmin
- kdeartwork
- kdeedu
- kdegames
- kdegraphics
- kdemultimedia
- kdenetwork
- kdepim
- kdesdk
- kdetoys
- kdeutils
- kdeaccessibility
ok so run this command (take a while to install ):
#pkg_add kdebase kdelibs kdeaddons kdeadmin kdeartwork kdeedu kdegames kdegraphics kdemultimedia kdenetwork kdepim kdesdk kdetoys kdeutils kdeaccessibility
Congratulation you install KDE Desktop Successfully ,
now you can start KDE by :
startkde
thank you for reading, i wish it will be helpful .
if you have question send them by comment ,
# Khashayar Fereidani / 2011 Sep

Nice, your tutorial made me easier to collect info before installing.