Thursday, December 17, 2009

mac 下用 meld

Meld 是 Linux 下很習慣用的比對工具,仰賴 darwin port 的 project,Mac 下也有機會可以用了。
但是啟動的時候,遇到一些錯誤。

Xlib: extension "RANDR" missing on display "/tmp/launch-RsRIqw/:0".
Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded!
Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded!
Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded!
Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded!
Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded!
Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded!
Traceback (most recent call last):
File "/opt/local/bin/meld", line 109, in
meldapp.main()
File "/opt/local/lib/meld/meldapp.py", line 855, in main
app = MeldApp()
File "/opt/local/lib/meld/meldapp.py", line 528, in __init__
self.prefs = MeldPreferences()
File "/opt/local/lib/meld/meldapp.py", line 465, in __init__
prefs.Preferences.__init__(self, "/apps/meld", self.defaults)
File "/opt/local/lib/meld/prefs.py", line 91, in __init__
self._gconf.add_dir(rootkey, gconf.CLIENT_PRELOAD_NONE)
glib.GError: Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details - 1: Failed to get connection to session: Not enough memory)


google 了一下,發現要執行下面兩行先:

# sudo launchctl load -w /Library/LaunchDaemons/org.freedesktop.dbus-system.plist
# launchctl load -w /Library/LaunchAgents/org.freedesktop.dbus-session.plist

注意的是,很多網站兩行都已 sudo 開頭,其實第二行必須自身的帳號執行( 也是google 來的拉)。
照做之後,果然就可以動了,耶~

Thursday, December 10, 2009

log of noapic, nolapic, and normal

log of interrupt arrange (nolapic) :

BOOT_IMAGE=/boot/vmlinuz-2.6.31-16-generic root=UUID=27632531-dd03-4a63-91c3-8b6f1fdf9a82 ro quiet splash nolapic
CPU0
0: 10855 XT-PIC-XT timer
1: 4 XT-PIC-XT i8042
2: 0 XT-PIC-XT cascade
5: 3535 XT-PIC-XT ahci
7: 1 XT-PIC-XT
8: 1 XT-PIC-XT rtc0
9: 537 XT-PIC-XT acpi, ohci_hcd:usb2, ath
10: 633 XT-PIC-XT HDA Intel
11: 54 XT-PIC-XT eth0
12: 6 XT-PIC-XT i8042
15: 835 XT-PIC-XT ehci_hcd:usb1
NMI: 0 Non-maskable interrupts
LOC: 0 Local timer interrupts
SPU: 0 Spurious interrupts
CNT: 0 Performance counter interrupts
PND: 0 Performance pending work
RES: 0 Rescheduling interrupts
CAL: 0 Function call interrupts
TLB: 0 TLB shootdowns
TRM: 0 Thermal event interrupts
THR: 0 Threshold APIC interrupts
MCE: 0 Machine check exceptions
MCP: 1 Machine check polls
ERR: 1
MIS: 0

* CPUINFO still show two CPU inside, and working
log of interrupt arrange (noapic) :

BOOT_IMAGE=/boot/vmlinuz-2.6.31-16-generic root=UUID=27632531-dd03-4a63-91c3-8b6f1fdf9a82 ro quiet splash noapic
CPU0 CPU1
0: 38 0 XT-PIC-XT timer
1: 2 0 XT-PIC-XT i8042
2: 0 0 XT-PIC-XT cascade
7: 1 0 XT-PIC-XT
8: 1 0 XT-PIC-XT rtc0
9: 241 0 XT-PIC-XT acpi, ohci_hcd:usb2, ath
10: 500 0 XT-PIC-XT HDA Intel
11: 492 0 XT-PIC-XT eth0
12: 4 0 XT-PIC-XT i8042
15: 1168 0 XT-PIC-XT ehci_hcd:usb1
29: 3438 0 PCI-MSI-edge ahci
NMI: 0 0 Non-maskable interrupts
LOC: 10689 9561 Local timer interrupts
SPU: 0 0 Spurious interrupts
CNT: 0 0 Performance counter interrupts
PND: 0 0 Performance pending work
RES: 135 130 Rescheduling interrupts
CAL: 39 73 Function call interrupts
TLB: 345 246 TLB shootdowns
TRM: 0 0 Thermal event interrupts
THR: 0 0 Threshold APIC interrupts
MCE: 0 0 Machine check exceptions
MCP: 1 1 Machine check polls
ERR: 1
MIS: 0
log of interrupt arrange (normal) :

BOOT_IMAGE=/boot/vmlinuz-2.6.31-16-generic root=UUID=27632531-dd03-4a63-91c3-8b6f1fdf9a82 ro quiet splash
CPU0 CPU1
0: 51 0 IO-APIC-edge timer
1: 2 0 IO-APIC-edge i8042
7: 1 0 IO-APIC-edge
8: 1 0 IO-APIC-edge rtc0
9: 0 0 IO-APIC-fasteoi acpi
12: 4 0 IO-APIC-edge i8042
19: 405 0 IO-APIC-fasteoi ath
20: 1151 0 IO-APIC-fasteoi ohci_hcd:usb2
21: 4381 0 IO-APIC-fasteoi ehci_hcd:usb1
22: 701 0 IO-APIC-fasteoi HDA Intel
23: 541 0 IO-APIC-fasteoi eth0
29: 8871 0 PCI-MSI-edge ahci
NMI: 0 0 Non-maskable interrupts
LOC: 31080 24673 Local timer interrupts
SPU: 0 0 Spurious interrupts
CNT: 0 0 Performance counter interrupts
PND: 0 0 Performance pending work
RES: 98 130 Rescheduling interrupts
CAL: 43 64 Function call interrupts
TLB: 281 622 TLB shootdowns
TRM: 0 0 Thermal event interrupts
THR: 0 0 Threshold APIC interrupts
MCE: 0 0 Machine check exceptions
MCP: 3 3 Machine check polls
ERR: 1
MIS: 0