Počevši od verzije 4.2 OpenBSD projekat se postarao da stavi ISO image na svoju zvaničnu web-stranicu ali isključivo za i386 arhitekturu tako da ftp instalacija vise nije nuzna.
Ubacite ISO image u CD/DVD-ROM i rebutujte kompjuter. Na ekranu će se pojaviti
root on rd0a swap on rd0b dump on rd0b erase ^?, werase ^W, kill ^U, intr ^C, status ^T (I)nstall, (U)pgrade or (S)hell? i
Ukucajte i naravno. Pojaviće se naredni ekran.
Welcome to the OpenBSD/i386 4.2 install program.
This program will help you install OpenBSD. At any prompt except password
prompts you can escape to a shell by typing '!'. Default answers are shown
in []'s and are selected by pressing RETURN. At any time you can exit this
program by pressing Control-C, but exiting during an install can leave your
system in an inconsistent state.
Terminal type: [vt220] Enter
kbd(8) mapping? ('L' for list) [none] Izaberite tastaturu ja koristim americku tako da je Enter dovoljan
Naredno pitanje
IS YOUR DATA BACKED UP? As with anything that modifies disk contents, this program can cause SIGNIFICANT data loss. It is often helpful to have the installation notes handy. For complex disk configurations, relevant disk hardware manuals and a calculator are useful. Proceed with install? [no] y
Na narednom ekranu će se pojaviti
Cool! Let's get to it... You will now initialize the disk(s) that OpenBSD will use. To enable all available security features you should configure the disk(s) to allow the creation of separate filesystems for /, /tmp, /var, /usr, and /home. Available disks are: wd0. Which one is the root disk? (or done) [wd0] Enter
wd0 je prvi IDE/SATA Hard Drive. SCSI Hard-Drives su listani kao sc0 uključujući i IDE ZIP drives.
Do you want to use *all* of wd0 for OpenBSD? [no] yes
OpenBSD je sasvim dovoljan vasem računaru
Ako vam treba Windows ili Linux koristite Windows ili Linux
onda vam OpenBSD ne treba.
Naredni korak je kreiranje disklabel-a. U ovom primeru pretpostvićemo da je hard disk samo 10Gb.
Kucajte
> p
da vidite postojecu particiju.
# size offset fstype [fsize bsize cpg]
a: 17593.2M 1498.7M unused 0 0
c: 19092.9M 0.0M unused 0 0
> d a
> a a
offset: [64] Enter
size: [36030960] 150m
Rounding to cylinder: 317520
FS type: [4.2BSD] Enter
mount point: [none] /
> a b
offset: [3386880] Enter
size: [35713440] 300m
Rounding to cylinder: 619920
FS type: [swap] Enter
> a d
offset: [4006800] Enter
size: [35093520] 120m
Rounding to cylinder: 257040
FS type: [4.2BSD] Enter
mount point: [none] /tmp
> a e
offset: [4263840] Enter
size: [34836480] 80m
Rounding to cylinder: 166320
FS type: [4.2BSD] Enter
mount point: [none] /var
> a g
offset: [4430160] Enter
size: [34670160] 6g
Rounding to cylinder: 12594960
FS type: [4.2BSD] Enter
mount point: [none] /usr
> a h
offset: [17025120] Enter
size: [22075200] 4g
Rounding to nearest cylinder: 8391600
FS type: [4.2BSD] Enter
mount point: [none] /home
> p m
device: /dev/rwd0c
type: ESDI
disk: ESDI/IDE disk
label: ST320011A
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 240
sectors/cylinder: 15120
cylinders: 2586
total bytes: 19092.9M
free bytes: 6681.4M
rpm: 3600
16 partitions:
# size offset fstype [fsize bsize cpg]
a: 155.0M 1498.7M 4.2BSD 2048 16384 16 # /
b: 302.7M 1653.8M swap
c: 19092.9M 0.0M unused 0 0
d: 125.5M 1956.4M 4.2BSD 2048 16384 16 # /tmp
e: 81.2M 2082.0M 4.2BSD 2048 16384 16 # /var
g: 6149.9M 2163.2M 4.2BSD 2048 16384 16 # /usr
h: 4097.5M 8313.0M 4.2BSD 2048 16384 16 # /home
> q
Write new label?: [y] Enter
Ako vam je disk veliki sledeća elementarna pravila su dovoljna da kreirate disklabel.
swap je po pravilu 2X RAM memorija. Budite izdašni za / i dajte mu 1Gb. Takodje za /tmp.
Paketi su instalirani u /usr tako da budete na sigurnoj strani dajte mu 20Gb.
U zavisnosti od toga dali koristite OpenBSD za mail server kome je potreban bih log fajl koji je u /var
ili desktop (NFS server recimo) gde su svi nalozi korisnika u /home najveći deo preostalog diska će te dodeliti
ili /var ili /home
Finalna konfiguracija
Mount point for wd0d (size=128520k)? (or 'none' or 'done') [/tmp] Enter Mount point for wd0e (size=83160k)? (or 'none' or 'done') [/var] Enter Mount point for wd0g (size=6297480k)? (or 'none' or 'done') [/usr] Enter Mount point for wd0h (size=4195800k)? (or 'none' or 'done') [/home] Enter Mount point for wd0d (size=128520k)? (or 'none' or 'done') [/tmp] done No more disks to initialize. OpenBSD filesystems: wd0a / wd0d /tmp wd0e /var wd0g /usr wd0h /home The next step *DESTROYS* all existing data on these partitions! Are you really sure that you're ready to proceed? [no] y newfs: reduced number of fragments per cylinder group from 19840 to 19760 to enl arge last cylinder group /dev/rwd0a: 155.0MB in 317520 sectors of 512 bytes 5 cylinder groups of 38.59MB, 2470 blocks, 4992 inodes each newfs: reduced number of fragments per cylinder group from 16064 to 15992 to enl arge last cylinder group /dev/rwd0d: 125.5MB in 257040 sectors of 512 bytes 5 cylinder groups of 31.23MB, 1999 blocks, 4096 inodes each newfs: reduced number of fragments per cylinder group from 10392 to 10344 to enl arge last cylinder group /dev/rwd0e: 81.2MB in 166320 sectors of 512 bytes 5 cylinder groups of 20.20MB, 1293 blocks, 2688 inodes each /dev/rwd0g: 6149.9MB in 12594960 sectors of 512 bytes 31 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each /dev/rwd0h: 4097.5MB in 8391600 sectors of 512 bytes 21 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each /dev/wd0a on /mnt type ffs (rw, asynchronous, local, ctime=Tue Oct 23 00:55:20 2 007) /dev/wd0h on /mnt/home type ffs (rw, asynchronous, local, nodev, nosuid, ctime=T ue Oct 23 00:55:20 2007) /dev/wd0d on /mnt/tmp type ffs (rw, asynchronous, local, nodev, nosuid, ctime=Tu e Oct 23 00:55:20 2007) /dev/wd0g on /mnt/usr type ffs (rw, asynchronous, local, nodev, ctime=Tue Oct 23 00:55:20 2007) /dev/wd0e on /mnt/var type ffs (rw, asynchronous, local, nodev, nosuid, ctime=Tu e Oct 23 00:55:20 2007)
Svaka Unix mašina ima ime.
System hostname (short form, e.g. 'foo'): oko
Zadnji korak je konfiguracija mreže. Pretpostavićemo da vaš Internet provajder omogućuje DHCP konfiguraciju.
Configure the network? [yes] Enter
Available interfaces are: fxp0 xl0.
Which one do you wish to initialize? (or 'done') [fxp0] xl0
Symbolic (host) name for xl0? [oko] Enter
The media options for xl0 are currently
media: Ethernet autoselect (100baseTX full-duplex)
Do you want to change the media options? [no] Enter
IPv4 address for xl0? (or 'dhcp') 192.168.1.254
Netmask? [255.255.255.0] Enter
IPv6 address for xl0? (or 'rtsol' or 'none') [none] Enter
Available interfaces are: fxp0.
Which one do you wish to initialize? (or 'done') [fxp0] Enter
Symbolic (host) name for fxp0? [oko] Enter
The media options for fxp0 are currently
media: Ethernet autoselect (10baseT half-duplex)
Do you want to change the media options? [no] Enter
IPv4 address for fxp0? (or 'none' or 'dhcp') dhcp
Issuing hostname-associated DHCP request for fxp0.
DHCPDISCOVER on fxp0 to 255.255.255.255 port 67 interval 1
DHCPOFFER from 73.34.136.1
DHCPREQUEST on fxp0 to 255.255.255.255 port 67
DHCPACK from 73.34.136.1
bound to 69.241.244.76 -- renewal in 1800 seconds.
IPv6 address for fxp0? (or 'rtsol' or 'none') [none] Enter
No more interfaces to initialize.
DNS domain name? (e.g. 'bar.com') [my.domain] bagdala.net
DNS nameserver? (IP address or 'none') [68.87.77.130 68.87.72.130] Enter
Use the nameserver now? [yes] Enter
Default route? (IP address, 'dhcp' or 'none') [dhcp] Enter
Edit hosts with ed? [no] Enter
Do you want to do any manual network configuration? [no] Enter
Sada predstoji kreiranje root naloga
Password for root account? (will not echo) pAssWOrd Password for root account? (again) pAssWOrd
U narednom koraku će odabrati gde se nalaze instalacione binaries.
Let's install the sets! Location of sets? (cd disk ftp http or 'done') [cd] Enter Available CD-ROMs are: cd0.
Za FTP instalaciju ukucajte FTP.
Available CD-ROMs are: cd0. Which one contains the install media? (or 'done') [cd0] Enter Pathname to the sets? (or 'done') [4.2/i386] Enter
Da ste izabrali FTP instalaciju u prethodnom koraku bi izabrali FTP server sa koga skidate OS.
Izbor delova operativnog sistema
Select sets by entering a set name, a file name pattern or 'all'. De-select
sets by prepending a '-' to the set name, file name pattern or 'all'. Selected
sets are labeled '[x]'.
[X] bsd
[X] bsd.rd
[ ] bsd.mp
[X] base42.tgz
[X] etc42.tgz
[X] misc42.tgz
[X] comp42.tgz
[X] man42.tgz
[X] game42.tgz
[ ] xbase42.tgz
[ ] xetc42.tgz
[ ] xshare42.tgz
[ ] xfont42.tgz
[ ] xserv42.tgz
Set name? (or 'done') [bsd.mp] all
[X] bsd
[X] bsd.rd
[X] bsd.mp
[X] base42.tgz
[X] etc42.tgz
[X] misc42.tgz
[X] comp42.tgz
[X] man42.tgz
[X] game42.tgz
[X] xbase42.tgz
[X] xetc42.tgz
[X] xshare42.tgz
[X] xfont42.tgz
[X] xserv42.tgz
Mi smo izabrali kompletan sistem posto ćemo biti Desktop korisnici.
Set name? (or 'done') [done] Enter Ready to install sets? [yes] Enter Getting bsd ... 100% |**************************************************| 6083 KB 00:06 Getting bsd.rd ... 100% |**************************************************| 4949 KB 00:03 Getting bsd.mp ... 100% |**************************************************| 6130 KB 00:04 Getting base42.tgz ... 100% |**************************************************| 41604 KB 00:37 Getting etc42.tgz ... 100% |**************************************************| 1211 KB 00:01 Getting misc42.tgz ... 100% |**************************************************| 2239 KB 00:02 Getting comp42.tgz ... 100% |**************************************************| 76957 KB 01:04 Getting man42.tgz ... 100% |**************************************************| 7477 KB 00:08 Getting game42.tgz ... 100% |**************************************************| 2547 KB 00:02 Getting xbase42.tgz ... 100% |**************************************************| 11702 KB 00:10 Getting xetc42.tgz ... 100% |**************************************************| 75398 00:00 Getting xshare42.tgz ... 100% |**************************************************| 2488 KB 00:04 Getting xfont42.tgz ... 100% |**************************************************| 34745 KB 00:27 Getting xserv42.tgz ... 100% |**************************************************| 10108 KB 00:08 Location of sets? (cd disk ftp http or 'done') [done] Enter
Zavrsna konfiguracija. Instaler će vam postaviti pitanje o stvarima kao što su SSH ili sinhronizacija časovnika.
Start sshd(8) by default? [yes] y
NTP server? (or 'none' or 'default') [none] default
Do you expect to run the X Window System? [no] y
Change the default console to com0? [no] Enter
What timezone are you in? ('?' for list) [Canada/Mountain] US
Select a sub-timezone of 'US' ('?' for list): Arizona
Finale
Making all device nodes...done. Installing boot block... boot: /mnt/boot proto: /usr/mdec/biosboot device: /dev/rwd0c /usr/mdec/biosboot: entry point 0 proto bootblock size 512 /mnt/boot is 3 blocks x 16384 bytes fs block shift 2; part offset 3069360; inode block 24, offset 3624 using MBR partition 1: type 166 (0xa6) offset 3069360 (0x2ed5b0) done. 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.
Izvadite CD i ributujte kompjuter koji je u ekstazi zbog novog operativnog sistema.
Minimalna post-installaciona konfiguracija se sastoji od izvrsavanja skripta
#adduser
koji će vam omogućiti da dodate obične korisnike uključujući jedan nalog za vas jer kompjuter
netreba koristiti sa root nalogom.
Ne zaboravite da sebe stavite u wheel group da bi mogli da koristite supper korisnički nalog.
Takođe preporučujemo da pročitate # afteboot za fenomenalne post-instalacione savete.