###Some stuff I always forget.
####Console
echo -h >> /boot.config
echo console=comconsole >> /boot/loader.conf
ttyd0 "/usr/libexec/getty std.9600" dialup on secure
####panics
debug.debugger_on_panic=0 or put DDB_UNATTENDED in the config to panic instead of going to debugger.
remember to update dumpdev in rc.conf when you change disk.
####pkgsrc
cd /usr/pkgsrc/bootstrap
mkdir /tmp/moh && ./bootstrap --prefix /tmp/moh/pkg --varbase /tmp/moh/pkgvar --workdir /tmp/moh/work --unprivileged
mk.conf:
DISTDIR= /distfiles
WORKOBJDIR= /usr/pkgobj
PACKAGES= /packages
UPDATE_TARGET= package
####hammer
root PFS can't be mirrored.
if the filesystem gets completely filled up, do hammer viconfig and shorten snapshot retention time. then run hammer prune, and maybe hammer reblock as well.
####time machine
net/netatalk
net/avahi
rc.conf:
dbus=yes
avahidaemon=yes
cnid_metad=yes
afpd=yes
netatalk/afpd.conf:
- -tcp -noddp -uamlist uams_dhx.so,uams_dhx2.so -ipaddr 192.168.2.2
netatalk/AppleVolumes.default:
/time_machine/ "Time Machine Volume" options:tm allow:time_machine
where /time_machine is the directory you want to share and time_machine your user.
avahi/services/afpd.service:
%h
_afpovertcp._tcp
548
_device-info._tcp
0
model=Xserve
You then click the server in Finder, type in your username and password and then double click the volume so so it mounts. Go to Time Machine and choose it. You will be asked to type in the password. Now you can unmount the volume. Time Machine will keep track of it and mount when it needs it. Remember that in Finder, you can only log in with one user name per server at a time. However, Time Machine can have its own separate user that you only need to use once, when mounting the volume first time.