Setting up a FreeBSD server using a VM

  1. Create a VM.
  2. Download the latest FreeBSD as an .iso image.
  3. Add a CD device to the VM, and point it to the image.
  4. VNC into the VM and reboot.
  5. Follow the installation instructions to create a working FreeBSD system on the VM.
  6. Log into the VM with ssh.
  7. Install (via pkg) bash, emacs-nox11, mutt, postfix, sudo, openntpd.
  8. Change the shell: chsh -s /usr/local/bin/bash.
  9. Set up sudoers in /usr/local/etc/sudoers. Enable the wheel group.
  10. Ensure that the login account in in group wheel.
  11. Set the EDITOR to /usr/local/bin/emacs.
  12. Set the PAGER to /usr/bin/less.
  13. Set /etc/resolv.conf to use 8.8.8.8 and 75.75.75.75.
  14. Stop sendmail (service sendmail stop).
  15. Disable sendmail and enable postfix
  16. Start postfix (service postfix start).
  17. Set up the SMTP server in .muttrc, ie., 
    set smtp_url="smtp://username:password@mail.helical.com:587"
    set sendmail="/usr/local/sbin/sendmail -oi"

    Be sure to use port 587.
  18. Send a test message with mutt.