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