View Single Post
  #3   (View Single Post)  
Old 1st March 2016
J65nko J65nko is online now
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,132
Default New version suitable for OpenBSD 5.9

Summary of the changes:
  • Support creation of wheel user
  • Support the 'prohibit-password' option for SSH root login
  • Support automatic disklabel procedure through a configuration file (see OpenBSD automatic disklabel allocation

Code:
Password for root account? <provided>
Public ssh key for root account? [none] ecdsa-sha2-nistp256 AAAAE2VjZHNhLXN[snip]

Start sshd(8) by default? [yes] yes
Do you expect to run the X Window System? [yes] no
Change the default console to com0? [yes] yes
Available speeds are: 9600 19200 38400 57600 115200.
Which speed should com0 use? (or 'done') [38400] 38400

Setup a user? (enter a lower-case loginname, or 'no') [no] csmoker
Full name for user csmoker? [csmoker] Carpetsmoker
Password for user csmoker? <provided>
Public ssh key for user csmoker [none] ecdsa-sha2-nistp256 AAAAE2VjZHNhLX[snip]

WARNING: root is targeted by password guessing attacks, pubkeys are safer.
Allow root ssh login? (yes, no, prohibit-password) [no] prohibit-password
The automatic disklabel

Code:
Available disks are: sd0.
Which disk is the root disk? ('?' for details) [sd0] sd0
No valid MBR or GPT.
Use (W)hole disk MBR, whole disk (G)PT or (E)dit? [whole] whole
Setting OpenBSD MBR partition to whole sd0...done.
URL to autopartitioning template for disklabel? [none] http://hercules.utp.xnet/autodisklabel.txt
Fetching http://hercules.utp.xnet/autodisklabel.txt
/dev/rsd0a: 100.0MB in 204800 sectors of 512 bytes
4 cylinder groups of 25.00MB, 1600 blocks, 3200 inodes each
/dev/rsd0e: 2048.0MB in 4194304 sectors of 512 bytes
11 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each
/dev/rsd0d: 200.0MB in 409600 sectors of 512 bytes
4 cylinder groups of 50.00MB, 3200 blocks, 6400 inodes each
/dev/rsd0h: 2914.0MB in 5967872 sectors of 512 bytes
15 cylinder groups of 202.47MB, 12958 blocks, 25984 inodes each
/dev/rsd0f: 500.0MB in 1024000 sectors of 512 bytes
4 cylinder groups of 125.00MB, 8000 blocks, 16000 inodes each
/dev/rsd0g: 200.0MB in 409600 sectors of 512 bytes
4 cylinder groups of 50.00MB, 3200 blocks, 6400 inodes each
/dev/sd0a (286220d9cb3c95a8.a) on /mnt type ffs (rw, asynchronous, local)
/dev/sd0e (286220d9cb3c95a8.e) on /mnt/home type ffs (rw, asynchronous, local, nodev, nosuid)
/dev/sd0d (286220d9cb3c95a8.d) on /mnt/tmp type ffs (rw, asynchronous, local, nodev, nosuid)
/dev/sd0h (286220d9cb3c95a8.h) on /mnt/usr type ffs (rw, asynchronous, local, nodev)
/dev/sd0f (286220d9cb3c95a8.f) on /mnt/var type ffs (rw, asynchronous, local, nodev, nosuid)
/dev/sd0g (286220d9cb3c95a8.g) on /mnt/var/log type ffs (rw, asynchronous, local, nodev, nosuid)

Let's install the sets!
The contents of the tarball:
Code:
$ tar tvzf Autoinstall_2016_0301.tgz
 drwxr-xr-x  0      Mar  1 04:05 Autoinstall
 -rw-r--r--  964    Mar  1 04:00 Autoinstall/Makefile
 -rwxr--r--  6326   Mar  1 04:00 Autoinstall/mk-install.conf.sh
 -rw-r--r--  2013   Mar  1 04:00 Autoinstall/install.conf
 -rw-r--r--  11148  Mar  1 04:00 Autoinstall/wheel-user-log.txt
 -rw-r--r--  76     Mar  1 04:05 Autoinstall/autodisklabel.txt
The mk-install.conf.sh script and the Makefile are used to create the install.conf file.
wheel-user-log.txt is a log captured with serial console of an automatic install using that response file.

Have fun
Attached Files
File Type: tgz Autoinstall_2016_0301.tgz (7.0 KB, 358 views)
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote