<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet title="XSL formatting" type="text/xsl" href="http://goddess-gate.com/dc2/index.php/feed/rss2/xslt" ?><rss version="2.0"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:wfw="http://wellformedweb.org/CommentAPI/"
  xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
  <title>Goddess-Gate.com - Le blog 2.0 - How-to (english)</title>
  <link>http://goddess-gate.com/dc2/index.php/</link>
  <description></description>
  <language>en</language>
  <pubDate>Tue, 01 Jul 2008 10:42:34 +0200</pubDate>
  <copyright>Le contenu de ce blog est sous licence CC-BY</copyright>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Dotclear</generator>
  
    
  <item>
    <title>FreeBSD on MacBook (Core Duo and Core 2 Duo models)</title>
    <link>http://goddess-gate.com/dc2/index.php/post/251</link>
    <guid isPermaLink="false">urn:md5:305fae042cdf9ffb17801eb370d45f00</guid>
    <pubDate>Sat, 01 Mar 2008 18:24:00 +0100</pubDate>
    <dc:creator>Arnaud Boudou</dc:creator>
        <category>How-to (english)</category>
        <category>apple</category><category>freebsd</category><category>how-to</category><category>macbook</category>    
    <description>&lt;p&gt;&lt;a href=&quot;http://goddess-gate.com/dc2/index.php/post/224&quot; hreflang=&quot;goddess-gate&quot;&gt;Version française&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;&lt;strong&gt;Important (13/05/2008) : &lt;/strong&gt;As I've just bought a MacBook Pro, this post won't be updated anymore. You're free to reuse this content into a Wiki or any web page, I'll be happy to give its link from here.&lt;/p&gt;


&lt;p&gt;Dual boot FreeBSD / MacOS X on MacBook how-to (and the related issues).&lt;/p&gt;


&lt;p&gt;&lt;a href=&quot;http://goddess-gate.com/dc2/misc/how_to/freebsd_macbook/freebsd_macbook_en.png&quot;&gt;&lt;img src=&quot;http://goddess-gate.com/dc2/misc/how_to/freebsd_macbook/.freebsd_macbook_en_m.jpg&quot; alt=&quot;FreeBSD on MacBook&quot; style=&quot;display:block; margin:0 auto;&quot; /&gt;&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;Changelog:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;01/03/2008&lt;/em&gt;: Update for FreeBSD 7.0.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;28/05/2007&lt;/em&gt;: Update about sound recording, some minor changes.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;20/05/2007&lt;/em&gt;: Update for X.org 7.2.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;02/04/2007&lt;/em&gt;: Core 2 Duo model related changes.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;30/03/2007&lt;/em&gt;: Some fixes, FreeBSD Ethernet device driver, X.org French azerty mapping&lt;/li&gt;
&lt;li&gt;&lt;em&gt;29/03/2007&lt;/em&gt;: How-to uninstall FreeBSD.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;04/02/2007&lt;/em&gt;: Details on detected devices.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;01/02/2007&lt;/em&gt;: Sound driver now works.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;07/01/2007&lt;/em&gt;: 3D acceleration : kernel patch is not needed anymore.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;06/12/2006&lt;/em&gt;: Keyboard mapping with X.org.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;18/11/2006&lt;/em&gt;: Sound driver, Ethernet driver, X.org 3D acceleration, details about keyboard problems with X.org, some page setup changes.&lt;/li&gt;
&lt;li&gt;&lt;em&gt;17/11/2006&lt;/em&gt;: First details on sound management, first details on Ethernet management, new details on FreeBSD uninstall.&lt;/li&gt;
&lt;/ul&gt;    &lt;p&gt;FreeBSD on MacBook is easy, you just have to follow the above steps.&lt;/p&gt;


&lt;h3&gt;&lt;a name=&quot;sommaire&quot;&gt;&lt;/a&gt;Table of contents&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href=&quot;http://goddess-gate.com/dc2/index.php/post/#prerequis&quot;&gt;Needed&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://goddess-gate.com/dc2/index.php/post/#hardware&quot;&gt;Hardware configuration&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://goddess-gate.com/dc2/index.php/post/#install&quot;&gt;System installation&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://goddess-gate.com/dc2/index.php/post/#utilisation&quot;&gt;FreeBSD use, and detailed setup&lt;/a&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href=&quot;http://goddess-gate.com/dc2/index.php/post/#clavier&quot;&gt;Keyboard&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://goddess-gate.com/dc2/index.php/post/#netconf&quot;&gt;Network setup&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://goddess-gate.com/dc2/index.php/post/#makeworld&quot;&gt;System update and build&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://goddess-gate.com/dc2/index.php/post/#power&quot;&gt;Power management&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://goddess-gate.com/dc2/index.php/post/#ports&quot;&gt;Ports management&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://goddess-gate.com/dc2/index.php/post/#burn&quot;&gt;CD / DVD burn, and how-to eject them&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://goddess-gate.com/dc2/index.php/post/#audio&quot;&gt;Audio&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://goddess-gate.com/dc2/index.php/post/#x11&quot;&gt;X.org setup&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://goddess-gate.com/dc2/index.php/post/#uninstall&quot;&gt;Uninstall FreeBSD&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://goddess-gate.com/dc2/index.php/post/#misc&quot;&gt;Miscellaneous issues&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://goddess-gate.com/dc2/index.php/post/#more&quot;&gt;More info&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;&lt;a name=&quot;prerequis&quot;&gt;&lt;/a&gt;Needed&lt;/h3&gt;

&lt;p&gt;Let say you will use a Core Duo MacBook with French azerty keyboard (as I do). If you do use this keyboard, you will have to adapt the following setting to your needs. And if you use a Core 2 Duo MacBook, there are some some settings to change.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Download FreeBSD CD ISO image. At least you'll &lt;a href=&quot;ftp://ftp.fr.freebsd.org/pub/FreeBSD/ISO-IMAGES-i386/6.7&quot;&gt;6.7&lt;/a&gt; version. There are many available images:
&lt;ul&gt;
&lt;li&gt;disk 1 for system installation&lt;/li&gt;
&lt;li&gt;disk 2 (optional) for application installation&lt;/li&gt;
&lt;li&gt;disk 3 (optional) for application installation&lt;/li&gt;
&lt;li&gt;“livefs” to run FreeBSD from the CD-ROM (useful for repairs)&lt;/li&gt;
&lt;li&gt;“bootonly” for network installation (only with Ethernet adapter, not WIFI).&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;li&gt;Burn on a blank CD-R FreeBSD installation disk.&lt;/li&gt;
&lt;li&gt;Install &lt;a href=&quot;http://www.apple.com/macosx/bootcamp/&quot; hreflang=&quot;en&quot;&gt;Boot Camp&lt;/a&gt;. When it's done, start it up, don't burn driver disk (it's only for Windows, and you want to install FreeBSD). Then create a new partition for FreeBSD. It's size should be about 10 or 15 GB (choose as you want, more or less, you're the boss).&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href=&quot;http://goddess-gate.com/dc2/index.php/post/#sommaire&quot;&gt;Back to table of contents&lt;/a&gt;&lt;/p&gt;


&lt;h3&gt;&lt;a name=&quot;hardware&quot;&gt;&lt;/a&gt;Hardware configuration&lt;/h3&gt;

