X-Git-Url: https://gitweb.dragonflybsd.org/ikiwiki.git/blobdiff_plain/71a89de66aa6fc5b0d1f222da03f30fd1f788c7d..5ef3209006fccf2bcaf643630c82d66fd2375ee5:/docs/developer/luxh/index.mdwn diff --git a/docs/developer/luxh/index.mdwn b/docs/developer/luxh/index.mdwn index 80537500..211f8db8 100644 --- a/docs/developer/luxh/index.mdwn +++ b/docs/developer/luxh/index.mdwn @@ -1,35 +1,36 @@ ###Some stuff I always forget. ####Console -echo -h >> /boot.config - -echo console=comconsole >> /boot/loader.conf - +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. +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 - -DISTDIR= /distfiles + cd /usr/pkgsrc/bootstrap + mkdir /tmp/moh && ./bootstrap --prefix /tmp/moh/pkg --varbase /tmp/moh/pkgvar --workdir /tmp/moh/work --unprivileged -WORKOBJDIR= /usr/pkgobj +mk.conf: -PACKAGES= /packages - -UPDATE_TARGET= package + DISTDIR= /distfiles + WORKOBJDIR= /usr/pkgobj + PACKAGES= /packages + UPDATE_TARGET= package # don't think this is needed now that USE_DESTDIR is yes by default. + CFLAGS+= -g # don't bmake clean, it'll remove the source. + INSTALL_UNSTRIPPED= yes ####hammer -root PFS can't be mirrored. +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 +I gave up on all this. Backing up with Time Machine usually works for some time (a half-through backup) and then cnid_metad gets a fit and thinks it's a good idea to force the exported volume read only. Backup fails and you have to start over. I heard this got even worse with Lion. I'm going to backup my important stuff with rsync and NFS. + +net/netatalk
+net/avahi rc.conf: @@ -44,7 +45,9 @@ netatalk/afpd.conf: netatalk/AppleVolumes.default: - /time_machine/ "Time Machine" options:tm allow:luxh + /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: @@ -63,4 +66,6 @@ avahi/services/afpd.service: -You then click the server in Finder, type in your username and password (remember password). You *CAN NOT* log in on the same server with more than one user. +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. + +At the moment Time Machine sometimes complains that the CNID DB on the volume is messed up, and it refuses to back up. Somehow it repairs itself and works later on.