Last active
March 27, 2021 21:20
-
-
Save tasoseng/f9f34e23f4e158f72f896cbd9ce26a9d to your computer and use it in GitHub Desktop.
mfsbsd
This file contains 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
mfs_load="YES" | |
mfs_type="mfs_root" | |
mfs_name="/mfsroot" | |
ahci_load="YES" | |
vfs.root.mountfrom="ufs:/dev/md0" | |
mfsbsd.autodhcp="YES" | |
autoboot_delay="1" |
This file contains 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
mount_cd9660 /dev/cd0 /cdrom | |
bsdinstall script /etc/installerconfig |
This file contains 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 PARTITIONS=ada0 | |
export ZFSBOOT_DISKS=ada0 | |
export DISTRIBUTIONS="kernel.txz base.txz" | |
export BSDINSTALL_DISTDIR=/cdrom/12.0-RELEASE-amd64 | |
export nonInteractive="YES" | |
#!/bin/sh | |
sysrc ifconfig_DEFAULT=DHCP | |
sysrc sshd_enable=YES | |
sysrc hostname=freebsd | |
cp /usr/share/zoneinfo/Europe/Athens /etc/localtime | |
echo "autoboot_delay=\"3\"" >> /boot/loader.conf | |
# root password is "root" | |
echo '$6$4ZNLcNh1cdIOxLBK$t3Y739ZswwqDNoz/DLUdqLVUYZVrUjfMQdg6OiZLd8bM4nUbncYG5DAaMA00Rwd72egnbQ1GVfJ.myNAJuXtK.' | pw user mod root -H 0 | |
mkdir -m 0700 /root/.ssh | |
echo "PASTE_YOUR_SSH_PUBLIC_KEY_HERE" > /root/.ssh/authorized_keys | |
chmod 400 /root/.ssh/authorized_keys | |
#echo "PermitRootLogin without-password" >> /etc/ssh/sshd_config | |
echo "PermitRootLogin yes" >> /etc/ssh/sshd_config | |
ASSUME_ALWAYS_YES=yes pkg bootstrap | |
umount /cdrom | |
camcontrol eject /dev/cd0 | |
reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment