more minor fixes
[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.
25
26 ####time machine
27 net/netatalk<br>
28 net/avahi
29
30 rc.conf:
31
32         dbus=yes
33         avahidaemon=yes
34         cnid_metad=yes
35         afpd=yes
36
37 netatalk/afpd.conf:
38
39         - -tcp -noddp -uamlist uams_dhx.so,uams_dhx2.so -ipaddr 192.168.2.2
40
41 netatalk/AppleVolumes.default:
42
43         /time_machine/ "Time Machine Volume" options:tm allow:time_machine
44
45 where /time_machine is the directory you want to share and time_machine your user.
46
47 avahi/services/afpd.service:
48
49         <?xml version="1.0" standalone='no'?><!--*-nxml-*-->
50         <!DOCTYPE service-group SYSTEM "avahi-service.dtd">
51         <service-group>
52         <name replace-wildcards="yes">%h</name>
53         <service>
54         <type>_afpovertcp._tcp</type>
55         <port>548</port>
56         </service>
57         <service>
58         <type>_device-info._tcp</type>
59         <port>0</port>
60         <txt-record>model=Xserve</txt-record>
61         </service>
62         </service-group>
63
64 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.