&lt;p&gt;In order to set up your system, it may be useful to know your hardware configuration. This chapter will evolve each time I will find anything useful..&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;CPU:&lt;/strong&gt; Intel Core Duo or Core 2 Duo depending on model, with two cores. An SMP kernel with ACPI support is mandatory if you want to use multi-core.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Keyboard:&lt;/strong&gt; French azerty. You'll need to use Belgian azerty in console mode, with some keyboard shortcuts which are not the same than MacOS X (use &amp;lt;alt&amp;gt; key). With X.org, if you install specific keymap file, you'll get the same keyboard mapping than MacOS X (see &lt;a href=&quot;http://goddess-gate.com/dc2/index.php/post/#clavier&quot;&gt;the related chapter&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;GPU:&lt;/strong&gt; i945GM (GMA950). Fully supported.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Display:&lt;/strong&gt; 1280x800. Fully supported with X.org 7.3.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Mouse:&lt;/strong&gt; Depend if you use an USB mouse or the trackpad. Device to use is “/dev/umsX” (X will depend of device detection order). If no mouse is plugged in, the trackpad will use “/dev/ums0”, don't works well with X.org. My Logitech MX 1000 (uses “/dev/ums0”, then the trackpad uses “/dev/ums1”), works great (see &lt;a href=&quot;http://goddess-gate.com/dc2/index.php/post/#x11&quot;&gt;the related chapter&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Audio:&lt;/strong&gt; Detected as ICH7 High Definition Audio, fully supported, but I didn't test sound recording. (see &lt;a href=&quot;http://goddess-gate.com/dc2/index.php/post/#audio&quot;&gt;the related chapter&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Webcam:&lt;/strong&gt; Detected as generic USB device. It's neither supported by &lt;a href=&quot;http://mxhaard.free.fr/&quot; hreflang=&quot;fr&quot;&gt;SPCA5xx&lt;/a&gt; nor &lt;a href=&quot;http://raaf.atspace.org/&quot; hreflang=&quot;en&quot;&gt;PWCBSD&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Firewire:&lt;/strong&gt; Detected as a Lucent FW322/323 device. It works.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Bluetooth:&lt;/strong&gt; The device is not supporter by standard bluetooth driver, “ng_ubt”. FreeBSD just seems to detect “/dev/ukbd1” and “/dev/ums1” devices. Maybe a generic driver for Bluetooth keyboard / mouse controller.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Firewire network adapter:&lt;/strong&gt; Detected as “/dev/net/fwe0” device. Should work.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Ethernet network adapter:&lt;/strong&gt; Detected as a 88E8053 Yukon PCI-E Gigabit Ethernet controller, fully supported. (see &lt;a href=&quot;http://goddess-gate.com/dc2/index.php/post/#netconf&quot;&gt;the related chapter&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;WIFI network adapter:&lt;/strong&gt; On a Core Duo MacBook, it's an Atheros 5424 adapter. Detected as “/dev/net/ath0”, it works (see &lt;a href=&quot;http://goddess-gate.com/dc2/index.php/post/#netconf&quot;&gt;the related chapter&lt;/a&gt;). On a Core 2 Duo MacBook, it's an Atheros AR5008 chipset which lacks a device driver. So you can't use it.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;DVD burner:&lt;/strong&gt; Detected as “/dev/acd0” device. With a kernel modification, it's detected as an SCSI pseudo-device “/dev/cd0”. This SCSI pseudo-device is mandatory in order to use “cdrdao”, “cdrtools” and “dvd+rw-tools” tools (see &lt;a href=&quot;http://goddess-gate.com/dc2/index.php/post/#burn&quot;&gt;the related chapter&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;SATA controller:&lt;/strong&gt; Intel ICHM7, detected and works.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;USB / USB2 controller:&lt;/strong&gt; Intel ICH7, detected and works.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Battery:&lt;/strong&gt; Detected, “battery0” device.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Dmesg is (Core Duo MacBook):&lt;/p&gt;

&lt;pre&gt;Copyright (c) 1992-2008 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008
    root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC
Timecounter &amp;quot;i8254&amp;quot; frequency 1193182 Hz quality 0
CPU: Genuine Intel(R) CPU           T2500  @ 2.00GHz (1997.34-MHz 686-class CPU)
  Origin = &amp;quot;GenuineIntel&amp;quot;  Id = 0x6e8  Stepping = 8
  Features=0xbfe9fbff&amp;lt;FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE&amp;gt;
  Features2=0xc1a9&amp;lt;SSE3,MON,VMX,EST,TM2,xTPR,PDCM&amp;gt;
  AMD Features=0x100000&amp;lt;NX&amp;gt;
  Cores per package: 2
real memory  = 2114781184 (2016 MB)
avail memory = 2059812864 (1964 MB)
ACPI APIC Table: &amp;lt;APPLE  Apple00&amp;gt;
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
ioapic0: Changing APIC ID to 1
ioapic0 &amp;lt;Version 2.0&amp;gt; irqs 0-23 on motherboard
kbd0 at kbdmux0
ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
hptrr: HPT RocketRAID controller driver v1.1 (Feb 24 2008 19:59:27)
acpi0: &amp;lt;APPLE Apple00&amp;gt; on motherboard
acpi0: [ITHREAD]
acpi_ec0: &amp;lt;Embedded Controller: GPE 0x17, ECDT&amp;gt; port 0x62,0x66 on acpi0
acpi0: Power Button (fixed)
Timecounter &amp;quot;HPET&amp;quot; frequency 14318180 Hz quality 900
Timecounter &amp;quot;ACPI-fast&amp;quot; frequency 3579545 Hz quality 1000
acpi_timer0: &amp;lt;24-bit timer at 3.579545MHz&amp;gt; port 0x408-0x40b on acpi0
cpu0: &amp;lt;ACPI CPU&amp;gt; on acpi0
est0: &amp;lt;Enhanced SpeedStep Frequency Control&amp;gt; on cpu0
p4tcc0: &amp;lt;CPU Frequency Thermal Control&amp;gt; on cpu0
cpu1: &amp;lt;ACPI CPU&amp;gt; on acpi0
est1: &amp;lt;Enhanced SpeedStep Frequency Control&amp;gt; on cpu1
p4tcc1: &amp;lt;CPU Frequency Thermal Control&amp;gt; on cpu1
acpi_acad0: &amp;lt;AC Adapter&amp;gt; on acpi0
acpi_lid0: &amp;lt;Control Method Lid Switch&amp;gt; on acpi0
acpi_button0: &amp;lt;Power Button&amp;gt; on acpi0
acpi_button1: &amp;lt;Sleep Button&amp;gt; on acpi0
pcib0: &amp;lt;ACPI Host-PCI bridge&amp;gt; port 0xcf8-0xcff on acpi0
pci0: &amp;lt;ACPI PCI bus&amp;gt; on pcib0
vgapci0: &amp;lt;VGA-compatible display&amp;gt; port 0x20f0-0x20f7 mem 0x90380000-0x903fffff,0x80000000-0x8fffffff,0x90400000-0x9043ffff irq 16 at device 2.0 on pci0
agp0: &amp;lt;Intel 82945GM (945GM GMCH) SVGA controller&amp;gt; on vgapci0
agp0: detected 16124k stolen memory
agp0: aperture size is 256M
vgapci1: &amp;lt;VGA-compatible display&amp;gt; mem 0x90300000-0x9037ffff at device 2.1 on pci0
pci0: &amp;lt;dasp&amp;gt; at device 7.0 (no driver attached)
pci0: &amp;lt;multimedia&amp;gt; at device 27.0 (no driver attached)
pcib1: &amp;lt;ACPI PCI-PCI bridge&amp;gt; irq 17 at device 28.0 on pci0
pci1: &amp;lt;ACPI PCI bus&amp;gt; on pcib1
mskc0: &amp;lt;Marvell Yukon 88E8053 Gigabit Ethernet&amp;gt; port 0x1000-0x10ff mem 0x90200000-0x90203fff irq 16 at device 0.0 on pci1
msk0: &amp;lt;Marvell Technology Group Ltd. Yukon EC Id 0xb6 Rev 0x02&amp;gt; on mskc0
msk0: Ethernet address: 00:16:cb:ce:f9:71 
miibus0: &amp;lt;MII bus&amp;gt; on msk0 
e1000phy0: &amp;lt;Marvell 88E1111 Gigabit PHY&amp;gt; PHY 0 on miibus0
e1000phy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX-FDX, auto
mskc0: [FILTER]
pcib2: &amp;lt;ACPI PCI-PCI bridge&amp;gt; irq 16 at device 28.1 on pci0
pci2: &amp;lt;ACPI PCI bus&amp;gt; on pcib2
ath0: &amp;lt;Atheros 5424/2424&amp;gt; mem 0x90100000-0x9010ffff irq 17 at device 0.0 on pci2
ath0: [ITHREAD]
ath0: using obsoleted if_watchdog interface
ath0: Ethernet address: 00:16:cb:be:f8:40
ath0: mac 10.3 phy 6.1 radio 10.2
uhci0: &amp;lt;UHCI (generic) USB controller&amp;gt; port 0x20a0-0x20bf irq 21 at device 29.0 on pci0
uhci0: [GIANT-LOCKED]
uhci0: [ITHREAD]
usb0: &amp;lt;UHCI (generic) USB controller&amp;gt; on uhci0
usb0: USB revision 1.0
uhub0: &amp;lt;Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1&amp;gt; on usb0
uhub0: 2 ports with 2 removable, self powered
uhci1: &amp;lt;UHCI (generic) USB controller&amp;gt; port 0x2080-0x209f irq 19 at device 29.1 on pci0
uhci1: [GIANT-LOCKED]
uhci1: [ITHREAD]
usb1: &amp;lt;UHCI (generic) USB controller&amp;gt; on uhci1
usb1: USB revision 1.0
uhub1: &amp;lt;Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1&amp;gt; on usb1
uhub1: 2 ports with 2 removable, self powered
uhci2: &amp;lt;UHCI (generic) USB controller&amp;gt; port 0x2060-0x207f irq 18 at device 29.2 on pci0
uhci2: [GIANT-LOCKED]
uhci2: [ITHREAD]
usb2: &amp;lt;UHCI (generic) USB controller&amp;gt; on uhci2
usb2: USB revision 1.0
uhub2: &amp;lt;Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1&amp;gt; on usb2
uhub2: 2 ports with 2 removable, self powered
uhci3: &amp;lt;UHCI (generic) USB controller&amp;gt; port 0x2040-0x205f irq 16 at device 29.3 on pci0
uhci3: [GIANT-LOCKED]
uhci3: [ITHREAD]
usb3: &amp;lt;UHCI (generic) USB controller&amp;gt; on uhci3
usb3: USB revision 1.0
uhub3: &amp;lt;Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1&amp;gt; on usb3
uhub3: 2 ports with 2 removable, self powered
ehci0: &amp;lt;Intel 82801GB/R (ICH7) USB 2.0 controller&amp;gt; mem 0x90445400-0x904457ff irq 21 at device 29.7 on pci0
ehci0: [GIANT-LOCKED]
ehci0: [ITHREAD]
usb4: EHCI version 1.0
usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3
usb4: &amp;lt;Intel 82801GB/R (ICH7) USB 2.0 controller&amp;gt; on ehci0
usb4: USB revision 2.0
uhub4: &amp;lt;Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1&amp;gt; on usb4
uhub4: 8 ports with 8 removable, self powered
ugen0: &amp;lt;Micron Built-in iSight, class 255/255, rev 2.00/1.84, addr 2&amp;gt; on uhub4
pcib3: &amp;lt;ACPI PCI-PCI bridge&amp;gt; at device 30.0 on pci0
pci3: &amp;lt;ACPI PCI bus&amp;gt; on pcib3
fwohci0: &amp;lt;Lucent FW322/323&amp;gt; mem 0x90000000-0x90000fff irq 19 at device 3.0 on pci3
fwohci0: [FILTER]
fwohci0: OHCI version 1.0 (ROM=0)
fwohci0: No. of Isochronous channels is 8.
fwohci0: EUI64 00:16:cb:ff:fe:e4:24:ce
fwohci0: Phy 1394a available S400, 3 ports.
fwohci0: Link S400, max_rec 2048 bytes.
firewire0: &amp;lt;IEEE1394(FireWire) bus&amp;gt; on fwohci0
dcons_crom0: &amp;lt;dcons configuration ROM&amp;gt; on firewire0
dcons_crom0: bus_addr 0x13c4000
fwe0: &amp;lt;Ethernet over FireWire&amp;gt; on firewire0
if_fwe0: Fake Ethernet address: 02:16:cb:e4:24:ce
fwe0: Ethernet address: 02:16:cb:e4:24:ce
fwip0: &amp;lt;IP over FireWire&amp;gt; on firewire0
fwip0: Firewire address: 00:16:cb:ff:fe:e4:24:ce @ 0xfffe00000000, S400, maxrec 2048
sbp0: &amp;lt;SBP-2/SCSI over FireWire&amp;gt; on firewire0
fwohci0: Initiate bus reset
fwohci0: BUS reset
fwohci0: node_id=0xc000ffc0, gen=2, CYCLEMASTER mode
isab0: &amp;lt;PCI-ISA bridge&amp;gt; at device 31.0 on pci0
isa0: &amp;lt;ISA bus&amp;gt; on isab0
atapci0: &amp;lt;Intel ICH7 UDMA100 controller&amp;gt; port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x20c0-0x20cf irq 18 at device 31.1 on pci0
ata0: &amp;lt;ATA channel 0&amp;gt; on atapci0
ata0: [ITHREAD]
ata1: &amp;lt;ATA channel 1&amp;gt; on atapci0
ata1: [ITHREAD]
atapci1: &amp;lt;Intel ICH7M SATA300 controller&amp;gt; port 0x20d8-0x20df,0x20fc-0x20ff,0x20d0-0x20d7,0x20f8-0x20fb,0x2020-0x202f mem 0x90445000-0x904453ff irq 19 at device 31.2 on pci0
atapci1: [ITHREAD]
ata2: &amp;lt;ATA channel 0&amp;gt; on atapci1
ata2: [ITHREAD]
ata3: &amp;lt;ATA channel 1&amp;gt; on atapci1
ata3: [ITHREAD]
pci0: &amp;lt;serial bus, SMBus&amp;gt; at device 31.3 (no driver attached)
battery0: &amp;lt;ACPI Control Method Battery&amp;gt; on acpi0
pmtimer0 on isa0
ppc0: parallel port not found.
sc0: &amp;lt;System console&amp;gt; at flags 0x100 on isa0
sc0: VGA &amp;lt;16 virtual consoles, flags=0x300&amp;gt;
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0: port may not be enabled
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0: port may not be enabled
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 8250 or not responding
sio0: [FILTER]
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
vga0: &amp;lt;Generic ISA VGA&amp;gt; at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
ukbd0: &amp;lt;Apple Computer Apple Internal Keyboard / Trackpad, class 0/0, rev 2.00/0.64, addr 2&amp;gt; on uhub0
kbd1 at ukbd0
ums0: &amp;lt;Apple Computer Apple Internal Keyboard / Trackpad, class 0/0, rev 2.00/0.64, addr 2&amp;gt; on uhub0
ums0: 3 buttons.
uhid0: &amp;lt;Apple Computer Apple Internal Keyboard / Trackpad, class 0/0, rev 2.00/0.64, addr 2&amp;gt; on uhub0
uhid1: &amp;lt;Apple Computer, Inc. IR Receiver, class 0/0, rev 2.00/1.10, addr 2&amp;gt; on uhub2
ukbd1: &amp;lt;vendor 0x05ac product 0x1000, class 0/0, rev 2.00/19.65, addr 2&amp;gt; on uhub3
kbd2 at ukbd1
ums1: &amp;lt;vendor 0x05ac product 0x1000, class 0/0, rev 2.00/19.65, addr 2&amp;gt; on uhub3
ums1: 5 buttons.
Timecounters tick every 1.000 msec
hptrr: no controller detected.firewire0: 1 nodes, maxhop &amp;lt;= 0, cable IRM = 0 (me)
firewire0: bus manager 0 (me)

acd0: DVDR &amp;lt;MATSHITADVD-R UJ-857/HBEA&amp;gt; at ata0-master UDMA66
ad5: 57231MB &amp;lt;TOSHIBA MK6034GSX AH105B&amp;gt; at ata2-slave SATA150
GEOM_LABEL: Label for provider ad5p1 is msdosfs/EFI.
WARNING: Expected rawoffset 0, found 84295720
SMP: AP CPU #1 Launched!
Trying to mount root from ufs:/dev/ad5s3a
GEOM_LABEL: Label msdosfs/EFI removed.&lt;/pre&gt;


&lt;p&gt;&lt;a href=&quot;http://goddess-gate.com/dc2/index.php/post/#sommaire&quot;&gt;Back to table of contents&lt;/a&gt;&lt;/p&gt;


&lt;h3&gt;&lt;a name=&quot;install&quot;&gt;&lt;/a&gt;System installation&lt;/h3&gt;

&lt;p&gt;When the destination partition created by Boot Camp Assistant, reboot your MacBook, and let &amp;lt;alt&amp;gt; key pressed to get the boot menu. Select CD-ROM (with “Windows” label) to start FreeBSD installation. While installing FreeBSD, you may refer to &lt;a href=&quot;http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/&quot; hreflang=&quot;en&quot;&gt;online handbook&lt;/a&gt;, very well documented. In any case, you may follow theses instructions:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;At boot menu, choose default startup, validating your choice with &amp;lt;Enter&amp;gt;.&lt;/li&gt;
&lt;li&gt;At country selection, choose “France”. This choice will impact default character set for all users on installed system.&lt;/li&gt;
&lt;li&gt;At keyboard layout selection, choose “Belgian”. It the closer keyboard layout from French mac azerty layout.&lt;/li&gt;
&lt;li&gt;At next menu, choose “Custom Install”.&lt;/li&gt;
&lt;li&gt;Choose “Partition” in order to create a slice for FreeBSD.&lt;/li&gt;
&lt;li&gt;While creating slice for FreeBSD, you must convert (&amp;lt;T&amp;gt; key) the slice with “FAT” created by Boot Camp to FreeBSD format (number 165), then set it bootable (&amp;lt;S&amp;gt; key). Leave this screen (&amp;lt;Q&amp;gt; key). Then choose a “Standard” boot manager (second choice into the list).&lt;/li&gt;
&lt;li&gt;Choose “Label” in order to create mount points. Auto mode (&amp;lt;A&amp;gt; key) should be good. Leave this screen (&amp;lt;Q&amp;gt; key).&lt;/li&gt;
&lt;li&gt;Choose “Distributions”, then “Kern-Developer” (system sources will be useful). When the installer asks if you want to install ports tree, answer “Yes”, then “Exit”.&lt;/li&gt;
&lt;li&gt;Choose “Media”, then “CD/DVD”.&lt;/li&gt;
&lt;li&gt;Finally, choose “Commit” to start FreeBSD installation.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;When the files are copied on the hard drive, you will be asked if you want to perform post-installation tasks. You should accept. I follow these steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;“Root password”: set root password.&lt;/li&gt;
&lt;li&gt;“User management”, then “User”: create a user without administration rights. For all users you create, replace shell “/bin/sh” by “/bin/csh”. When all users are created, choose “Exit” to come back to previous menu.&lt;/li&gt;
&lt;li&gt;“Time zone”: choose the time zone. You will be asked if the CMOS clock is set to UTC time: choose “Yes”, then your time zone.&lt;/li&gt;
&lt;li&gt;“Console” then
&lt;ul&gt;
&lt;li&gt;“Font”: choose “ISO 8859-15”&lt;/li&gt;
&lt;li&gt;“Repeat”: choose “Fast” (it's repetition speed when you leave a key pressed).&lt;/li&gt;
&lt;li&gt;“Exit” to go out “Console” menu.&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;li&gt;“Networking” then
&lt;ul&gt;
&lt;li&gt;You may choose network services you want into this menu.&lt;/li&gt;
&lt;li&gt;“Interface”: network interface setting. As only WIFI adapter is detected (“ath0”), and you can't choose network to connect and wireless security mode while installing FreeBSD, this step may be forgotten. But if you want to connect to network through Firewire adapter (“fwe0”), you may set up TCP/IP settings here.&lt;/li&gt;
&lt;li&gt;“sshd”: if you want to run SSH daemon at machine startup.&lt;/li&gt;
&lt;li&gt;“Exit” to come back to previous menu.&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;li&gt;“Startup” then
&lt;ul&gt;
&lt;li&gt;You may choose various startup settings here.&lt;/li&gt;
&lt;li&gt;“Quotas”: I disable user quotas setup. You may leave it if you want.&lt;/li&gt;
&lt;li&gt;“Exit” to go out “Startup” menu.&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;li&gt;“Exit” to go out post-installation tasks menu.&lt;/li&gt;
&lt;li&gt;“Exit” to come back to initial menu.&lt;/li&gt;
&lt;li&gt;“Exit Install” to reboot computer.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href=&quot;http://goddess-gate.com/dc2/index.php/post/#sommaire&quot;&gt;Back to table of contents&lt;/a&gt;&lt;/p&gt;


&lt;h3&gt;&lt;a name=&quot;utilisation&quot;&gt;&lt;/a&gt;FreeBSD use, and detailed setup&lt;/h3&gt;

&lt;p&gt;In order to boot FreeBSD, you have to select startup disk while booting computer. For this, leave &amp;lt;Alt&amp;gt; key pressed. Startup disk has “Windows” label, even is an other exploitation system than Microsoft's one is installed.&lt;/p&gt;


&lt;p&gt;When the system is up, serious things begin. Now, log in with “root” user.&lt;/p&gt;


&lt;p&gt;&lt;a href=&quot;http://goddess-gate.com/dc2/index.php/post/#sommaire&quot;&gt;Back to table of contents&lt;/a&gt;&lt;/p&gt;


&lt;h4&gt;&lt;a name=&quot;clavier&quot;&gt;&lt;/a&gt;Keyboard&lt;/h4&gt;


&lt;p&gt;Belgian layout is the closer layout to mac French azerty layout, but without being identical. Some character are not at the same place, or need keyboard shortcuts.&lt;/p&gt;


&lt;pre&gt;&amp;lt; : &amp;lt;@&amp;gt;
&amp;gt; : &amp;lt;#&amp;gt;
| : &amp;lt;alt&amp;gt;+&amp;lt;1&amp;gt;
@ : &amp;lt;alt&amp;gt;+&amp;lt;2&amp;gt;
# : &amp;lt;alt&amp;gt;+&amp;lt;3&amp;gt;
{ : &amp;lt;alt&amp;gt;+&amp;lt;9&amp;gt;
} : &amp;lt;alt&amp;gt;+&amp;lt;0&amp;gt;
[ : &amp;lt;alt&amp;gt;+&amp;lt;^&amp;gt;
] : &amp;lt;alt&amp;gt;+&amp;lt;shift&amp;gt;+&amp;lt;$&amp;gt;
` : &amp;lt;alt&amp;gt;+&amp;lt;`&amp;gt;
~ : &amp;lt;alt&amp;gt;+&amp;lt;=&amp;gt;&lt;/pre&gt;


&lt;p&gt;With X.org, all MacOS X shortcuts are available if you install some patches described into X.org section.&lt;/p&gt;


&lt;p&gt;&lt;a href=&quot;http://goddess-gate.com/dc2/index.php/post/#sommaire&quot;&gt;Back to table of contents&lt;/a&gt;&lt;/p&gt;


&lt;h4&gt;&lt;a name=&quot;netconf&quot;&gt;&lt;/a&gt;Network setup&lt;/h4&gt;


&lt;h5&gt;Firewire network connection&lt;/h5&gt;

&lt;p&gt;I could not test, then I don't know if it works. As the adapter is detected, it should works flawlessly. If someone could try, he may leave me comment.&lt;/p&gt;


&lt;h5&gt;Ethernet network connection (FreeBSD device driver)&lt;/h5&gt;


&lt;p&gt;You may set up the driver to use DHCP or fixed IP address.&lt;/p&gt;


&lt;p&gt;For DHCP, edit file “/etc/rc.conf” and add the following line:&lt;/p&gt;

&lt;pre&gt;ifconfig_msk0=&amp;quot;DHCP&amp;quot;&lt;/pre&gt;


&lt;p&gt;For fixed IP address, edit file “/etc/rc.conf” and add the following lines:&lt;/p&gt;

&lt;pre&gt;defaultrouter=&amp;quot;&amp;lt;gateway_ip&amp;gt;&amp;quot;
ifconfig_rl0=&amp;quot;inet 1&amp;lt;ip_address&amp;gt; netmask &amp;lt;subnet_mask&amp;gt;&amp;quot;&lt;/pre&gt;


&lt;p&gt;Then, reboot your computer to apply changes.&lt;/p&gt;


&lt;h5&gt;WIFI network connection (Core Duo models only)&lt;/h5&gt;

&lt;p&gt;For network settings, let say you will connect to  WIFI network, using WPA/WPA2 security settings and DHCP. For other settings, see &lt;a href=&quot;http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-wireless.html&quot; hreflang=&quot;en&quot;&gt;online handbook&lt;/a&gt;.&lt;/p&gt;


&lt;p&gt;Then, you must set up FreeBSD to connect to the correct WIFI network, using the correct password. There are two steps. First, modify “/etc/rc.conf” file and add the following line:&lt;/p&gt;

&lt;pre&gt;ifconfig_ath0=&amp;quot;WPA DHCP&amp;quot;&lt;/pre&gt;

&lt;p&gt;This line is used to use WPA mode, with DHCP IP attribution, on “ath0” adapter.&lt;/p&gt;


&lt;p&gt;WPA settings are into “/etc/wpa_supplicant.conf” (create it). You have to add the following lines:&lt;/p&gt;

&lt;pre&gt;network={
    ssid=&amp;quot;your_ssid&amp;quot;
    key_mgmt=WPA-PSK
    psk=&amp;quot;your_key&amp;quot;
}&lt;/pre&gt;

&lt;p&gt;“your_ssid” is the WIFI network name to connect.&lt;br /&gt;
“your_cle” is the connection key of this network.&lt;/p&gt;


&lt;p&gt;You may now reboot MacBook which will connect to your WIFI network.&lt;/p&gt;


&lt;p&gt;&lt;a href=&quot;http://goddess-gate.com/dc2/index.php/post/#sommaire&quot;&gt;Back to table of contents&lt;/a&gt;&lt;/p&gt;


&lt;h4&gt;&lt;a name=&quot;makeworld&quot;&gt;&lt;/a&gt;System update and build&lt;/h4&gt;

&lt;p&gt;In order to track system updates (better from a security and feature focus), you follow the -STABLE branch of FreeBSD 7.x. This how-to itself consider it's the case. If you don't, some features may be unavailable. For this, you'll have to follow these steps.&lt;/p&gt;


&lt;p&gt;First, create a “/opt/” and a “/opt/data/” folder. Into the “/opt/data/”, copy file “/usr/share/examples/cvsup/standard-supfile”. Then apply the following changes to it: replace line “*default host=CHANGE_THIS.FreeBSD.org” by “*default host=cvsup2.fr.FreeBSD.org” (replace “cvsup2.fr.FreeBSD.org” by the nearest mirror), and replace line “*default release=cvs tag=RELENG_7_0” par “*default release=cvs tag=RELENG_7” (it is possible that the first to be slightly different, but the result must be the one given).&lt;/p&gt;


&lt;p&gt;Then get the file named “&lt;a href=&quot;http://goddess-gate.com/dc2/misc/how_to/freebsd_macbook/update_src.sh&quot;&gt;FreeBSD sources update script&lt;/a&gt;”, copy it to “/opt/update_src.sh” and give it execution rights.&lt;/p&gt;


&lt;p&gt;Then execute this script. It will update system sources.&lt;/p&gt;


&lt;p&gt;When the source files are updated, go into folder “/usr/src/sys/i386/conf” and copy the file “GENERIC” to another name, i.e. “MYCOMPUTER” (don't forget this name, it will be used later). Modify this file and replace the line&lt;/p&gt;

&lt;pre&gt;ident           GENERIC&lt;/pre&gt;

&lt;p&gt;by&lt;/p&gt;

&lt;pre&gt;ident           MYCOMPUTER&lt;/pre&gt;

&lt;p&gt;then add the following lines (at the end of file)&lt;/p&gt;

&lt;pre&gt;options         CPU_SUSP_HLT                # Enable HLT instruction when the CPU is idle. The laptop will be cooler and use less energy.
options         CPU_UPGRADE_HW_CACHE        # Disable useless cache flush. Performances may be enhanced.
options         DEVICE_POLLING              # Enable compatible network adapter polling. Performances may be enhanced.
options         ZERO_COPY_SOCKETS           # Enable network transfers without useless copies. Performances may be enhanced.
device          drm                         # Enable graphic acceleration (base support).
device          i915drm                     # Enable graphic acceleration (i945GM support).
device          atapicam                    # Enable ATA drives access through an SCSI sub-system.
device          sound                       # Enable sound support (base support).
device          snd_hda                     # Enable Intel ICH7 High Definition Audio support&lt;/pre&gt;


&lt;p&gt;You must perform the copy and modify step each time you update system sources.&lt;/p&gt;


&lt;p&gt;Then modify the file “/etc/make.conf”, and give it the following content&lt;/p&gt;

&lt;pre&gt;CPUTYPE?=prescott
CFLAGS= -O2 -fno-strict-aliasing -pipe
COPTFLAGS= -O -pipe
NO_PROFILE=true
KERNCONF=MYCOMPUTER&lt;/pre&gt;


&lt;p&gt;“Prescott” CPUTYPE enable SSE3 support while compiling (“pentium-m” CPUTYPE doesn't have SSE3 support even if closer to Core Duo architecture than “prescott”). If you own a Core 2 Duo MacBook, you should use “nocona” (in order to enable 64 bit support).&lt;/p&gt;


&lt;p&gt;Now, create or modify the file “/etc/rc.local” and add the following line:&lt;/p&gt;

&lt;pre&gt;/sbin/ifconfig ath0 polling&lt;/pre&gt;

&lt;p&gt;This line enable the polling mode on WIFI adapter. For now, it's not supported but it may be later. So you may add this line now.&lt;/p&gt;


&lt;p&gt;If you use FreeBSD Ethernet adapter driver, you may add the following line:&lt;/p&gt;

&lt;pre&gt;/sbin/ifconfig msk0 polling&lt;/pre&gt;


&lt;p&gt;If you use the Firewire network, you may add the following line:&lt;/p&gt;

&lt;pre&gt;/sbin/ifconfig fwe0 polling&lt;/pre&gt;


&lt;p&gt;Then get to the file named “&lt;a href=&quot;http://goddess-gate.com/dc2/misc/how_to/freebsd_macbook/build_freebsd_01.sh&quot;&gt;FreeBSD update script (01)&lt;/a&gt;”, copy it to “/opt/build_freebsd_01.sh]” and give it execution rights.&lt;/p&gt;


&lt;p&gt;This script will:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Clean “/usr/obj”, which contains all temporary files from previous system compilation.&lt;/li&gt;
&lt;li&gt;Modify if necessary configuration files with  &lt;a href=&quot;http://www.freebsd.org/cgi/man.cgi?query=mergemaster&amp;amp;apropos=0&amp;amp;sektion=0&amp;amp;manpath=FreeBSD+7.0-RELEASE&amp;amp;format=html&quot; hreflang=&quot;en&quot;&gt;mergemaster&lt;/a&gt; tool.&lt;/li&gt;
&lt;li&gt;Build the system&lt;/li&gt;
&lt;li&gt;Build the kernel and all modules&lt;/li&gt;
&lt;li&gt;Install the kernel and modules&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;System, kernel and modules build and installation take about 30 minutes on 2 GHz Core Duo MacBook.&lt;/p&gt;


&lt;p&gt;Then get to the file named “&lt;a href=&quot;http://goddess-gate.com/dc2/misc/how_to/freebsd_macbook/build_freebsd_02.sh&quot;&gt;FreeBSD update script (02)&lt;/a&gt;”, copy it to “/opt/build_freebsd_02.sh]” and give it execution rights.&lt;/p&gt;


&lt;p&gt;This script will:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Mount filesystems and activate swap&lt;/li&gt;
&lt;li&gt;Install the new system&lt;/li&gt;
&lt;li&gt;Modify if necessary configuration files with  &lt;a href=&quot;http://www.freebsd.org/cgi/man.cgi?query=mergemaster&amp;amp;apropos=0&amp;amp;sektion=0&amp;amp;manpath=FreeBSD+7.0-RELEASE&amp;amp;format=html&quot; hreflang=&quot;en&quot;&gt;mergemaster&lt;/a&gt; tool.&lt;/li&gt;
&lt;li&gt;Reboot the computer&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;In order to build the system, you need to follow these steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Update sources with “/opt/update_src.sh”&lt;/li&gt;
&lt;li&gt;Execute the installation first part with “/opt/build_freebsd_01.sh”&lt;/li&gt;
&lt;li&gt;Reboot computer in single user mode (option #4 at startup menu)&lt;/li&gt;
&lt;li&gt;Execute the installation first part with “/opt/build_freebsd_02.sh”&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href=&quot;http://goddess-gate.com/dc2/index.php/post/#sommaire&quot;&gt;Back to table of contents&lt;/a&gt;&lt;/p&gt;


&lt;h4&gt;&lt;a name=&quot;power&quot;&gt;&lt;/a&gt;Power management&lt;/h4&gt;

&lt;p&gt;When we use a laptop, we try to get the longest autonomy, and try to keep it cool (in order to keep fans stopped, which use power to run). A first step in this direction is to enable “CPU_SUSP_HLT” option into the kernel. This instruction put the CPU into idle state, where it uses less energy.&lt;/p&gt;


&lt;p&gt;Another possible option is to activate “powerd”. This daemon uses ACPI in order to adapt CPU frequency to the needs. On a MacBook 2 GHz, frequency automatically goes from 125 MHz to 2 GHz (of course with many steps between). In order to enable ”powerd”, you must add the following lines into “/etc/rc.conf” file:&lt;/p&gt;

&lt;pre&gt;powerd_enable=&amp;quot;YES&amp;quot;
powerd_flags=&amp;quot;-a adaptive -b adaptive&amp;quot;&lt;/pre&gt;

&lt;p&gt;The reboot the computer or execute “/etc/rc.d/powerd start” in order to apply changes.&lt;/p&gt;


&lt;p&gt;You can get the CPU frequency (MHz) with the following command line:&lt;/p&gt;

&lt;pre&gt;sysctl dev.cpu.0.freq&lt;/pre&gt;


&lt;p&gt;Other economy saving modes may be possible, i.e. deep sleep when we close the need, but I don't know how to enable it. When I'll have of the needed information, I'll update this chapter&lt;/p&gt;


&lt;p&gt;&lt;a href=&quot;http://goddess-gate.com/dc2/index.php/post/#sommaire&quot;&gt;Back to table of contents&lt;/a&gt;&lt;/p&gt;


&lt;h4&gt;&lt;a name=&quot;ports&quot;&gt;&lt;/a&gt;Ports management&lt;/h4&gt;

&lt;p&gt;If you want to install software on FreeBSD, you should use port tree. A “port” is a set of information saying where to download software sources, how to build and install it, then manage all dependencies. In order to easily manage these ports, it's useful to install “portupgrade”. For this, follow these instructions:&lt;/p&gt;


&lt;p&gt;Into the “/opt/data/”, copy file “/usr/share/examples/cvsup/ports-supfile”. Then apply the following changes to it: replace line “*default host=CHANGE_THIS.FreeBSD.org” by “*default host=cvsup2.fr.FreeBSD.org” (replace “cvsup2.fr.FreeBSD.org” by the nearest mirror),&lt;/p&gt;


&lt;p&gt;Then get the file named “&lt;a href=&quot;http://goddess-gate.com/dc2/misc/how_to/freebsd_macbook/update_ports.sh&quot;&gt;FreeBSD Ports update script&lt;/a&gt;”, copy it to “/opt/update_ports.sh” and give it execution rights.&lt;/p&gt;


&lt;p&gt;Execute this script. It will update ports tree. The two last commands will fail, but it's not important at the moment (“portsdb” and “portversion” are parts of “portupgrade” which is not installed).&lt;/p&gt;


&lt;p&gt;Then go into “/usr/ports/ports-mgmt/portupgrade/”, then execute “make install clean”. The system will install portupgrade and all its dependencies. Execute “rehash” in order to refresh available commands list, nd you're ready to use portupgrade. It has many parts:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;“portinstall” installs an port and its dependencies. I.e., “portinstall vim” will install “vim”.&lt;/li&gt;
&lt;li&gt;“portsdb” manage ports database (the one used by portupgrade). “portsdb -F” (used into the above script) update available ports list.&lt;/li&gt;
&lt;li&gt;“portversion” checks ports versions. “portversion -vl '&amp;lt;'” (used into the above script) list all installed ports and with an available update.&lt;/li&gt;
&lt;li&gt;“pkg_info“ give information on ports. Without parameter, it list all installed ports. “pkg_info -L a_port” lists all files installed with a port.&lt;/li&gt;
&lt;li&gt;“portupgrade” upgrade an installed port. “-a” parameter upgrade all ports with an available update.&lt;/li&gt;
&lt;li&gt;“pkg_deinstall“ uninstall a port.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Of course, man pages will give you all available options.&lt;/p&gt;


&lt;p&gt;The above script updates ports tree, available ports database, and display all ports with an available update.&lt;/p&gt;


&lt;p&gt;If you want to use configure and build option for ports, you have to available methods:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;“/etc/make.conf“: these build options will be available for all ports.&lt;/li&gt;
&lt;li&gt;“/usr/local/etc/pkgtools.conf”: these build options may be specified for a given port. This method is only available with portupgrade (and the associated tools).&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href=&quot;http://goddess-gate.com/dc2/index.php/post/#sommaire&quot;&gt;Back to table of contents&lt;/a&gt;&lt;/p&gt;


&lt;h4&gt;&lt;a name=&quot;burn&quot;&gt;&lt;/a&gt;CD / DVD burn, and how-to eject them&lt;/h4&gt;


&lt;h5&gt;CD-R burn&lt;/h5&gt;

&lt;p&gt;You have two ways to burn CD-R.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;“burncd”. This tool is a part of base system, and allow you to use ATAPI burners. Each of my attempts was apparently successful, but I was unable to mount the freshly burnt CD-R.&lt;/li&gt;
&lt;li&gt;“cdrecord”. This tool must be installed via ports tree. As it needs an SCSI burner, you'll have to use “/dev/cd0” device instead of “/dev/acd0”. With this tool, I could successfully burn and mount my CD-R.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If you want more information about CD-R burn, you can find it into the &lt;a href=&quot;http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/creating-cds.html&quot; hreflang=&quot;en&quot;&gt;online handbook&lt;/a&gt;.&lt;/p&gt;


&lt;h5&gt;DVD burn&lt;/h5&gt;

&lt;p&gt;You don't have any choice, you'll have to use “dvd+rw-tools” (install it via port tree) and “/dev/cd0” device. DVD burn and mount where all successful.&lt;/p&gt;


&lt;p&gt;If you want more information about DVD burn, you can find it into the &lt;a href=&quot;http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/creating-dvds.html&quot; hreflang=&quot;fr&quot;&gt;online handbook&lt;/a&gt;.&lt;/p&gt;


&lt;p&gt;This have nothing to do with media burning, but if you want to eject your CD or DVD don't forget to install the port “eject”.&lt;/p&gt;


&lt;p&gt;&lt;a href=&quot;http://goddess-gate.com/dc2/index.php/post/#sommaire&quot;&gt;Back to table of contents&lt;/a&gt;&lt;/p&gt;


&lt;h4&gt;&lt;a name=&quot;audio&quot;&gt;&lt;/a&gt;Audio&lt;/h4&gt;

&lt;p&gt;MacBook's audio device is an ICH7 using &lt;acronym title=&quot;High Definition Audio&quot;&gt;HDA&lt;/acronym&gt; norm, and not AC97.&lt;/p&gt;


&lt;p&gt;While booting the system, you may see the following lines into “dmesg”:&lt;/p&gt;

&lt;pre&gt;pcm0: &amp;lt;Intel 82801G High Definition Audio Controller&amp;gt; mem 0x90440000-0x90443fff irq 22 at device 27.0 on pci0
pcm0: [ITHREAD]
pcm0: &amp;lt;HDA Codec: Sigmatel STAC9221&amp;gt;
pcm0: &amp;lt;HDA Driver Revision: 20071129_0050&amp;gt;&lt;/pre&gt;


&lt;p&gt;If you execute “cat /dev/sndstat”, you may get the following line:&lt;/p&gt;

&lt;pre&gt;FreeBSD Audio Driver (newpcm: 32bit 2007061600/i386)
Installed devices:
pcm0: &amp;lt;Intel 82801G High Definition Audio Controller&amp;gt; at memory 0x90440000 irq 22 kld snd_hda &lt;a href=&quot;http://goddess-gate.com/dc2/index.php/post/20071129_0050&quot; title=&quot;20071129_0050&quot;&gt;20071129_0050&lt;/a&gt; &lt;a href=&quot;http://goddess-gate.com/dc2/index.php/post/MPSAFE&quot; title=&quot;MPSAFE&quot;&gt;MPSAFE&lt;/a&gt; (1p:1v/1r:1v channels duplex default)&lt;/pre&gt;


&lt;p&gt;Sound is now available, you may check it with your favorite media player. The only thing I could not test is sound recording. And as I don't have an optical audio cable, I could not test related input and output.&lt;/p&gt;


&lt;p&gt;&lt;a href=&quot;http://goddess-gate.com/dc2/index.php/post/#sommaire&quot;&gt;Back to table of contents&lt;/a&gt;&lt;/p&gt;


&lt;h4&gt;&lt;a name=&quot;x11&quot;&gt;&lt;/a&gt;X.org setup&lt;/h4&gt;

&lt;p&gt;Before X.org installation, you must disable “moused”. Modify the file “/etc/rc.conf” and add the following lines:&lt;/p&gt;

&lt;pre&gt;moused_enable=&amp;quot;NO&amp;quot;
moused_nondefault_enable=&amp;quot;NO&amp;quot;
moused_ums0_enable=&amp;quot;NO&amp;quot;
moused_ums1_enable=&amp;quot;NO&amp;quot;
moused_ums2_enable=&amp;quot;NO&amp;quot;&lt;/pre&gt;

&lt;p&gt;then kill all “moused” running process:&lt;/p&gt;

&lt;pre&gt;killall moused&lt;/pre&gt;


&lt;p&gt;Install X.org with:&lt;/p&gt;

&lt;pre&gt;portinstall xorg&lt;/pre&gt;


&lt;p&gt;You'll have to wait for about one hour. When X.org is installed, you'll have to set it up. Execute “xorgconfig” and answer to many questions.&lt;/p&gt;

&lt;h5&gt;Mouse setup&lt;/h5&gt;

&lt;p&gt;You will have to use “Auto” mouse protocol. As the trackpad doesn't work well (instable mouse pointer, absolute positionning between display and trackpad surface), you have to use an USB mouse.&lt;br /&gt;
When you're asked if you want to emulate 3 buttons, answer “n”.&lt;br /&gt;
When you're asked which device to use, you may have to answer “/dev/ums0”. Adapt to your real needs.&lt;/p&gt;


&lt;h5&gt;Keyboard setup&lt;/h5&gt;

&lt;p&gt;Use “MacBook/MacBook Pro (Intl)” (121) layout.&lt;br /&gt;
Country is “France” (29).&lt;br /&gt;
No layout variant, just validate with “Enter”.&lt;br /&gt;
XKB option, answer “n”.&lt;/p&gt;


&lt;h5&gt;Screen display&lt;/h5&gt;

&lt;p&gt;Answer “10” to question about horizontal refresh.&lt;br /&gt;
Answer “4” to question about vertical refresh.&lt;br /&gt;
Identifier should be “MacBook LCD”.&lt;/p&gt;


&lt;h5&gt;Graphic card setup&lt;/h5&gt;

&lt;p&gt;When you're asked if you want to parse graphic cards list, answer “y”.&lt;br /&gt;
The graphic controller to use is “i810” (16).&lt;br /&gt;
Installed memory is “65536K” (9).&lt;br /&gt;
Identifier should be “GMA950”.&lt;br /&gt;
Leave modes as is (answer “4”).&lt;br /&gt;
Default mode will be 24 bits (answer “5”).&lt;/p&gt;


&lt;p&gt;When you're asked if you want to write “/etc/X11/xorg.conf” file, answer “y”.&lt;/p&gt;


&lt;h5&gt;Post-configuration: keyboard setup&lt;/h5&gt;

&lt;p&gt;&lt;strong&gt;Identical keyboard mapping to MacOS X&lt;/strong&gt;&lt;/p&gt;


&lt;p&gt;Finally, download the file “&lt;a href=&quot;http://bersace03.free.fr/pub/Linux/xkb-mac/fr.ancien&quot;&gt;http://bersace03.free.fr/pub/Linux/xkb-mac/fr.ancien&lt;/a&gt;”, and copy it into folder “/usr/local/share/X11/xkb/symbols/macintosh_vndr/” with name “fr” (remove “.ancien” extension).&lt;/p&gt;


&lt;p&gt;Now you have a working French azerty keyboard with X.org. But if you reinstall X.org, you may have to repeat the above step.&lt;/p&gt;


&lt;p&gt;&lt;strong&gt;Nearly identical keyboard mapping to MacOS X&lt;/strong&gt;&lt;/p&gt;


&lt;p&gt;Another possibility is to have a nearly identical keyboard mapping to MacOS X: &amp;lt;alt&amp;gt; becomes “Windows” &amp;lt;alt&amp;gt;, &amp;lt;ctrl&amp;gt; key becomes “Windows” &amp;lt;ctrl&amp;gt;, left  &amp;lt;cmd&amp;gt; key becomes “Windows” &amp;lt;menu&amp;gt;, and small &amp;lt;enter&amp;gt; key (next the right &amp;lt;cmd&amp;gt; key) becomes “MacOS X” &amp;lt;alt&amp;gt; key (for special characters keyboard shortcuts).&lt;/p&gt;


&lt;p&gt;This mapping is the X.org default one.&lt;/p&gt;


&lt;h5&gt;Post-configuration: graphic card&lt;/h5&gt;

&lt;p&gt;We'll add graphic acceleration. It need two things: a kernel driver (which supports i945GM device), and an X.org driver (which supports i945GM device too).&lt;/p&gt;


&lt;p&gt;You have to modify the file “/etc/X11/xorg.conf”.&lt;br /&gt;
Uncomment the following lines:&lt;/p&gt;

&lt;pre&gt;Load       &amp;quot;glx&amp;quot;
Load       &amp;quot;dri&amp;quot;&lt;/pre&gt;


&lt;pre&gt;Section &amp;quot;DRI&amp;quot;
    Mode 0666
EndSection&lt;/pre&gt;


&lt;p&gt;Modify “Screen” section with “GMA950” identifier. Add the following lines:&lt;/p&gt;

&lt;pre&gt;Option	&amp;quot;DRI&amp;quot;	&amp;quot;True&amp;quot;
Option	&amp;quot;NoAccel&amp;quot;	&amp;quot;False&amp;quot;&lt;/pre&gt;


&lt;p&gt;After patch installation, I got these results:&lt;/p&gt;


&lt;p&gt;Into X.org log file :&lt;/p&gt;

&lt;pre&gt;(II) [drm] DRM interface version 1.2
(II) [drm] DRM open master succeeded.
(II) intel(0): [drm] Using the DRM lock SAREA also for drawables.
(II) intel(0): [drm] framebuffer handle = 0x80040000
(II) intel(0): [drm] added 1 reserved context for kernel
(II) intel(0): [drm] installed DRM signal handler
(II) intel(0): [drm] Registers = 0x90380000
(II) intel(0): [drm] ring buffer = 0x80000000
(II) intel(0): [drm] init sarea width,height = 1280 x 1280 (pitch 2048)
(II) intel(0): [drm] Mapping front buffer
(II) intel(0): [drm] Front Buffer = 0x80040000
(II) intel(0): [drm] Back Buffer = 0x84000000
(II) intel(0): [drm] Depth Buffer = 0x85000000
(II) intel(0): [drm] textures = 0x88000000
(II) intel(0): [drm] Initialized kernel agp heap manager, 33554432
(II) intel(0): [drm] dma control initialized, using IRQ 16
(II) intel(0): [drm] removed 1 reserved context for kernel
(II) intel(0): [drm] unmapping 8192 bytes of SAREA 0xc7d50000 at 0x287ee000
(II) intel(0): [drm] Closed DRM master.&lt;/pre&gt;


&lt;h5&gt;Issues&lt;/h5&gt;

&lt;p&gt;X.org does not support the trackpad. “synaptics” device driver only works with PS/2 trackpad (“psm” device driver), then MacBook trackpad is unusable (it's a USB one, then use “ums” device driver).&lt;/p&gt;


&lt;p&gt;&lt;a href=&quot;http://goddess-gate.com/dc2/index.php/post/#sommaire&quot;&gt;Back to table of contents&lt;/a&gt;&lt;/p&gt;


&lt;h3&gt;&lt;a name=&quot;uninstall&quot;&gt;&lt;/a&gt;Désinstaller FreeBSD&lt;/h3&gt;

&lt;h5&gt;Issues coming from FreeBSD installation&lt;/h5&gt;

&lt;p&gt;FreeBSD install modifies partition table format. It's still &lt;acronym title=&quot;GUID Partition Table&quot;&gt;GPT&lt;/acronym&gt;, but MacOS X recognize it as an &lt;acronym title=&quot;Master Boot Record&quot;&gt;MBR&lt;/acronym&gt; partition table, which give the following issues:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;When FreeBSD is installed and you don't want to use it anymore, you won't be able to undo Boot Camp changes.&lt;/li&gt;
&lt;li&gt;You won't be able to install EFI firmware upgrades. the only ways are : boot from an external harddrive using GPT and where MacOS X is installed, then upgrade your firmware or uninstall FreeBSD.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you boot a FreeBSD install disk, start “Live Filesystem”, and execute “gpt show /dev/ad5”, you will see the disk uses GPT format. And if you try a “gpt migrate /dev/ad5” it will fail because the disk uses GPT format.&lt;/p&gt;


&lt;p&gt;I tried to repair GPT with &lt;a href=&quot;http://refit.sourceforge.net&quot; hreflang=&quot;en&quot;&gt;rEFIt&lt;/a&gt; “gptsynch” tools, but data seems to be too inconsistent to be repaired. FreeBSD/i386 sysinstall have to support GPT disks, but for now only FreeBSD/ia64 sysinstall does (Intel Itanium CPU version).&lt;/p&gt;


&lt;p&gt;It's possible to uninstall FreeBSD without need to partition again your harddrive and install again MacOS X, but it's not easy.&lt;/p&gt;


&lt;h5&gt;First step : FreeBSD partition removal&lt;/h5&gt;

&lt;p&gt;In order to cleanly remove FreeBSD partition, you need an &lt;a href=&quot;http://www.ubuntu.com&quot; hreflang=&quot;en&quot;&gt;Ubuntu&lt;/a&gt; Live CD, at least version 7.04. Boot from Ubuntu CD, then when desktop is available, open a “Terminal” session, and execute the following command:&lt;/p&gt;

&lt;pre&gt;sudo parted&lt;/pre&gt;


&lt;p&gt;When GNU parted is started, follow these steps:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;execute « print », and look for FreeBSD partition number (it should be “3”).&lt;/li&gt;
&lt;li&gt;execute « rm &amp;lt;partition_number&amp;gt; », where &amp;lt;partition_number&amp;gt; is the above number.&lt;/li&gt;
&lt;li&gt;execute « quit ».&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Finally, reboot to MacOS X.&lt;/p&gt;


&lt;h5&gt;Second step : MacOS X partition restore&lt;/h5&gt;

&lt;p&gt;Now, you just have to restore MacOS X partition to its original state. Start Boot Camp assistant, skip the &amp;quot;Burn a Macintosh Drivers CD&amp;quot; step and split your disk into two volumes as instructed by Boot Camp Assistant. The actual sizes of the volumes don't matter. When the disk is splitted, reboot your laptop.&lt;/p&gt;


&lt;p&gt;Start Boot Camp, and choose the &amp;quot;Restore to a single Mac OS partition&amp;quot; option. Reboot, &lt;em&gt;et voilà&lt;/em&gt;, FreeBSD is now cleanly uninstalled.&lt;/p&gt;


&lt;p&gt;If you use MacOS X 10.5.x, you may simply extend your system partition with disk utility instead of using Boot Camp.&lt;/p&gt;


&lt;p&gt;&lt;a href=&quot;http://goddess-gate.com/dc2/index.php/post/#sommaire&quot;&gt;Back to table of contents&lt;/a&gt;&lt;/p&gt;


&lt;h3&gt;&lt;a name=&quot;misc&quot;&gt;&lt;/a&gt;Miscellaneous issues&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Sometimes after FreeBSD installation, the computer may not be able to find MacOS X partition. In this case, restart the computer leaving &amp;lt;Alt&amp;gt; key pressed and choose MacOS X partition. Then, execute “System Preferences”, chose “Startup disk”, then MacOS X partition. All will the OK for the next reboots.&lt;/li&gt;
&lt;li&gt;Sometimes you can't reboot or switch off the laptop; the screen goes blank, the the laptop still runs (you can feel harddrive's vibrations if you put on hand to the left of the trackpad). The only way to switch off the laptop is to leave the power button pressed until you can't feel harddrive's vibrations anymore.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href=&quot;http://goddess-gate.com/dc2/index.php/post/#sommaire&quot;&gt;Back to table of contents&lt;/a&gt;&lt;/p&gt;


&lt;h3&gt;&lt;a name=&quot;more&quot;&gt;&lt;/a&gt;More info&lt;/h3&gt;


&lt;p&gt;Some points are not covered by this how-to, but they are on a dedicated wiki : &lt;a href=&quot;http://wiki.freebsd.org/AppleMacbook&quot; hreflang=&quot;en&quot;&gt;http://wiki.freebsd.org/AppleMacbook&lt;/a&gt;. You will find how to use Bluetooth, IR receiver, etc.&lt;/p&gt;


&lt;p&gt;&lt;a href=&quot;http://goddess-gate.com/dc2/index.php/post/#sommaire&quot;&gt;Back to table of contents&lt;/a&gt;&lt;/p&gt;</description>
    
          <enclosure url="http://goddess-gate.com/dc2/misc/how_to/freebsd_macbook/build_freebsd_01.sh"
      length="745" type="text/plain" />
          <enclosure url="http://goddess-gate.com/dc2/misc/how_to/freebsd_macbook/build_freebsd_02.sh"
      length="680" type="text/plain" />
          <enclosure url="http://goddess-gate.com/dc2/misc/how_to/freebsd_macbook/update_ports.sh"
      length="201" type="text/plain" />
          <enclosure url="http://goddess-gate.com/dc2/misc/how_to/freebsd_macbook/update_src.sh"
      length="79" type="text/plain" />
    
    
          <comments>http://goddess-gate.com/dc2/index.php/post/251#comment-form</comments>
      <wfw:comment>http://goddess-gate.com/dc2/index.php/post/251#comment-form</wfw:comment>
      <wfw:commentRss>http://goddess-gate.com/dc2/index.php/feed/rss2/comments/251</wfw:commentRss>
      </item>
    
  <item>
    <title>ICC profiles and applications</title>
    <link>http://goddess-gate.com/dc2/index.php/post/277</link>
    <guid isPermaLink="false">urn:md5:7aaf672b561629011bb05b0d8589990b</guid>
    <pubDate>Sun, 19 Aug 2007 18:20:00 +0200</pubDate>
    <dc:creator>Arnaud Boudou</dc:creator>
        <category>How-to (english)</category>
        <category>how-to</category><category>photo</category>    
    <description>&lt;p&gt;&lt;a href=&quot;http://goddess-gate.com/dc2/index.php/post/276&quot; hreflang=&quot;goddess-gate&quot;&gt;Version française&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;As I said in a previous &lt;a href=&quot;http://goddess-gate.com/dc2/index.php/post/241&quot; hreflang=&quot;goddess-gate&quot;&gt;Capture NX test&lt;/a&gt;, JPEG files may have integrated ICC profile, but applications which display these files may not know how to use these profiles, which give an hazardous color rendering,  when it's not fully false.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;em&gt;19/08/2007&lt;/em&gt;: Firefox 3.0 alpha 7 supports ICC profiles&lt;/li&gt;
&lt;/ul&gt;    &lt;p&gt;You may test ICC profile support with the site “&lt;a href=&quot;http://www.color.org/version4html.html&quot; hreflang=&quot;en&quot;&gt;Is Your System ICC Version 4 Ready?&lt;/a&gt;”. As you can see it, it display a photo (divided into four sub-pictures, each with a different ICC profile), and this photo must have good colors if the tested software support ICC profiles. You can see under the main photo the different results you can get (from left to right) :&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;software supports version 2 and 4 ICC profiles&lt;/li&gt;
&lt;li&gt;software supports only version 2 ICC profiles&lt;/li&gt;
&lt;li&gt;software does not support ICC profiles&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you want to test a web browser, it's easy: just load and display the webpage. If you want to test an image viewer, you have to download each sub-picture then display them with the viewer to test.&lt;/p&gt;


&lt;p&gt;The results I get are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;MacOS X 10.4.9
&lt;ul&gt;
&lt;li&gt;Web browser
&lt;ul&gt;
&lt;li&gt;Firefox 2.0.0.6: no ICC profile support&lt;/li&gt;
&lt;li&gt;Firefox 3.0a7: version 2 and 4 ICC profiles support (open about:config URL, and set “gfx.color_management.enabled” to true)&lt;/li&gt;
&lt;li&gt;Opera 9.20: no ICC profile support&lt;/li&gt;
&lt;li&gt;Safari 2.0.4: version 2 and 4 ICC profiles support&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;li&gt;Image viewer
&lt;ul&gt;
&lt;li&gt;Preview 3.0.9: version 2 and 4 ICC profiles support&lt;/li&gt;
&lt;li&gt;CocoViewX 0.9.6: version 2 and 4 ICC profiles support&lt;/li&gt;
&lt;li&gt;The Gimp 2.2.11: no ICC profile support&lt;/li&gt;
&lt;li&gt;Xee 2.0 : no ICC profile support&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;li&gt;Windows XP SP2
&lt;ul&gt;
&lt;li&gt;Web browser
&lt;ul&gt;
&lt;li&gt;Internet Explorer 7.0: no ICC profile support&lt;/li&gt;
&lt;li&gt;Firefox 2.0.0.6: no ICC profile support&lt;/li&gt;
&lt;li&gt;Firefox 3.0a7: version 2 and 4 ICC profiles support (open about:config URL, and set “gfx.color_management.enabled” to true)&lt;/li&gt;
&lt;li&gt;Opera 9.20: no ICC profile support&lt;/li&gt;
&lt;li&gt;Safari 2.0.4: version 2 and 4 ICC profiles support&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;li&gt;Image viewer
&lt;ul&gt;
&lt;li&gt;System viewer: version 2 only ICC profile support&lt;/li&gt;
&lt;li&gt;XnView  1.90.3: no ICC profile support&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;li&gt;Ubuntu 7.04 (Live CD)
&lt;ul&gt;
&lt;li&gt;Web browser
&lt;ul&gt;
&lt;li&gt;Firefox 2.0.0.3: no ICC profile support&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;li&gt;Image viewer
&lt;ul&gt;
&lt;li&gt;Eye of the Gnome 2.18.1: no ICC profile support&lt;/li&gt;
&lt;li&gt;gThumb 2.10.2: no ICC profile support&lt;/li&gt;
&lt;li&gt;The Gimp 2.2.13: no ICC profile support&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Of course, ICC profile support is just the first step to get correct color rendering. Second one is to have a well calibrated. With MacOS X, you may either use “Displays” system preferences or use an hardware calibrating tool to get more precise calibrating. With Windows, you'll have to use an hardware calibrating tool. With Linux and other free Unix, I don't have any idea.&lt;/p&gt;</description>
    
    
    
          <comments>http://goddess-gate.com/dc2/index.php/post/277#comment-form</comments>
      <wfw:comment>http://goddess-gate.com/dc2/index.php/post/277#comment-form</wfw:comment>
      <wfw:commentRss>http://goddess-gate.com/dc2/index.php/feed/rss2/comments/277</wfw:commentRss>
      </item>
    
  <item>
    <title>Know everything about your Apple computer display</title>
    <link>http://goddess-gate.com/dc2/index.php/post/294</link>
    <guid isPermaLink="false">urn:md5:cb39dac52a1a1e265aa146d050f1b02a</guid>
    <pubDate>Sat, 19 May 2007 11:00:00 +0200</pubDate>
    <dc:creator>Arnaud Boudou</dc:creator>
        <category>How-to (english)</category>
        <category>apple</category><category>how-to</category>    
    <description>&lt;p&gt;&lt;a href=&quot;http://goddess-gate.com/dc2/index.php/post/293&quot; hreflang=&quot;goddess-gate&quot;&gt;Version française&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;If you own an Apple computer, and want to know all features of its LCD display, you just have to follow these steps.&lt;/p&gt;    &lt;p&gt;First of all, download “&lt;a href=&quot;http://www.madrau.com/html/SRX/DL.shtml&quot; hreflang=&quot;en&quot;&gt;SwitchResX Control Panel&lt;/a&gt;” then start it. When it's done, click on “Export DCC” button. You will get a text file you'll have to open.&lt;/p&gt;


&lt;p&gt;LCD panel reference is at the end of file, presented as&lt;/p&gt;
&lt;pre&gt;
	Descriptor #2 is ASCII data:
			B133EW01 V0
&lt;/pre&gt;


&lt;p&gt;Then you have to start you preferred search engine to search for the panel reference (first part, without version number, in this case “B133EW01”). With &lt;a href=&quot;http://goddess-gate.com/dc2/index.php/post/21&quot; hreflang=&quot;goddess-gate&quot;&gt;my MacBook&lt;/a&gt;, I can see it's a TN LCD panel, the brand is AUO, response time is 25 ms, contrast ratio is 400:1, number of colors is 262 000, etc.&lt;/p&gt;


&lt;p&gt;About color numbers, &lt;a href=&quot;http://arstechnica.com/journals/apple.ars/2007/05/18/lawsuit-over-mac-book-mac-book-pro-displays&quot; hreflang=&quot;en&quot;&gt;a class action was started into United-States&lt;/a&gt; against Apple which pretends on its website that LCD panels can display millions of colors but it's not the truth.&lt;/p&gt;</description>
    
    
    
          <comments>http://goddess-gate.com/dc2/index.php/post/294#comment-form</comments>
      <wfw:comment>http://goddess-gate.com/dc2/index.php/post/294#comment-form</wfw:comment>
      <wfw:commentRss>http://goddess-gate.com/dc2/index.php/feed/rss2/comments/294</wfw:commentRss>
      </item>
    
  <item>
    <title>Change spell chek dictionary into MacOS X applications</title>
    <link>http://goddess-gate.com/dc2/index.php/post/284</link>
    <guid isPermaLink="false">urn:md5:ab2ae4b3ab3471c4b15e1c0b54e0a02a</guid>
    <pubDate>Sat, 05 May 2007 10:39:00 +0200</pubDate>
    <dc:creator>Arnaud Boudou</dc:creator>
        <category>How-to (english)</category>
        <category>apple</category><category>how-to</category><category>macos x</category>    
    <description>&lt;p&gt;&lt;a href=&quot;http://goddess-gate.com/dc2/index.php/post/285&quot; hreflang=&quot;goddess-gate&quot;&gt;Version française&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;I you have to use many languages for your writings, you may not know how to switch from a language to another for built-in spell checker without changing system language.&lt;/p&gt;    &lt;p&gt;Switching dictionaries is easy when you know how to do it. The only requirement is to use applications which use system spell checker (Apple applications and many third party Cocoa applications).&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Open an application that uses a built-in dictionary. Mail is an example.&lt;/li&gt;
&lt;li&gt;Choose “Spelling” from the “Edit” menu, and “Spelling…” from the submenu.&lt;/li&gt;
&lt;li&gt;In the “Spelling” dialog box, select the desired dictionary language from the pop-up menu.&lt;/li&gt;
&lt;li&gt;Close the window.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;But remember: all language may not have an available dictionary, there are no English variants (only US English is available), and French dictionary is not the one with 1990 changes.&lt;/p&gt;


&lt;p&gt;&lt;em&gt;Source: &lt;a href=&quot;http://docs.info.apple.com/article.html?artnum=107211&amp;amp;coll=cp&quot; hreflang=&quot;en&quot;&gt;Mac OS X 10.2: How to Change the Spell Check Language Dictionary&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;</description>
    
    
    
          <comments>http://goddess-gate.com/dc2/index.php/post/284#comment-form</comments>
      <wfw:comment>http://goddess-gate.com/dc2/index.php/post/284#comment-form</wfw:comment>
      <wfw:commentRss>http://goddess-gate.com/dc2/index.php/feed/rss2/comments/284</wfw:commentRss>
      </item>
    
  <item>
    <title>Firefox 2.0 and undo closed tabs</title>
    <link>http://goddess-gate.com/dc2/index.php/post/281</link>
    <guid isPermaLink="false">urn:md5:a5c0696cdbe4f5b1148285a252336b9a</guid>
    <pubDate>Wed, 02 May 2007 12:45:00 +0200</pubDate>
    <dc:creator>Arnaud Boudou</dc:creator>
        <category>How-to (english)</category>
        <category>browser</category><category>firefox</category><category>how-to</category>    
    <description>    &lt;p&gt;&lt;a href=&quot;http://goddess-gate.com/dc2/index.php/post/282&quot; hreflang=&quot;goddess-gate&quot;&gt;Version française&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;If you want to undo an accidental tab closing, you have many ways to do:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;right click on the tab bar, select “Undo close tab” and repeat it as many time needed.&lt;/li&gt;
&lt;li&gt;open “History” menu then “Recently closed tabs” then the tab you want to reopen.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I've accidentally found a third way: it's the keyboard shortcut &amp;lt;cmd&amp;gt;+&amp;lt;shift&amp;gt;+&amp;lt;T&amp;gt; on Apple computers and &amp;lt;ctrl&amp;gt;+&amp;lt;shift&amp;gt;+&amp;lt;T&amp;gt; on other systems.&lt;/p&gt;</description>
    
    
    
          <comments>http://goddess-gate.com/dc2/index.php/post/281#comment-form</comments>
      <wfw:comment>http://goddess-gate.com/dc2/index.php/post/281#comment-form</wfw:comment>
      <wfw:commentRss>http://goddess-gate.com/dc2/index.php/feed/rss2/comments/281</wfw:commentRss>
      </item>
    
  <item>
    <title>Thunderbird 2 and quotas</title>
    <link>http://goddess-gate.com/dc2/index.php/post/268</link>
    <guid isPermaLink="false">urn:md5:0636b9852727498517bfe50fc93d4559</guid>
    <pubDate>Sat, 21 Apr 2007 07:57:00 +0200</pubDate>
    <dc:creator>Arnaud Boudou</dc:creator>
        <category>How-to (english)</category>
        <category>communicate</category><category>how-to</category><category>mail</category><category>thunderbird</category>    
    <description>    &lt;p&gt;&lt;a href=&quot;http://goddess-gate.com/dc2/index.php/post/267&quot; hreflang=&quot;goddess-gate&quot;&gt;Version française&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;Until now, if you access to your mailbox through an IMAP account with &lt;a href=&quot;http://www.mozilla.com/en-US/thunderbird/&quot; hreflang=&quot;en&quot;&gt;Thunderbird&lt;/a&gt;, and quotas were applied, the only way to quickly access them was to install “&lt;a href=&quot;https://addons.mozilla.org/fr/thunderbird/addon/881&quot; hreflang=&quot;en&quot;&gt;Display Quota&lt;/a&gt;” extension. With Thunderbird 2, this extension became obsolete.&lt;/p&gt;


&lt;p&gt;There now are three key to change to display quotas with Thunderbird 2:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;“mail.quota.mainwindow_threshold.show”: in percent, when the quota meter starts showing up at all (you should set this key to 0 if you want to always display it).&lt;/li&gt;
&lt;li&gt;“mail.quota.mainwindow_threshold.warning”: in percent, when it gets yellow.&lt;/li&gt;
&lt;li&gt;“mail.quota.mainwindow_threshold.critical”: in percent, when it gets red.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;But for the two last keys, I can't see any effect (MacOS X version).&lt;/p&gt;


&lt;p&gt;To change these keys, open Thunderbird options, go to “Advanced” section, then “General” tab, then click onto “Config Editor…” button. In the next window, enter key name into search field, then double click on it to change its value.&lt;/p&gt;</description>
    
    
    
          <comments>http://goddess-gate.com/dc2/index.php/post/268#comment-form</comments>
      <wfw:comment>http://goddess-gate.com/dc2/index.php/post/268#comment-form</wfw:comment>
      <wfw:commentRss>http://goddess-gate.com/dc2/index.php/feed/rss2/comments/268</wfw:commentRss>
      </item>
    
  <item>
    <title>Sony Ericsson DCU-11, MacOS X 10.4 and PhoneAgent</title>
    <link>http://goddess-gate.com/dc2/index.php/post/250</link>
    <guid isPermaLink="false">urn:md5:8c26ca1e65142b226085e5c02d767570</guid>
    <pubDate>Thu, 15 Jun 2006 22:09:00 +0200</pubDate>
    <dc:creator>Arnaud Boudou</dc:creator>
        <category>How-to (english)</category>
        <category>how-to</category><category>macos x</category><category>telephony</category>    
    <description>&lt;p&gt;&lt;a href=&quot;http://goddess-gate.com/dc2/index.php/post/215&quot; hreflang=&quot;goddess-gate&quot;&gt;Version française&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;Sony Ericsson mobile phone, as F500i/k500i, T610, etc. may be connected to a computer with a serial (phone side) to USB (computer side) converter, like DCU-11 cable. The purpose is to  transfer files (mp3, pictures, etc.) between phone or computer, or use the phone as a GSM ou GPRS modem. The only &amp;quot;little&amp;quot; problem is that Sony Ericsson only propose Windows tools and drivers.&lt;/p&gt;


&lt;p&gt;The main thing to know is the converter uses a Prolific PL2303 chipset. Here comes the how-to about using DCU-11 cable with MacOS X 10.4.x (it should work with MacOS X 10.3.x).&lt;/p&gt;    &lt;h3&gt;Needed&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;A serial to USB DCU-11 cable, and a compatible mobile phone.&lt;/li&gt;
&lt;li&gt;A MacOS X PL2303 driver. A free one is available on &lt;a href=&quot;http://osx-pl2303.sourceforge.net/&quot; hreflang=&quot;en&quot;&gt;this page&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.macmedia.sk/pa.htm&quot; hreflang=&quot;en&quot;&gt;PhoneAgent&lt;/a&gt; if you want to transfer files between your computer and your phone.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;Setup steps.&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;Download PL2303 driver, install it then reboot your computer.&lt;/li&gt;
&lt;li&gt;Plug your DCU-11 cable to the computer and the phone.&lt;/li&gt;
&lt;li&gt;Startup &amp;quot;System Information&amp;quot; (apple menu, &amp;quot;About this Mac&amp;quot;, &amp;quot;More infos…&amp;quot;&lt;/li&gt;
&lt;li&gt;In order to check the driver, install then launch &amp;quot;PhoneAgent&amp;quot;. Open its preferences menu, and in &amp;quot;Connection&amp;quot; section, you must have (and select) &amp;quot;PL2303-xxxx&amp;quot; in 'Serial Port&amp;quot; drop down list. You may check &amp;quot;Connect at startup&amp;quot; if you want.&lt;/li&gt;
&lt;li&gt;in order to use PhoneAgent, you must connect your phone: plug the DCU-11 cable if it's not already done, then click on the grayed Bluetooth icon on the left of the toolbar. If all is OK, the icon must turn to blue.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Sometimes, the driver is not immediately loaded and you'll have to wait for one ou two minutes after you plug the cable to your computer. If it's still not loaded, you may do that manually:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Start up &amp;quot;Terminal&amp;quot; application.&lt;/li&gt;
&lt;li&gt;When the prompt is available, load PL2303 driver with the following command line:&lt;/li&gt;
&lt;/ol&gt;
&lt;blockquote&gt;&lt;p&gt;sudo kextload /System/Library/Extensions/osx-pl2303.kext/&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;You may be asked for your administrator password.&lt;/p&gt;</description>
    
    
    
          <comments>http://goddess-gate.com/dc2/index.php/post/250#comment-form</comments>
      <wfw:comment>http://goddess-gate.com/dc2/index.php/post/250#comment-form</wfw:comment>
      <wfw:commentRss>http://goddess-gate.com/dc2/index.php/feed/rss2/comments/250</wfw:commentRss>
      </item>
    
  <item>
    <title>OpenTom: listen to mp3 with your TomTom PND</title>
    <link>http://goddess-gate.com/dc2/index.php/post/249</link>
    <guid isPermaLink="false">urn:md5:c50406f083ee8ec51f8c24b1866836f9</guid>
    <pubDate>Wed, 15 Mar 2006 22:14:00 +0100</pubDate>
    <dc:creator>Arnaud Boudou</dc:creator>
        <category>How-to (english)</category>
        <category>gps</category><category>how-to</category><category>linux</category><category>music</category>    
    <description>&lt;p&gt;&lt;a href=&quot;http://goddess-gate.com/dc2/index.php/post/183&quot; hreflang=&quot;goddess-gate&quot;&gt;Version française&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;Until now, TomTom &lt;acronym title=&quot;Personal Navigation Device&quot;&gt;PND&lt;/acronym&gt; where only used to go from &lt;a href=&quot;http://goddess-gate.com/dc2/index.php/post/140&quot; hreflang=&quot;goddess-gate&quot;&gt;somewhere to elsewhere&lt;/a&gt;. Now, they are able to play your mp3 files.&lt;/p&gt;    &lt;h3&gt;Needed&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://wiki.opentom.org/&quot; hreflang=&quot;en&quot;&gt;OpenTom&lt;/a&gt; software (current version: 0.0.3).&lt;/li&gt;
&lt;li&gt;TomTom GO/300/500/700/ONE (only TomTom ONE version 1, the black one) PND. Technically, TomTom Rider is compatible but lacks a speaker.&lt;/li&gt;
&lt;li&gt;An empty SD card (do you want to lose your maps ?).&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;Installation&lt;/h3&gt;

&lt;p&gt;First, download &lt;a href=&quot;http://www.maintech.de/nonprofit-projects/opentom-mp3-player/&quot; hreflang=&quot;en&quot;&gt;precompiled binaries&lt;/a&gt; (bottom of the page).&lt;br /&gt;
Unpack archive, and move the content to an empty SD card. The content to be moved is &lt;em&gt;ttsystem&lt;/em&gt; file and &lt;em&gt;opentom&lt;/em&gt; folder.&lt;br /&gt;
Into &lt;em&gt;opemtom/media&lt;/em&gt; folder, put MP3 files you want to listen to.&lt;br /&gt;
Put the card into your PND, and switch it on. After a garbled statup welcome screen, you will be given access to the MP3 player interface. There are three tabs :&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Clock : date and hour. It seems OpenTom does not use PND date and hour settings, so you'll have to setit up each time you use it. Use the &lt;em&gt;Set&lt;/em&gt; button, Luke.&lt;/li&gt;
&lt;li&gt;Music : all your MP3 on the SD card. From this tab, you will add file into the playlist (&lt;em&gt;Add&lt;/em&gt; button), or change sound volume (&lt;em&gt;Vol-&lt;/em&gt; and &lt;em&gt;Vol+&lt;/em&gt; buttons).&lt;/li&gt;
&lt;li&gt;Player : The playlist itself. You may change files order. From this tab, you may start mp3 playing. Volume setting buttons are here again.&lt;/li&gt;
&lt;li&gt;GPS : This tab shows data from GPS device. Unlike genuine TomTom software, elevation is displayed. I.e, I know I am 159m above sea level (you don't care, really !?).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can see screenshots on &lt;a href=&quot;http://www.maintech.de/nonprofit-projects/opentom-mp3-player/&quot; hreflang=&quot;en&quot;&gt;OpenTom site&lt;/a&gt;.&lt;/p&gt;


&lt;h3&gt;Cons&lt;/h3&gt;

&lt;p&gt;The most important : OpenTom and genuine TomTom software are exclusives. You may use one of the other, but not at the same time. OpenTom only reads MP3 file, and have navigation features. If you want to use your PND navigation features, you may use it as a portable MP3 player (i.e. while driving). While walking, even if your PND has a jack connector, you can't set luminosity, then quickly empty the battery.&lt;br /&gt;&lt;/p&gt;


&lt;h3&gt;Pros&lt;/h3&gt;

&lt;p&gt;Size: OpemTom is only 5 MB on the card.&lt;br /&gt;
Elevation display is a good feature I would like to see on genuine TomTom software.&lt;/p&gt;


&lt;h3&gt;Whislist&lt;/h3&gt;

&lt;p&gt;TomTom PNDs run Linux, then it's easy to create a replacement software, as OpenTom. Then I would like to see the following features:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Power management, with ability to switch screen of while playing music, or change processor speed on the fly.&lt;/li&gt;
&lt;li&gt;Navigation features. I don't know if such free software exists, but a navigation feature which may use TomTom maps, or bitmap maps will be very good.&lt;/li&gt;
&lt;/ul&gt;</description>
    
    
    
          <comments>http://goddess-gate.com/dc2/index.php/post/249#comment-form</comments>
      <wfw:comment>http://goddess-gate.com/dc2/index.php/post/249#comment-form</wfw:comment>
      <wfw:commentRss>http://goddess-gate.com/dc2/index.php/feed/rss2/comments/249</wfw:commentRss>
      </item>
    
  <item>
    <title>OpenVPN IPv6 routing between a Windows 2000 workstation and an OpenBSD server</title>
    <link>http://goddess-gate.com/dc2/index.php/post/248</link>
    <guid isPermaLink="false">urn:md5:0b393c038c787d1a0f10421eec0f3ef4</guid>
    <pubDate>Tue, 15 Mar 2005 08:00:00 +0100</pubDate>
    <dc:creator>Arnaud Boudou</dc:creator>
        <category>How-to (english)</category>
        <category>how-to</category><category>ipv6</category><category>openbsd</category><category>windows</category>    
    <description>&lt;p&gt;&lt;a href=&quot;http://goddess-gate.com/dc2/index.php/post/67&quot; hreflang=&quot;goddess-gate&quot;&gt;Version française&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;The goal of this how-to is to allow a Windows 2000 workstation with no tunnel broker access (as in many enterprise network) to access to an IPv6 network with an &lt;a href=&quot;http://openvpn.sourceforge.net&quot; hreflang=&quot;en&quot;&gt;OpenVPN&lt;/a&gt; tunnel.&lt;/p&gt;    &lt;h3&gt;Network overview (server-side)&lt;/h3&gt;


&lt;p&gt;The OpenBSD computer is an IPv6 router (using rtadvd), and with a 2001:aaaa:bbbb::/48 prefix.
Prefix 2001:aaaa:bbbb:1::/56 is reserved for LAN computers, tunnel-side will use the 2001:aaaa:bbbb:2::/56 prefix&lt;br /&gt;
The tunnel IPv4 link will be between local IP 192.168.1.2 (Windows 2000 workstation) and 192.168.1.1 (OpenBSD server).&lt;/p&gt;


&lt;h3&gt;OpenVPN setup (OpenBSD-side)&lt;/h3&gt;


&lt;p&gt;On OpenBSD server, we will install OpenVPN (i.e. 1.6 version using ports).
Usefull OpenVPN settings we need are: (other settings - compression, cryptography, etc. - are at your discretion). OpenVPN will be setup with bridge mode, and not routed mode (explanation is into Windows 2000 setup section).&lt;/p&gt;


&lt;p&gt;Into OpenVPN configuration file, (i.e. &lt;em&gt;openvpn.conf&lt;/em&gt;), you must have the following settings (adapt them to your network settings)&lt;/p&gt;
&lt;pre&gt;
dev tun0
dev-type tap
tun-ipv6
port 5000
&lt;/pre&gt;


&lt;p&gt;Don't add an &amp;quot;ifconfig&amp;quot; line as it's not available for OpenVPN under OpenBSD in bridge mode.&lt;br /&gt;
Don't add a &amp;quot;remote&amp;quot; line, as the client is behind a gateway or a router.&lt;/p&gt;


&lt;p&gt;The, you must create the bridge (associated to a physical network adapter, here the device &amp;quot;rl0&amp;quot;)., startup OpenVPN, and give it an IP address. You may use the following command lines, and add then into &lt;em&gt;/etc/rc.local&lt;/em&gt; file:&lt;/p&gt;

&lt;pre&gt;
/sbin/ifconfig tun0 link0 up
/sbin/ifconfig bridge0 create
/sbin/brconfig bridge0 add rl0 add tun0 up
/usr/local/sbin/openvpn --config /etc/openvpn.confdaemon
/sbin/ifconfig tun1 192.168.1.1
/sbin/ifconfig tun1 inet6 2001:aaaa:bbbb:2::1
&lt;/pre&gt;


&lt;p&gt;OpenVPN is now running, and waits for a connection.&lt;/p&gt;


&lt;h3&gt;OpenVPN setup (Windows-side)&lt;/h3&gt;


&lt;p&gt;Install OpenVPN, which install a service, and a TAP32 virtual network adapter. We must use bridge mode because IPv6 is not available for routed mode under Windows 2000.&lt;br /&gt;
Into OpenVPN configuration file, (i.e. &lt;em&gt;openvpn.conf&lt;/em&gt;), you must have the following settings (adapt them to your network settings)&lt;/p&gt;

&lt;pre&gt;
dev tap
tun-ipv6
port 5000
remote 1.2.3.4
ifconfig 192.168.1.2 255.255.255.0
&lt;/pre&gt;


&lt;p&gt;The &amp;quot;remote&amp;quot; line must have OpenVPN server &lt;strong&gt;public&lt;/strong&gt; IP address.&lt;/p&gt;


&lt;p&gt;Then start up OpenVPN service, and it may connect to the tunnel other side. If you want to check it, the following command lines may help you:&lt;/p&gt;

&lt;pre&gt;
ping 192.168.1.2
&lt;/pre&gt;


&lt;p&gt;from OpenBSD server. If the ping is OK, so is the connection.&lt;/p&gt;

&lt;pre&gt;
ping 192.168.1.1
&lt;/pre&gt;


&lt;p&gt;from Windows 2000 workstation. If the ping is OK, so is the connection.&lt;/p&gt;


&lt;h3&gt;IPv6 setup (Windows-side)&lt;/h3&gt;


&lt;p&gt;First, you have to install &lt;a href=&quot;http://msdn.microsoft.com/downloads/sdks/platform/tpipv6.asp&quot; hreflang=&quot;en&quot;&gt;Microsoft's&lt;/a&gt; IPv6 stack. You may refer to this address in order to know installation steps. When the IPv6 stack is installed, you have to set it up.&lt;/p&gt;


&lt;p&gt;Open a command line session, then execute the following command lines:&lt;/p&gt;

&lt;pre&gt;
ipv6 adu index/2001:aaaa:bbbb:2::2
&lt;/pre&gt;


&lt;p&gt;&lt;em&gt;&amp;quot;index&amp;quot;&lt;/em&gt; must be OpenVPN virtual adapter index. I.e., if TAP-32 is called &amp;quot;Local Connection 3&amp;quot;, the index is 3.&lt;/p&gt;


&lt;p&gt;This line give 2001:aaaa:bbbb:2::2 IP address to your OpenVPN interface.&lt;/p&gt;


&lt;p&gt;Then you have to set up IPv6 routing:&lt;/p&gt;

&lt;pre&gt;
ipv6 rtu ::/0 index/2001:aaaa:bbbb:2::1
ipv6 rtu 2001:aaaa:bbbb::/56 index
&lt;/pre&gt;


&lt;p&gt;The first line add a route for all IPv6 destinations through IPv6 tunnel. The second one does the same for your LAN IPv6 addresses. Don't forget to replace &lt;em&gt;index&lt;/em&gt; with your network adapter number.&lt;/p&gt;


&lt;h3&gt;Misc&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;I could not get rtadvd work through the tunnel. I get no error message, but no IPv6 address is given to Windows 2000 workstation. Either I made a mistake, or it's a Windows 2000 IPv6 stack limitation.&lt;/li&gt;
&lt;li&gt;This HOW-TO contains no information about IPv4 routing. You can find as many how-to about it on the Web.&lt;/li&gt;
&lt;li&gt;Windows 2000 IPv6 stack does not work with Internet Explorer 6.0 because wininet.dll file is too old. You may either use Firefox or Mozilla, since 2005/10/03 nightly builds.&lt;/li&gt;
&lt;/ul&gt;</description>
    
    
    
          <comments>http://goddess-gate.com/dc2/index.php/post/248#comment-form</comments>
      <wfw:comment>http://goddess-gate.com/dc2/index.php/post/248#comment-form</wfw:comment>
      <wfw:commentRss>http://goddess-gate.com/dc2/index.php/feed/rss2/comments/248</wfw:commentRss>
      </item>
    
  <item>
    <title>Disable temporary IPv6 addresses under Windows XP</title>
    <link>http://goddess-gate.com/dc2/index.php/post/247</link>
    <guid isPermaLink="false">urn:md5:3698d71a7962bf303d222c116b90598d</guid>
    <pubDate>Fri, 11 Mar 2005 08:44:00 +0100</pubDate>
    <dc:creator>Arnaud Boudou</dc:creator>
        <category>How-to (english)</category>
        <category>how-to</category><category>ipv6</category><category>windows</category>    
    <description>    &lt;p&gt;&lt;a href=&quot;http://goddess-gate.com/dc2/index.php/post/66&quot; hreflang=&quot;goddess-gate&quot;&gt;Version française&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;By default, Windows XP uses temporary IPv6 addresses (changed each time you reboot your computer). This behavior may be may inappropriate, mainly when you use connection tracking.&lt;/p&gt;


&lt;p&gt;In order to disable temporary addresses, then only use addresses given IPv6 routing daemon, you have to execute the following command line:&lt;/p&gt;


&lt;blockquote&gt;&lt;p&gt;ipv6 -p gpu UseTemporaryAddresses no&lt;/p&gt;&lt;/blockquote&gt;


&lt;p&gt;then reboot the computer.&lt;/p&gt;</description>
    
    
    
          <comments>http://goddess-gate.com/dc2/index.php/post/247#comment-form</comments>
      <wfw:comment>http://goddess-gate.com/dc2/index.php/post/247#comment-form</wfw:comment>
      <wfw:commentRss>http://goddess-gate.com/dc2/index.php/feed/rss2/comments/247</wfw:commentRss>
      </item>
    
  <item>
    <title>Trackpad scrolling with old PowerBooks and iBooks</title>
    <link>http://goddess-gate.com/dc2/index.php/post/246</link>
    <guid isPermaLink="false">urn:md5:d39164e851dd1e460abaebce8097adb9</guid>
    <pubDate>Mon, 14 Feb 2005 09:41:00 +0100</pubDate>
    <dc:creator>Arnaud Boudou</dc:creator>
        <category>How-to (english)</category>
        <category>how-to</category><category>ibook</category><category>macos x</category>    
    <description>&lt;p&gt;&lt;a href=&quot;http://goddess-gate.com/dc2/index.php/post/55&quot; hreflang=&quot;goddess-gate&quot;&gt;Version française&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;Today, I will initiate a new post category : HOW-TOs. I will begin with two fingers scroll on old PowerBook and iBook models, without any third party software (like &lt;a href=&quot;http://www.ragingmenace.com/software/sidetrack/index.html&quot; hreflang=&quot;en&quot;&gt;SideTrack&lt;/a&gt;), but just with a modified trackpad driver.&lt;/p&gt;    &lt;h3&gt;Is your trackpad compatible ?&lt;/h3&gt;

&lt;p&gt;First, you have to know if your trackpad may be used for two fingers scroll. You'll have to execute the following command line:&lt;/p&gt;


&lt;blockquote&gt;&lt;p&gt;ioreg -l | grep &amp;quot;W Enhanced Trackpad&amp;quot;&lt;/p&gt;&lt;/blockquote&gt;


&lt;h3&gt;What must be downloaded ?&lt;/h3&gt;

&lt;p&gt;If the previous command line returns &amp;quot;W Enhanced Trackpad = 1&amp;quot;, then your trackpad may be used for two fingers scroll, and you can keep reading. Otherwise, do as you wish, but it will be time wasting.&lt;/p&gt;


&lt;p&gt;Your trackpad is compatible. Go &lt;a href=&quot;http://www-users.kawo2.rwth-aachen.de/~razzfazz/&quot; hreflang=&quot;en&quot;&gt;there&lt;/a&gt;, download one of the available drivers (i.e. iScroll2_all.zip), and unpack it into you home folder.&lt;/p&gt;


&lt;h3&gt;How-to install it ?&lt;/h3&gt;

&lt;p&gt;&lt;del&gt;First, you have to unload the running trackpad driver. Execute the following command line: &lt;/del&gt;&lt;/p&gt;


&lt;blockquote&gt;&lt;p&gt;&lt;del&gt;sudo kextunload -b com.apple.driver.AppleADBMouse&lt;/del&gt;&lt;/p&gt;&lt;/blockquote&gt;


&lt;p&gt;&lt;del&gt;Now, do not touch your trackpad if you don't want to see a nice Kernel Panic. Then backup your old trackpad driver with the following command line:&lt;/del&gt;&lt;/p&gt;


&lt;blockquote&gt;&lt;p&gt;&lt;del&gt;sudo mv /System/Library/Extensions/AppleADBMouse.kext /System/Library/Extensions/AppleADBMouse.kext.old&lt;/del&gt;&lt;/p&gt;&lt;/blockquote&gt;


&lt;p&gt;&lt;del&gt;And replace the old driver with the enhanced one:&lt;/del&gt;&lt;/p&gt;


&lt;blockquote&gt;&lt;p&gt;&lt;del&gt;sudo mv $HOME/AppleADBMouse.kext /System/Library/Extensions/AppleADBMouse.kext&lt;/del&gt;&lt;/p&gt;&lt;/blockquote&gt;


&lt;p&gt;&lt;del&gt;Finally, change the driver access right, and load it&lt;/del&gt;&lt;/p&gt;


&lt;blockquote&gt;&lt;p&gt;&lt;del&gt;sudo chown -R root:wheel /System/Library/Extensions/AppleADBMouse.kext&lt;/del&gt;
&lt;del&gt;sudo kextload /System/Library/Extensions/AppleADBMouse.kext&lt;/del&gt;&lt;/p&gt;&lt;/blockquote&gt;


&lt;p&gt;&lt;del&gt;You may now use two fingers scrolling with your trackpad.&lt;/del&gt;&lt;/p&gt;


&lt;p&gt;The trackpad driver is now automatically installed and loaded.&lt;/p&gt;</description>
    
    
    
          <comments>http://goddess-gate.com/dc2/index.php/post/246#comment-form</comments>
      <wfw:comment>http://goddess-gate.com/dc2/index.php/post/246#comment-form</wfw:comment>
      <wfw:commentRss>http://goddess-gate.com/dc2/index.php/feed/rss2/comments/246</wfw:commentRss>
      </item>
    
</channel>
</rss>