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