OpenBSD Support Argentina es un portal de redifucion de los contenidos referidos a este sistema.


Categorias / Categories:

 Inicio
 Libros
 Notas
 Eventos
 Scripts
 Networking
 Mirrors OpenBSD
 Tutoriales
 Videos

Graficas

 Banners
 Wallpapers
 Fotos
 Posters

Foro:

 Encuentra mas contenido util aqui en el  Foro

Proyectos Asociados

 Links

Contactos:

 Ponte en contacto

Obtener OpenBSD


Nota: Si usted encuentra que alguna documentación es inservible, inexacta, obsoleta o simplemente esta mal, entonces su ayuda sera bienvenida para que esto sea mejor. Envíe su nuevo documento.

 
[OpenBSDsupport]

Portal de redifusion de sitios amigos de OpenBSD.

Y no se olvide de obtener su CD aquí para apoyar el proyecto!

Shell scripts / Descarga y creación de CD-DVD arrancable


Script para GNU/Linux:

#!/bin/sh DIRECTORIO=~/OpenBSD ARQUITECTURA=i386 #ARQUITECTURA=amd64 MAYORVERSION=4 MINORVERSION=0 VERSION=$MAYORVERSION.$MINORVERSION VERSIONCORTA=$MAYORVERSION$MINORVERSION MIRROR=ftp://ftp.rediris.es/pub/OpenBSD #MIRROR=ftp://ftp.openbsd.org/pub/OpenBSD #MIRROR=ftp://spargel.kd85.com/pub/OpenBSD #MIRROR=ftp://ftp.irisa.fr/pub/OpenBSD #Mas mirrors en http://www.openbsd.org/ftp.html ULTIMAVERSION="" PAQUETESADICIONALES="" while [ "$ULTIMAVERSION" != "S" -a "$ULTIMAVERSION" != "s" -a "$ULTIMAVERSION" != "N" -a "$ULTIMAVERSION" != "n" ];do read -n 1 -p “¿Estas descargando la version mas reciente de OpenBSD [S/N]?” ULTIMAVERSION echo “” done while [ "$PAQUETESADICIONALES" != "S" -a "$PAQUETESADICIONALES" != "s" -a "$PAQUETESADICIONALES" != "N" -a "$PAQUETESADICIONALES" != "n" ];do read -n 1 -p “¿Quieres descargar los paquetes adicionales [S/N]?” PAQUETESADICIONALES echo “” done echo “Creando arbol de directorios en” $DIRECTORIO… mkdir $DIRECTORIO mkdir $DIRECTORIO/$VERSION mkdir $DIRECTORIO/$VERSION/doc echo “Descargando archivos de instalacion basicos…” cd $DIRECTORIO wget -c -m -nH -np -l1 –cut-dirs=3 $MIRROR/$VERSION/ cd $DIRECTORIO$VERSION wget -c -m -nH -np –cut-dirs=2 $MIRROR/$VERSION/$ARQUITECTURA wget -m -nH -np –cut-dirs=2 $MIRROR/$VERSION/tools if [ "$ULTIMAVERSION" = "S" -o "$ULTIMAVERSION" = "s" ];then wget -c -N -P $DIRECTORIO/$VERSION/doc $MIRROR/doc/obsd-faq.pdf wget -c -N -P $DIRECTORIO/$VERSION/doc $MIRROR/doc/obsd-faq.txt wget -c -N -P $DIRECTORIO/$VERSION/doc $MIRROR/doc/pf-faq.pdf wget -c -N -P $DIRECTORIO/$VERSION/doc $MIRROR/doc/pf-faq.txt mv $DIRECTORIO/$VERSION/doc/obsd-faq.pdf $DIRECTORIO/$VERSION/doc/obsd-faq$VERSIONCORTA.pdf mv $DIRECTORIO/$VERSION/doc/obsd-faq.txt $DIRECTORIO/$VERSION/doc/obsd-faq$VERSIONCORTA.txt mv $DIRECTORIO/$VERSION/doc/pf-faq.pdf $DIRECTORIO/$VERSION/doc/pf-faq$VERSIONCORTA.pdf mv $DIRECTORIO/$VERSION/doc/pf-faq.txt $DIRECTORIO/$VERSION/doc/pf-faq$VERSIONCORTA.txt else wget -c -N -P $DIRECTORIO/$VERSION/doc $MIRROR/doc/obsd-faq$VERSIONCORTA.pdf wget -c -N -P $DIRECTORIO/$VERSION/doc $MIRROR/doc/obsd-faq$VERSIONCORTA.txt wget -c -N -P $DIRECTORIO/$VERSION/doc $MIRROR/doc/pf-faq$VERSIONCORTA.pdf wget -c -N -P $DIRECTORIO/$VERSION/doc $MIRROR/doc/pf-faq$VERSIONCORTA.txt fi wget -c -N -P $DIRECTORIO $MIRROR/songs/song$VERSIONCORTA.mp3 wget -c -N -P $DIRECTORIO $MIRROR/songs/song$VERSIONCORTA.ogg wget -c -N -P $DIRECTORIO http://www.openbsd.org/images/puffy$VERSIONCORTA.gif # Comprobamos el ERRORLEVEL por si la imagen en formato GIF no exite en el servidor if [ "$?" != "0" ];then wget -c -N -P $DIRECTORIO http://www.openbsd.org/images/puffy$VERSIONCORTA.jpg fi if [ "$PAQUETESADICIONALES" = "S" -o "$PAQUETESADICIONALES" = "s" ];then echo Descargando paquetes adicionales… wget -c -m -nH -np –cut-dirs=2 $MIRROR/$VERSION/packages/$ARQUITECTURA fi echo “Creando imagen ISO… (este proceso tardara unos minutos)” mkisofs -q -l -J -r -o ~/OpenBSD$VERSIONCORTA.iso -c boot.catalog -b $VERSION/$ARQUITECTURA/cdrom$VERSIONCORTA.fs -V “OpenBSD $VERSION” $DIRECTORIO cd ~
Script para Windows:
@echo off SET UNIDAD=C: SET UNIDADDESTINOISO=C: SET DIRECTORIO=OpenBSD SET ARQUITECTURA=i386 rem SET ARQUITECTURA=amd64 SET MAYORVERSION=4 SET MINORVERSION=0 SET VERSION=%MAYORVERSION%.%MINORVERSION% SET VERSIONCORTA=%MAYORVERSION%%MINORVERSION% SET MIRROR=ftp://ftp.rediris.es/pub/OpenBSD rem SET MIRROR=ftp://ftp.openbsd.org/pub/OpenBSD rem SET MIRROR=ftp://spargel.kd85.com/pub/OpenBSD rem SET MIRROR=ftp://ftp.irisa.fr/pub/OpenBSD rem Mas mirrors en http://www.openbsd.org/ftp.html rem Se pregunta todo al principio para que la descarga y creacion del CD-DVD sea totalmente automatica. choice /C:SN Estas descargando la version mas reciente de OpenBSD SET ULTIMAVERSION=%ERRORLEVEL% choice /C:SN Quieres descargar los paquetes adicionales SET PAQUETESADICIONALES=%ERRORLEVEL% echo Creando arbol de directorios en %UNIDAD%%DIRECTORIO%... mkdir %UNIDAD%%DIRECTORIO% mkdir %UNIDAD%%DIRECTORIO%%VERSION% mkdir %UNIDAD%%DIRECTORIO%%VERSION%doc echo Descargando archivos de instalacion basicos... cd %UNIDAD%%DIRECTORIO% wget -c -m -nH -np -l1 --cut-dirs=3 %MIRROR%/%VERSION%/ cd %UNIDAD%%DIRECTORIO%%VERSION% wget -c -m -nH -np --cut-dirs=3 %MIRROR%/%VERSION%/%ARQUITECTURA% wget -m -nH -np --cut-dirs=3 %MIRROR%/%VERSION%/tools IF %ULTIMAVERSION% == 2 GOTO NOULTIMAVERSION wget -c -N -P %UNIDAD%%DIRECTORIO%%VERSION%doc %MIRROR%/doc/obsd-faq.pdf wget -c -N -P %UNIDAD%%DIRECTORIO%%VERSION%doc %MIRROR%/doc/obsd-faq.txt wget -c -N -P %UNIDAD%%DIRECTORIO%%VERSION%doc %MIRROR%/doc/pf-faq.pdf wget -c -N -P %UNIDAD%%DIRECTORIO%%VERSION%doc %MIRROR%/doc/pf-faq.txt ren %UNIDAD%%DIRECTORIO%%VERSION%docobsd-faq.pdf obsd-faq%VERSIONCORTA%.pdf ren %UNIDAD%%DIRECTORIO%%VERSION%docobsd-faq.txt obsd-faq%VERSIONCORTA%.txt ren %UNIDAD%%DIRECTORIO%%VERSION%docpf-faq.pdf pf-faq%VERSIONCORTA%.pdf ren %UNIDAD%%DIRECTORIO%%VERSION%docpf-faq.txt pf-faq%VERSIONCORTA%.txt GOTO SEGUIR :NOULTIMAVERSION wget -c -N -P %UNIDAD%%DIRECTORIO%%VERSION%doc %MIRROR%/doc/obsd-faq%VERSIONCORTA%.pdf wget -c -N -P %UNIDAD%%DIRECTORIO%%VERSION%doc %MIRROR%/doc/obsd-faq%VERSIONCORTA%.txt wget -c -N -P %UNIDAD%%DIRECTORIO%%VERSION%doc %MIRROR%/doc/pf-faq%VERSIONCORTA%.pdf wget -c -N -P %UNIDAD%%DIRECTORIO%%VERSION%doc %MIRROR%/doc/pf-faq%VERSIONCORTA%.txt :SEGUIR wget -c -N -P %UNIDAD%%DIRECTORIO% %MIRROR%/songs/song%VERSIONCORTA%.mp3 wget -c -N -P %UNIDAD%%DIRECTORIO% %MIRROR%/songs/song%VERSIONCORTA%.ogg wget -c -N -P %UNIDAD%%DIRECTORIO% http://www.openbsd.org/images/puffy%VERSIONCORTA%.gif IF ERRORLEVEL == 1 wget -c -N -P %UNIDAD%%DIRECTORIO% http://www.openbsd.org/images/puffy%VERSIONCORTA%.jpg IF %PAQUETESADICIONALES% == 2 GOTO CREARISO echo Descargando paquetes adicionales... wget -c -m -nH -np --cut-dirs=3 %MIRROR%/%VERSION%/packages/%ARQUITECTURA% :CREARISO echo Creando imagen ISO... (este proceso tardara unos minutos) mkisofs -q -l -J -r -o %UNIDADDESTINOISO%OpenBSD%VERSIONCORTA%.iso -c boot.catalog -b %VERSION%/%ARQUITECTURA%/cdrom%VERSIONCORTA%.fs -V "OpenBSD %VERSION%" %UNIDAD%%DIRECTORIO% cd %UNIDAD%
fuente del material: http://enekochan.wordpress.com/2007/03/20/descarga-y-creacion-de-cddvd-arrancable-de-openbsd/

 

 


Back | Regresar

OpenBSD Support Argentina se hostea en servidores OpenBSD


Copyright © 2004 - 2008 Alekid. All rights reserved. Articles and comments are copyright their respective authors.