remove boot.config
[ikiwiki.git] / docs / developer / luxh / index.mdwn
CommitLineData
dd439b08 1###Some stuff I always forget.
a982b522 2####Serial console
7aa7bf95 3echo console=comconsole >> /boot/loader.conf<br>
dd439b08 4ttyd0 "/usr/libexec/getty std.9600" dialup on secure
5
6####panics
7aa7bf95 7debug.debugger_on_panic=0 or put DDB_UNATTENDED in the config to panic instead of going to debugger.<br>
8remember to update dumpdev in rc.conf when you change disk.
dd439b08 9
10####pkgsrc
dd439b08 11
7aa7bf95 12 cd /usr/pkgsrc/bootstrap
13 mkdir /tmp/moh && ./bootstrap --prefix /tmp/moh/pkg --varbase /tmp/moh/pkgvar --workdir /tmp/moh/work --unprivileged
dd439b08 14
7aa7bf95 15mk.conf:
dd439b08 16
7aa7bf95 17 DISTDIR= /distfiles
18 WORKOBJDIR= /usr/pkgobj
19 PACKAGES= /packages
06d23a20 20 UPDATE_TARGET= package # don't think this is needed now that USE_DESTDIR is yes by default.
21 CFLAGS+= -g # don't bmake clean, it'll remove the source.
22 INSTALL_UNSTRIPPED= yes
dd439b08 23
24####hammer
7a52d063 25root PFS can't be mirrored.<br>
26if the filesystem gets completely filled up, do hammer viconfig and shorten snapshot retention time. then run hammer prune, and maybe hammer reblock as well.
b2e78ebd 27
28####time machine
5ef32090 29I 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.
30
7aa7bf95 31net/netatalk<br>
32net/avahi
b2e78ebd 33
34rc.conf:
35
36 dbus=yes
37 avahidaemon=yes
38 cnid_metad=yes
39 afpd=yes
40
41netatalk/afpd.conf:
42
43 - -tcp -noddp -uamlist uams_dhx.so,uams_dhx2.so -ipaddr 192.168.2.2
44
45netatalk/AppleVolumes.default:
46
0575f495 47 /time_machine/ "Time Machine Volume" options:tm allow:time_machine
48
49where /time_machine is the directory you want to share and time_machine your user.
b2e78ebd 50
51avahi/services/afpd.service:
52
53 <?xml version="1.0" standalone='no'?><!--*-nxml-*-->
54 <!DOCTYPE service-group SYSTEM "avahi-service.dtd">
55 <service-group>
56 <name replace-wildcards="yes">%h</name>
57 <service>
58 <type>_afpovertcp._tcp</type>
59 <port>548</port>
60 </service>
61 <service>
62 <type>_device-info._tcp</type>
63 <port>0</port>
64 <txt-record>model=Xserve</txt-record>
65 </service>
66 </service-group>
67
7843f9ad 68You 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.
e579cd73 69
70At 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.