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