Re: report:intranet PXE network install (by nginx...)

2015-05-07 Thread Jiri B
On Thu, May 07, 2015 at 05:24:14PM +0900, Tuyosi Takesima wrote:
 hi all .
 i install 5.7 using intranet (internet is unnesesary)
 i expense some time .
 for covinience i report it.

No need for such report, man 8 pxeboot is sufficient.

j.



report:intranet PXE network install (by nginx...)

2015-05-07 Thread Tuyosi Takesima
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 9;
}

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  wheel81108 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.tgzxfont57.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
}



Re: report:intranet PXE network install (by nginx...)

2015-05-07 Thread Paolo Aglialoro
If it's correct and not against man pages it can be helpful for beginners
to have a ready recipe, just like FAQs.
Il 07/mag/2015 10:43, Jiri B ji...@devio.us ha scritto:

 On Thu, May 07, 2015 at 05:24:14PM +0900, Tuyosi Takesima wrote:
  hi all .
  i install 5.7 using intranet (internet is unnesesary)
  i expense some time .
  for covinience i report it.

 No need for such report, man 8 pxeboot is sufficient.

 j.



Re: report:intranet PXE network install (by nginx...)

2015-05-07 Thread Tuyosi Takesima
securiy is most inportant for airplain.
my writing unperfect ,so may be dangerous .

by the way i have little expirience of domain name server .
so, i have three question.

in dnsmasq
1) does /etc/hosts alow alias ?

2) is /etc/resolv.conf important ?

3) soft link  perhaps fail
   example
   cd /var/www/htdocs/pub/OpenBSD/5.7/
   ln -s /home/Auser/i386 i386
   what should i do ?


i use dnsmaq in pxe server ,because it is simple .
(/etc/rc.d/dhcpd stop , don't run tftpd)

network is next.

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


A) /etc/dnsmasq.conf
listen-address=127.0.0.1
listen-address=192.168.11.1
interface=fxp0
dhcp-range=192.168.11.10,192.168.11.12,12
hdhcp-boot=pxeboot
enable-tftp
tftp-root=/tftpboot

B) /etc/hosts
127.0.0.1   localhost
::1 localhost
192.168.11.101.net
192.168.11.102.net  ---alias OK?

C)/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  01.net;
root /var/www/htdocs;
error_page   500 502 503 504  /50x.html;
location = /50x.html {
root  /var/www/htdocs;
 }
   }

server {
listen   80;
listen   [::]:80;
server_name  02.net;
root /var/www/htdocs/pub/OpenBSD/5.7/i386;
error_page   500 502 503 504  /50x.html;
location = /50x.html {
root /var/www/htdocs/pub/OpenBSD/5.7/i386;
 }
   }


shell script
-
ifconfig fxp0 192.168.11.1/24
/etc/rc.d/dnsmasq  restart
/etc/rc.d/nginxrestart


to upgrade
-
use 01.net - /pub/OpenBSD/5.7/i386
use 02.net - /

this plane fly , but it may drop .
-
regards



Re: report:intranet PXE network install (by nginx...)

2015-05-07 Thread dan mclaughlin
On Thu, 07 May 2015 08:13:55 -0400 Nick Holland n...@holland-consulting.net 
wrote:
 On 05/07/15 07:51, Paolo Aglialoro wrote:
  If it's correct and not against man pages it can be helpful for beginners
  to have a ready recipe, just like FAQs.
 
 IF it is correct, maybe.  But OpenBSD's philosophy has never been more
 places of docs is better!.  We really want one authoritative source.
 
 Unfortunately, he's been posting a lot of his experiences which
 involve reinventing wheels with some really oddly shapes and making some
 simple things complicated.  That's not helpful.
 
 Nick.
 

given how often a certain site has given people bad information, and it
doesn't get corrected until people ask questions here, it's at least
slightly better. at least here you are aware of it and have a chance to
respond and correct it, for posterity, while that certain site is still
out there causing trouble.



Re: report:intranet PXE network install (by nginx...)

2015-05-07 Thread Nick Holland
On 05/07/15 07:51, Paolo Aglialoro wrote:
 If it's correct and not against man pages it can be helpful for beginners
 to have a ready recipe, just like FAQs.

IF it is correct, maybe.  But OpenBSD's philosophy has never been more
places of docs is better!.  We really want one authoritative source.

Unfortunately, he's been posting a lot of his experiences which
involve reinventing wheels with some really oddly shapes and making some
simple things complicated.  That's not helpful.

Nick.


 Il 07/mag/2015 10:43, Jiri B ji...@devio.us ha scritto:
 
 On Thu, May 07, 2015 at 05:24:14PM +0900, Tuyosi Takesima wrote:
  hi all .
  i install 5.7 using intranet (internet is unnesesary)
  i expense some time .
  for covinience i report it.

 No need for such report, man 8 pxeboot is sufficient.

 j.