Table of Contents

Install Gentoo 64bit on MacBook Pro(MD318,late 2011)

Convert iso to dmg and create bootable usb device

Refer to:https://help.ubuntu.com/community/How%20to%20install%20Ubuntu%20on%20MacBook%20using%20USB%20Stick

hdiutil convert -format UDRW -o ubuntu-12.10-desktop-amd64+mac.img ubuntu-12.10-desktop-amd64+mac.iso 
sudo dd bs=1m if=ubuntu-12.10-desktop-amd64+mac.img.dmg of=/dev/disk2

Touchpad synaptics config

Refer to:http://uselessuseofcat.com/?p=74

Section "InputClass"
    Identifier         "Touchpad"
    Driver             "synaptics"
    MatchIsTouchpad    "on"
    Option         "ClickFinger3" "2"
    Option         "HorizTwoFingerScroll" "1"
    Option         "VertScrollDelta" "85"
    Option         "HorizScrollDelta" "85"
    Option         "TapButton1" "1"
    Option         "TapButton2" "2"
    Option         "TapButton3" "3"
    Option         "TapAndDragGesture" "off"
    Option         "FingerHigh" "50"
#    Option         "FingerLow" "10"
    Option         "RTCornerButton" "0"
    Option         "RBCornerButton" "0"
    Option         "LTCornerButton" "0"
    Option         "LBCornerButton" "0"
    Option         "PalmDetect" "on"
    Option         "MinSpeed" "0.5"
    Option         "MaxSpeed" "1.5"

EndSection

/etc/portage/make.conf

# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
MAKEOPTS="-j5"
CFLAGS="-O2 -march=native -pipe"
CXXFLAGS="${CFLAGS}"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"
GENTOO_MIRRORS="http://mirrors.163.com/gentoo"
SYNC="rsync://mirrors.163.com/gentoo-portage"
USE="nptl nptlonly -ipv6 -fortran unicode svg hal dbus -kde -qt4 -arts -eds -esd gnome gstreamer gtk firefox X cups introspection cjk"
CCACHE_DIR="/var/tmp/ccache"
CCACHE_ZIE="2G"
INPUT_DEVICES="evdev synaptics mouse keyboard joystick"
VIDEO_CARDS="radeon intel vesa fbdev fglrx"
ALSA_CARDS="hda-intel"
LINGUAS="en zh_CN"
source /var/lib/layman/make.conf

font config

安装新版本的media-libs/freetype 并且打开infinality的USE flag,它还会提示你安装eselect-infinality, eselect-lcdfilter,前面这俩是为了和eselect适配的, fontconfig-infinality这个是fontconfig的一个补丁 ,然后按照说明用eselect选择一个style,可以选择win7, 然后就可以在KDE的控制中心里打开AA和次像素渲染了。

[I] media-fonts/inconsolata
     Available versions:  20090222^bs {{X}}
     Installed versions:  20090222^bs(10:31:21 PM 12/31/2012)(X)
     Homepage:            http://www.levien.com/type/myfonts/inconsolata.html
     Description:         A beautiful sans-serif monotype font designed for code listings