Changes

Jump to: navigation, search

FreeBSD Post Install Steps

458 bytes added, 16:15, 2 January 2019
no edit summary
[[Category:FreeBSD]]
 
== Introduction ==
 
Everything on this page needs to be done as root, unless specified, so su to root.
su -
 
== Set hostname ==
 
echo 'hostname="phoenix.xw.is"' >> /etc/rc.conf
 
== Update the software ==
 
freebsd-update fetch
freebsd-update install
== Install basic software ==
pkg install -y bash sudo rsynctmux
=== ZFS ===
If you don't have a ZFS root (e.g. cloud computing), you might want to have create a separate ZFS pool.
echo 'zfs_enable="YES"' >>/etc/rc.conf
pw useradd -n aram -c 'Aram Havarneanu' -g staff -G wheel -m -s /usr/local/bin/bash -L staff -w random
 
Enable passwordless sudo for the staff group:
 
echo '%staff ALL=(ALL) NOPASSWD:ALL' > /usr/local/etc/sudoers.d/91-staff-no-password
=== SSH ===
For ssh access, use su to change user switch from root to the user and then add ssh keys.
su - aram
mkdir -p .ssh
echo 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIANJ9BKKslS9Zqp1dRWL1nRiLmFp7nGvP06zPJ4L7cES aram@emerald.local' >> .ssh/authorized_keys
echo 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJnkro8LT0TS+NTOIB787wfqIwv2VTmXXYsnsoVk71UE aram@horizon.local' >> .ssh/authorized_keys

Navigation menu