Last active
April 23, 2017 03:08
-
-
Save holly/77d283e2dcc8859952b200b25cc962e4 to your computer and use it in GitHub Desktop.
freebsd auto installer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export ZFSBOOT_DISKS=ada0 | |
| export ZFSBOOT_POOL_CREATE_OPTIONS="-O compress=lz4 -O atime=off -O copies=2" | |
| export nonInteractive="YES" | |
| DISTRIBUTIONS="base.txz kernel.txz" | |
| #!/bin/sh | |
| sysrc ifconfig_em0="DHCP" | |
| sysrc sshd_enable="YES" | |
| sysrc hostname="localhost" | |
| sysrc keymap="jp.106.kbd" | |
| sysrc ipv6_enable="NO" | |
| sysrc sendmail_enable="NO" | |
| echo '$6$SALTsalt$7e/mJxktHKR918ebeJfLfD9UFBa8iL/dqFz1VxJ6GkZ9h48tPfaRE74auCQ38itYs5rKdjFtNoGgr5nW0NNjr0' | pw usermod root -H 0 -s /bin/tcsh | |
| #echo '$6$saltSALt$jpo1AV8X.SmvKivf2CSRH4lNx4lcGw0oQf8RXncfiQUr/gZ/UXSzdyDw48gM7zyyapEeTeB6DAb/A344mLc4J.' | pw useradd -n holly -G wheel -H 0 -m -s /bin/tcsh | |
| export ASSUME_ALWAYS_YES=yes | |
| pkg install sudo curl bash git | |
| tzsetup Asia/Tokyo | |
| reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment