hi all .
i install 5.7 using intranet (internet is unnesesary)
i expense some time .
for covinience i report it.

sis0
openbsd PXE server
ne3 :192.168.11.1
|
PC ( openbsd will be installed)

1) dhcpd----------------------------
# cat
/etc/hostname.ne3
inet 192.168.11.1 255.255.255.0

# cat /etc/dhcpd.interfaces
ne3

# cat
/etc/dhcpd.conf
            option  domain-name "example.com";
            option  domain-name-servers 8.8.8.8;
            subnet 192.168.11.0 netmask 255.255.255.0 {
                    option routers 192.168.11.1;
                    filename "pxeboot";
                    range 192.168.11.30 192.168.11.31;
                    default-lease-time 86400;
                    max-lease-time 90000;
            }

2)tftpb--------------------------------
# ls -l
/tftpboot/
total 13860
-rw-r--r--  1 root  wheel  6987854 Apr 30 01:21 bsd.rd
drwxr-xr-x  2 root  wheel      512 Apr 30 09:04 etc
-rw-r--r--  1 root  wheel    81108 Apr 30 01:04 pxeboot

# cat
/tftpboot/etc/boot.conf
boot tftp:/bsd.rd

AND
tftpd  /tftpboot


3)nginx ------------------------------
  cat
/etc/nginx/nginx.conf
worker_processes  1;
worker_rlimit_nofile 1024;
events {
    worker_connections  800;
}
http {
    include       mime.types;
    default_type  application/octet-stream;
    index         index.html index.htm;
    keepalive_timeout  65;
    server_tokens off;
    server {
        listen       80;
        listen       [::]:80;
        server_name  192.168.11.1;
        root         /var/www/htdocs;
        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root  /var/www/htdocs;
        }
    }
}


ls /var/www/htdocs/pub/5.7
INSTALL.i386 base57.tgz   bsd.rd
index.txt   <--- important, i think.
xbase57.tgz  xshare57.tgz
SHA256       bsd          comp57.tgz   man57.tgz    xfont57.tgz
SHA256.sig   bsd.mp       game57.tgz   pxeboot      xserv57.tgz

that is all .
i try automatic install , but how to make partition is hard to be
controlled .
and this method is adopeted in case of upgrade .
_____
regards
         in case of
/etc/httpd.conf
ext_addr="192.168.11.1"
server "www.intranet.com" {
        listen on $ext_addr port 80
        root "/htdocs/5.7"
}

Reply via email to