Setting up a BSD server using a jail

  1. Create a jail.
  2. Install emacs-nox11.
    1. Edit .profile to set EDITOR=/usr/local/bin/emacs
    2. Also set PAGER=less
  3. Start a local shell and edit /etc/ssh/sshd_config to enable:
    • Listen 0.0.0.0
    • Port {new port}
  4. Reboot, exit the shell, login remotely.
  5. Install rsync.
    1. Configure /usr/local/etc/rsync/rsyncd.conf.
    2. Enable with sysrc rsyncd_enable="YES"
  6. Install bash.
    1. chsh -s /usr/local/bin/bash robb
  7. Install sudo.
    1. Edit /usr/local/etc/sudoers to enable the wheel group.
  8. Install ntpd.
    1. Enable with sysrc ntpd_enable="YES"
  9. Install postfix-sasl (this will replace the base postfix installation).
  10. Disable sendmail, enable postfix.
  11. Set up SMTP authentication.