Instalacion de OpenBSD 4.3
Instalacion de OpenBSD 4.3

Este manual es una modificación de la guía de instalación de OpenBSD.org Traducida y resumida por FlingeR al español para bootear desde un diskette floppy o CD e instalar desde FTP o CD.
Obteniendo OpenBSD:
Descargamos de:
ftp://ftp.openbsd.org/pub/OpenBSD/4.3/
La arquitectura necesaria para la PC en cuestión.
Ej: Para i386 =
ftp://ftp.openbsd.org/pub/OpenBSD/4.3/i386/
Sino sabes cual es tu arquitectura (probablemente debe ser i386) pregunta a continuación.
Descargamos todos los archivos de nuestra arquitectura.
Instalando booteando desde un CD:
(Nótese que esta instalación esta pensada para instalarse en una maquina con arquitectura i386, de necesitar el archivo para otra arquitectura pregunte a continuación)
Descargue la imagen del CD de OpenBSD:
ftp://ftp.openbsd.org/pub/OpenBSD/4.3/i3...tall43.iso
Grabe la imagen en un CD (esto se puede hacer con NERO por ejemplo) y reinicie el sistema booteando desde el CD y continué en "Instalando OpenBSD" (Omita todos los pasos que hablan sobre bootear desde un diskette).
Instalando desde un Diskette de booteo:
Creando el diskette de booteo:
En Windows:
1. Descargamos rawwritewin-0.7.zip disponible en la sección de descargas.
2. Descomprimimos, ejecutamos rawwritewin.exe y en "Image File" seleccionamos el archivo "floppy43.fs" (para Computadora de escritorio), "floppyB43.fs" (para servidores) o "floppyC43.fs" (Para NoteBooks).
3. Insertamos un diskette floppy en la diskettera y pulsamos "Write" (el diskette será formateado, así que asegúrese de no tener ningún dato importante en el mismo).
En Unix:
1. Usamos en comando "fdformat": (el diskette será formateado, así que asegúrese de no tener ningún dato importante en el mismo)
# fdformat /dev/rfd0c
Format 1440K floppy `/dev/rfd0c'? (y/n): y
Processing VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV done.
Sino ves todas las V's quiere decir que el diskette tiene algún sector dañado y no podrá ser utilizado, si lo ves tal cual como se lo muestra aquí quiere decir que el diskette puede ser utilizado.
(Algunos sistemas Unix tienen comandos diferentes a "fdformat", consulte con el manual correspondiente a su sistema Unix.)
2. Ahora grabamos la imagen en el diskette con el comando "dd":
dd if=floppy43.fs of=/dev/rfd0c bs=32k
3. revisamos que el diskette este Okey con el comando "cmp":
cmp /dev/rfd0c floppy43.fs
(Debería dar otro aviso)
LISTO!! ya poseemos un diskette floppy de booteo !!
Creando CD para la instalación (solo si se piensa instalar desde CD, si se piensa instalar vía FTP se necesita una conexión a Internet)
Solo debemos copiar todos los archivos de nuestra arquitectura dentro del CD en la carpeta d:/4.3/Arquitectura/
Ej.: si nuestra arquitectura es i386= d:/4.3/i386/
(Si d: es nuestra grabadora se CD's obviamente)
Instalando OpenBSD
Insertamos el diskette de booteo en la diskettera y encendemos la maquina (debe estar configurada para bootear desde el diskette)
Si en cierto momento mientras se carga el diskette el mismo se detiene (se apaga el led) y aparece la palabra ERR quiere decir q el diskette se grabo mal, esta defectuoso o la versión de floppy43.fs es errónea, pruebe con otro diskette o con otra versión de floppy43.fs.
Si carga bien tendría que cargar todos los dispositivos (texto blanco con fondo azul) y decir:
erase ^?, werase ^W, kill ^U, intr ^C, status ^T
(I)nstall, (U)pgrade or (S)hell?
Elegiremos la opción I (instalar): tipiamos "I" y presionamos Enter
Continua:
Welcome to the OpenBSD/i386 4.3 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]
Pulsaremos Enter solamente
Luego pregunta que tipo de teclado tenemos:
kbd(8) mapping? ('L' for list) [none]
Recomiendo presionar enter (se establece teclado norteamericano) o especificar uno (puede ver una lista tipiando "L" y enter).
Por ejemplo si queremos establecer un teclado español tecleamos "es" y presionamos Enter.
Luego:
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]
Si se presiona enter, el proceso de instalación terminaría y pasaría a la consola, si desea continuar tipee "y" y pulse enter
Luego preguntara que disco deseamos utilizar:
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]
Si donde dice “Available disks are:” no hay ningún dato quiere decir que el sistema no a encontrado ningún disco rígido, revise que los discos estén propiamente seteados y conectados y repita la instalación.
Seleccione el disco q quiere utilizar (Ej: wd0) y pulse enter.
(Los discos IDE aparecen como: wd0, wd1, wd2, etc. Mientras q los SCSI aparecen como: sd0, sd1, sd2, etc.)
Luego preguntara:
Do you want to use *all* of wd0 for OpenBSD? [no] Enter
si desea utilizar el disco solo y solo para OpenBSD tipee "yes" y pulse Enter, si desea utilizar este disco para OpenBSD y cualquier otra partición siga leyendo en el manual original de openbsd (click aquí).
Ahora entramos en el DiskLabel de OpenBSD para setear las particiones de los discos:
Here is the partition information you chose:
Disk: wd0 geometry: 2586/240/63 [39100320 Sectors]
Offset: 0 Signature: 0xAA55
Starting Ending LBA Info:
#: id C H S - C H S [ start: size ]
------------------------------------------------------------------------
*0: 06 0 1 1 - 202 239 63 [ 63: 3069297 ] DOS > 32MB
1: A6 203 0 1 - 2585 239 63 [ 3069360: 36030960 ] OpenBSD
2: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
3: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
You will now create an OpenBSD disklabel inside the OpenBSD MBR
Partition. The disklabel defines how OpenBSD splits up the MBR partition
into OpenBSD partitions in which filesystems and swap space are created.
The offsets used in the disklabel are ABSOLUTE, i.e. relative to the
start of the disk, NOT the start of the OpenBSD MBR partition.
disklabel: no disk label
WARNING: Disk wd0 has no label. You will be creating a new one.
# using MBR partition 1: type A6 off 3069360 (0x2ed5b0) size 36030960 (0x225c9f0)
Treating sectors 3069360-39100320 as the OpenBSD portion of the disk.
You can use the 'b' command to change this.
Initial label editor (enter '?' for help at any prompt)
>
(Ingrese "?" y enter para mas informacion sobre los diferentes comandos)
Crearemos las particiones que necesitamos para OpenBSD (no son las básicas), ajuste los tamaños de las particiones al de su disco, aquí utilizamos un disco de 17 GB:
->> a: = "/" (root) -150mb. Suficiente en la mayoría de los casos.
->> b: = "swap" - 300mb.
->> d: = "/tmp" - 120mb. /tmp se utilizara para compilar los programas, con 120mb debería ser suficiente para la mayoría de los programas
->> e: = "/var" - 80mb. Si quiere hacer un Servidor Web o de Correo deberá hacer mucho más grande esta partición.
->> g: = "/usr" - 2gb. Tendría q ser una de las particiones mas grande ya q es la encargada de correr varios programas y es la ubicación de los ports q pesan unos 100mb antes de instalar ninguno...
->> h: = "/home" - 4gb. Donde se guardaran los archivos para los usuarios.
Insertando los valores:
Ejecutamos "p m" para ver que "hay" en el disco:
> p m
device: /dev/rwd0c
type: ESDI
disk: ESDI/IDE disk
label: ST320011A
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 16383
total sectors: 39102336
free sectors: 36030960
rpm: 3600
16 partitions:
# size offset fstype [fsize bsize cpg]
a: 17593.2M 0.0M unused 0 0
c: 17593.2M 0.0M unused 0 0
En este caso tenemos una partición "a" de mas así que la borraremos ejecutando "d a" (obviamente si usted posee una partición con otra letra por ejemplo "i" el comando será "d i") y luego cargaremos las nuevas particiones en el disco utilizando "a (letra de la partición)", por ejemplo: "a b" si "b" fuera la letra q identifica a la partición fuera "b", de este modo cargamos todas las particiones:
> a a
offset: [3069360] Enter
size: [36030960] 150M
Rounding to nearest cylinder: 307440
FS type: [4.2BSD] Enter
mount point: [none] /
> a b
offset: [3376800] Enter
size: [35723520] 300M
Rounding to nearest cylinder: 614880
FS type: [swap] Enter
> a d
offset: [3991680] Enter
size: [35108640] 120m
Rounding to nearest cylinder: 245952
FS type: [4.2BSD] Enter
mount point: [none] /tmp
> a e
offset: [4237632] Enter
size: [34862688] 80m
Rounding to nearest cylinder: 164304
FS type: [4.2BSD] Enter
mount point: [none] /var
> a g
offset: [4401936] Enter
size: [34698384] 2g
Rounding to nearest cylinder: 4194288
FS type: [4.2BSD] Enter
mount point: [none] /usr
> a h
offset: [8596224] Enter
size: [30504096] 4g
Rounding to nearest cylinder: 8388576
FS type: [4.2BSD] Enter
mount point: [none] /home
Luego ejecutamos "p m" otra vez para revisar q todos los datos insertados fueran correctos:
> p m
device: /dev/rwd0c
type: ESDI
disk: ESDI/IDE disk
label: ST320011A
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 16383
total sectors: 39102336
free sectors: 22115520
rpm: 3600
16 partitions:
# size offset fstype [fsize bsize cpg]
a: 150.1M 1498.7M 4.2BSD 1024 8192 16 # /
b: 300.2M 1648.8M swap
c: 19092.9M 0.0M unused 0 0
d: 120.1M 1949.1M 4.2BSD 1024 8192 16 # /tmp
e: 80.2M 2069.2M 4.2BSD 1024 8192 16 # /var
g: 2048.0M 2149.4M 4.2BSD 1024 8192 16 # /usr
h: 4096.0M 4197.4M 4.2BSD 1024 8192 16 # /home
Si estamos seguros de que todo esta bien ejecutamos "q" para crear las particiones:
Presionamos enter para crear las particiones:
The root filesystem will be mounted on wd0a.
wd0b will be used for swap space.
Mount point for wd0d (size=122976k), none or done? [/tmp] Enter
Mount point for wd0e (size=82152k), none or done? [/var] Enter
Mount point for wd0g (size=2097144k), none or done? [/usr] Enter
Mount point for wd0h (size=4194288k), none or done? [/home] Enter
Mount point for wd0d (size=122976k), none or done? [/tmp] done
No more disks to initialize.
Luego preguntara:
Are you really sure that you´re ready to proceed? [no]
Pregunta si estamos seguros de que queremos proceder, si es así tipee "y" y pulse Enter.
Luego tendremos q configurar la red:
Enter system hostname (short form, e.g. 'foo'):
Debe ingresar el nombre de hostname para la PC y presionar enter
Luego deberemos llenar otros datos (muestro lo que hay q hacer como un ejemplo)
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? [puffy] Enter
The default media for xl0 is
media: Ethernet autoselect (100baseTX full-duplex)
Do you want to change the default media? [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? [puffy] 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] example.com
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
luego tenemos que insertar la contraseña para el súper-usuario "root":
Password for root account? (will not echo) tuconstraseña
Password for root account? (again) tuconstraseña
Luego se procederá a la instalación en si (este manual es para instalar desde un CD, si desea hacerlo via ftp solo tipee "ftp" a continuacion y la dirrecion del servidor de ftp donde esten los archivos de instalacion, como ser "ftp://ftp.openbsd.org/pub/OpenBSD/4.3/i386/"):
Let's 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 'done') [cd0] Enter
Pathname to the sets? (or 'done') [4.3/i386] Enter.
(En el supuesto caso de que cd0 sea nuestra unidad de cd)
En "Pathname to the sets?” tendran q insertar la ruta de la carpeta de instalación, supuestamente si su arquitectura es i386 tendrán que solamente presionar enter.
Ahora seleccionaremos que archivos deseamos instalar:
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] base43.tgz
[X] etc43.tgz
[X] misc43.tgz
[X] comp43.tgz
[X] man43.tgz
[X] game43.tgz
[ ] xbase43.tgz
[ ] xetc43.tgz
[ ] xshare43.tgz
[ ] xfont43.tgz
[ ] xserv43.tgz
Set name? (or 'done') [bsd.mp] done
Yo creo que es todo lo necesario, ahora si usted desea correr OpenBSD en sistema grafico (X11) haga lo siguiente:
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] base43.tgz
[X] etc43.tgz
[X] misc43.tgz
[X] comp43.tgz
[X] man43.tgz
[X] game43.tgz
[ ] xbase43.tgz
[ ] xetc43.tgz
[ ] xshare43.tgz
[ ] xfont43.tgz
[ ] xserv43.tgz
Set name? (or 'done') [bsd.mp] all
[X] bsd
[X] bsd.rd
[X] bsd.mp
[X] base43.tgz
[X] etc43.tgz
[X] misc43.tgz
[X] comp43.tgz
[X] man43.tgz
[X] game43.tgz
[X] xbase43.tgz
[X] xetc43.tgz
[X] xshare43.tgz
[X] xfont43.tgz
[X] xserv43.tgz
Y luego:
Set name? (or 'done') [done] Enter
Ready to install sets? [yes] Enter
Getting bsd ...
100% |**************************************************| 5972 KB 00:03
Getting bsd.rd ...
100% |**************************************************| 4887 KB 00:03
Getting bsd.mp ...
100% |**************************************************| 6020 KB 00:03
Getting base43.tgz ...
100% |**************************************************| 41437 KB 00:34
Getting etc43.tgz ...
100% |**************************************************| 1210 KB 00:01
Getting misc43.tgz ...
100% |**************************************************| 2238 KB 00:02
Getting comp43.tgz ...
100% |**************************************************| 76666 KB 01:02
Getting man43.tgz ...
100% |**************************************************| 7473 KB 00:07
Getting game43.tgz ...
100% |**************************************************| 2548 KB 00:02
Getting xbase43.tgz ...
100% |**************************************************| 10344 KB 00:08
Getting xetc43.tgz ...
100% |**************************************************| 90772 00:00
Getting xshare43.tgz ...
100% |**************************************************| 2024 KB 00:03
Getting xfont43.tgz ...
100% |**************************************************| 32456 KB 00:24
Getting xserv43.tgz ...
100% |**************************************************| 19365 KB 00:15
Location of sets? (cd disk ftp http or 'done') [done] Enter
Start sshd(8) by default? [yes] enter
Si desea mantener el reloj sincronizado tipee "default" y precione Enter, sino solo precione Enter:
NTP server? (or 'none' or 'default') [none] enter
Si desea correr es sistema X11 para el modo grafico de OpenBSD:
Do you expect to run the X Window System? [no] y
Sino solo presione enter, igualmente después podrá activarlo una vez instalado OpenBSD modificando el archivo "/etc/sysctl.conf".
Si deseas utilizar una consola serial inserte "y" y luego pulse enter, sino:
Change the default console to com0? [no] Enter
Especifique su zona horaria, por ejemplo:
Saving configuration files......done.
Generating initial host.random file ......done.
What timezone are you in? ('?' for list) [Canada/Mountain] ?
Africa/ Chile/ GB-Eire Israel NZ-CHAT UCT
America/ Cuba GMT Jamaica Navajo US/
Antarctica/ EET GMT+0 Japan PRC UTC
Arctic/ EST GMT-0 Kwajalein PST8PDT Universal
Asia/ EST5EDT GMT0 Libya Pacific/ W-SU
Atlantic/ Egypt Greenwich MET Poland WET
Australia/ Eire HST MST Portugal Zulu
Brazil/ Etc/ Hongkong MST7MDT ROC posix/
CET Europe/ Iceland Mexico/ ROK posixrules
CST6CDT Factory Indian/ Mideast/ Singapore right/
Canada/ GB Iran NZ Turkey zone.tab
What timezone are you in? ('?' for list) [Canada/Mountain] America/Argentina/Buenos_Aires
What sub-timezone of 'US' are you in? ('?' for list) ?
Alaska Central Hawaii Mountain Samoa
Aleutian East-Indiana Indiana-Starke Pacific
Arizona Eastern Michigan Pacific-New
Select a sub-timezone of 'US' ('?' for list): Eastern
Setting local timezone to 'US/Eastern'...done.
Y esto termina asi:
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 216, offset 9256
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.
#
Solo deberás insertar "halt" y presionar Enter, remover el diskette y el CD y presionar cualquier tecla para reiniciar cuando diga:
syncing disks... done
The operating system has halted.
Please press any key to reboot.
Cuando reinicie, lo cual tardara un poco porque el OpenBSD tendrá que generar las claves RSA y DSA, podrá ingresar con el usuario root y la contraseña que usted ingreso en el proceso de instalación.
Listo!! Ya a instalado OpenBSD 4.3!!
Cualquier pregunta o duda sobre el manual consulte el manual original de OpenBSD o comente su duda a continuación.
PD: les recordamos que ni el Staff de fencus, ni ningún miembro se hace cargo de cualquier daño producido por seguir los pasos de este manual, cualquier duda pregunte a continuación o revise el manual original de OpenBSD.