Installation rapide d'une installation OpenBSD avec l'install42.iso

rootdev=0x1100 rrootdev=0x2f00 rawdev=0x2f02
erase ^?, werase ^W, kill ^U, intr ^C, status ^T
(I)nstall, (U)pgrade or (S)hell? I

Prendre Install.

Specify terminal type: [vt220] Entrée
kdb(8) mapping? ('?' for list) [none] fr

fr et on valide :

Proceed with install? [no] yes

Partie disque dur

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] yes

Là, je prends tout le disque pour OpenBSD et le partitionnement sera :

/     1024m
swap  512m
/tmp  512m
/var  2048m
/usr  8192m
/home <le reste>

Définir les partition avec fdisk, ce qui doit donner quelque chose comme ca :

# disklabel wd0
# Inside MBR partition 3: type A6 start 63 size 80405262
# /dev/rwd0c:
type: ESDI
disk: ESDI/IDE disk
label: IC35L040AVER07-0
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 5005
total sectors: 80418240
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0 

6 partitions:
#                size           offset  fstype [fsize bsize  cpg]
a:          2104452               63  4.2BSD   2048 16384    1 
b:          1060290          2104515    swap                   
c:         80418240                0  unused      0     0      
d:          1060290          3164805  4.2BSD   2048 16384   16 
e:          4209030          4225095  4.2BSD   2048 16384   16 
f:         16787925          8434125  4.2BSD   2048 16384   16 
g:         55183275         25222050  4.2BSD   2048 16384   16

Le disque va être partitioner et les points de montage créés.

Partie réseau

Nom de la machine :

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

Les cartes réseau, ici 3 cartes, 2 intel et une carte wifi linksys :

Configure the network? [yes] Enter
Available interfaces are: fxp0 ral0 fxp1.

Symbolic (host) name for fxp0? [tuxic] Enter
The default media for fxp0 is
         media: Ethernet autoselect (100baseTX full-duplex)
Do you want to change the default media? [no] Enter

IP address for fxp0? (or 'dhcp') 172.172.172.1
Netmask? [255.255.255.0] Enter
IPv6 address for fxp0? (or 'rtsol' or 'none') [none]
No more interfaces to initialize.

et ainsi de suite pour chaque interface, on finalise en configurant dns, passerelle, etc.

DNS domain name? (e.g. 'bar.com') [my.domain] example.com
DNS nameserver? (IP address or 'none') [none] 172.172.172.172 172.172.172.173
Use the nameserver now? [yes] Enter

Default route? (IP address, 'dhcp' or 'none') 192.172.172.1
add net default: gateway 192.168.0.254
Edit hosts with ed? [no] Enter
Do you want to do any manual network configuration? [no] Enter

Installation système

Définir le mot de passe root :

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

Choisir une méthode d'intallation :

Let's install the sets!
Location of sets? (cd disk ftp http or 'done') [cd] ftp

Choisir un mirroir et sélectionner les paquets de base, supprimer ce qui est inutile pour faire une passerelle :

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] 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

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

Pour supprimer un set, taper :

-game42.tgz

Les autres nous seront utiles. On peut même rajouter **xbase42.tgz** si vous comptez installer vim, hé oui c'est pas logique du tout, cela va être changé dans la 4.3 mais la dépendance expat fait partie de xbase42.tgz, elle va être déplacée dans base43.tgz dans la prochaine version.

Démarrage automatique de ssh :

Start sshd(8) by default? [yes]

Démon ntp :

NTP server? (or 'none' or 'default') [none] default

Serveur X?

Do you expect to run the X Window System? [yes] no

Console sur série?

Change the default console to com0? [no] Enter

Définition de la timezone :

What timezone are you in? ('?' for list) [Canada/Mountain] ? Europe/Paris
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.
 #

Voilà, c'est fini, rebooter et y'a plus qu'a :)