Fix-fix.
[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" options:tm allow:luxh
44
45 avahi/services/afpd.service:
46
47         <?xml version="1.0" standalone='no'?><!--*-nxml-*-->
48         <!DOCTYPE service-group SYSTEM "avahi-service.dtd">
49         <service-group>
50         <name replace-wildcards="yes">%h</name>
51         <service>
52         <type>_afpovertcp._tcp</type>
53         <port>548</port>
54         </service>
55         <service>
56         <type>_device-info._tcp</type>
57         <port>0</port>
58         <txt-record>model=Xserve</txt-record>
59         </service>
60         </service-group>
61
62 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.