add panel self refresh and explain the sysctl cpu idle states a little bettere.
[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
1dd7b016 10####X
48de5ee1 11New way, when devd is used. se_sv_dvorak is in /usr/local/share/X11/xkb/symbols/se_sv_dvorak. Add this to /usr/local/etc/X11/xorg.conf.d/input.conf:
12
13 Section "InputClass"
14 Identifier "Keyboard Defaults"
15 Driver "keyboard"
16 MatchIsKeyboard "on"
17 Option "Protocol" "standard"
18 Option "XkbRules" "base"
19 Option "XkbModel" "pc105"
20 Option "XkbLayout" "se_sv_dvorak"
21 EndSection
22
23 Section "InputClass"
24 Identifier "Mouse Defaults"
25 Driver "mouse"
26 MatchIsPointer "on"
27 EndSection
28
29
30Old way: Set keyboard layout in /etc/X11/xorg.conf.
1dd7b016 31
32 Section "InputDevice"
33 Identifier "Keyboard0"
34 Driver "kbd"
35 Option "XkbLayout" "se_sv_dvorak"
36 EndSection
37
38Enable xdm by changing 'off' to 'on' in /etc/ttys. kill -HUP 1 to take effect.
39
40 ttyv8 "/usr/local/bin/xdm -nodaemon" xterm on secure
41
cfd76669 42Disable xconsole by commenting it out in /usr/local/etc/X11/xdm/Xsetup_0. xdm reads ~/.xsession. set LC_CTYPE and exec your wm here.
1dd7b016 43
44####hammer
45The root PFS can't be mirrored to. 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. Keep the PFS symlinks in /pfs/ on the same filesystem.
46
dd439b08 47####pkgsrc
dd439b08 48
7aa7bf95 49 cd /usr/pkgsrc/bootstrap
50 mkdir /tmp/moh && ./bootstrap --prefix /tmp/moh/pkg --varbase /tmp/moh/pkgvar --workdir /tmp/moh/work --unprivileged
dd439b08 51
7aa7bf95 52mk.conf:
dd439b08 53
7aa7bf95 54 DISTDIR= /distfiles
55 WORKOBJDIR= /usr/pkgobj
56 PACKAGES= /packages
06d23a20 57 UPDATE_TARGET= package # don't think this is needed now that USE_DESTDIR is yes by default.
58 CFLAGS+= -g # don't bmake clean, it'll remove the source.
59 INSTALL_UNSTRIPPED= yes
dd439b08 60
b2e78ebd 61####time machine
5ef32090 62I 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.
63
7aa7bf95 64net/netatalk<br>
65net/avahi
b2e78ebd 66
67rc.conf:
68
69 dbus=yes
70 avahidaemon=yes
71 cnid_metad=yes
72 afpd=yes
73
74netatalk/afpd.conf:
75
76 - -tcp -noddp -uamlist uams_dhx.so,uams_dhx2.so -ipaddr 192.168.2.2
77
78netatalk/AppleVolumes.default:
79
0575f495 80 /time_machine/ "Time Machine Volume" options:tm allow:time_machine
81
82where /time_machine is the directory you want to share and time_machine your user.
b2e78ebd 83
84avahi/services/afpd.service:
85
86 <?xml version="1.0" standalone='no'?><!--*-nxml-*-->
87 <!DOCTYPE service-group SYSTEM "avahi-service.dtd">
88 <service-group>
89 <name replace-wildcards="yes">%h</name>
90 <service>
91 <type>_afpovertcp._tcp</type>
92 <port>548</port>
93 </service>
94 <service>
95 <type>_device-info._tcp</type>
96 <port>0</port>
97 <txt-record>model=Xserve</txt-record>
98 </service>
99 </service-group>
100
7843f9ad 101You 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 102
103At 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.