3 MacBook Debian インスト

     
_________________________________________________________________________________________________________________________________________________

Apple 2006 年春発売した Intel MacBook MacOS X Debian dual-boot インスト流れ します

MacOS X して Debian のみをインストする方法についてはおそらく lilo MBR から動するように ればムウ動してくれますがしていません

3.1 インスト

直後ではMac OS X めていますその MacOS X Debian インス できるようにしますMac OS X 20GB 程度必要とするようですので20GB までしてしまいま

diskutil resizevolume コマンドボリムサイズ動的にすることができます *1

Mac OS X $ df -h
Filesystem                Size   Used  Avail Capacity  Mounted on
/dev/disk0s2               74G    17G    57G    23%    /
devfs                      95K    95K     0B   100%    /dev
fdesc                     1.0K   1.0K     0B   100%    /dev
<volfs>                   512K   512K     0B   100%    /.vol
automount -nsl [171]        0B     0B     0B   100%    /Network
automount -fstab [179]      0B     0B     0B   100%    /automount/Servers
automount -static [179]     0B     0B     0B   100%    /automount/static
/dev/disk0s1              197M   512B   197M     0%    /efi

Mac OS X $ sudo diskutil resizevolume disk0s2 20G
Started resizing on disk disk0s2 Macintosh HD
Verifying

Resizing Volume
Adjusting Partitions

Finished resizing on disk disk0s2 Macintosh HD
WARNING: You must now reboot!

# diskutil list
/dev/disk0
   #:                   type name               size      identifier
   0:  GUID_partition_scheme                    *74.5 GB  disk0
   1:                    EFI                    200.0 MB  disk0s1
   2:              Apple_HFS Macintosh HD       20.0 GB   disk0s2

3.2 rEFIt インスト

rEFIt EFI トロですrEFIt*2 イメMacOS X インストしますインストする場所はどこでもよいのですがドキメントてみまし /efi あたりにイル展開rEFIt まれている./enable.sh しますスクリプトbless コマン *3 してくれますこれで動時動で rEFIt されるようになります

Debian rEFIt 利用してインストするには0.7-3 では enable.sh していませ 直接 bless コマンドしてください

sudo bless --folder [refit.efi のあるレクトリへのフルパス] --file [refit.efi へのフル パス]

PIC

3.3 Debian インスト

2006 7 etch*4 イ ン ス ト 利 用 し て イ ン ス ト し ま す

CDROM から動するためにはCDROM してからC しながら動すればよいですもしくはoption しながら動するとムウ選択動しますrEFIt メニからも CDROM からの動を選択できま *5

部分*6 インストされたらLILO インストする直前部分まで実施します

このでは LILO 現在動作できないになています *7ここでMBR GPT 同期させる実施しますここでAlt-F2 コンソ切替コマンドラインにうつりますgptsync コマンド してください*8 インスト方法としてはchroot /target bin/shとしてインストchroot そこから apt-get install refit インストそして gptsync コマンドGPT から MBR 同期させ ます

PIC

このインストAlt-F1 LILO MBR ではなくLinux インスト ます動すると rEFIt から Linux して動できるようになています

3.4 デバイス

3.4.1 X

X i810 ドライバします915resolution インストします1280x800 です

/etc/default/915resolutionです

#
# 915resolution default
#
# find free modes by  /usr/sbin/915resolution -l
# and set it to MODE
# e.g. use MODE=54
MODE=32
#
# and set resolutions for the mode.
# e.g. use XRESO=1024 and YRESO=768
XRESO=1280
YRESO=800
#
# We can also set the pixel mode.
# e.g. use BIT=32
# Please note that this is optional,
# you can also leave this value blank.
BIT=

xorg.conf です*9

Section "Files"
FontPath "/usr/share/fonts/X11/misc"
FontPath "/usr/X11R6/lib/X11/fonts/misc"
FontPath "/usr/share/fonts/X11/cyrillic"
FontPath "/usr/X11R6/lib/X11/fonts/cyrillic"
FontPath "/usr/share/fonts/X11/100dpi/:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
FontPath "/usr/share/fonts/X11/75dpi/:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
FontPath "/usr/share/fonts/X11/Type1"
FontPath "/usr/X11R6/lib/X11/fonts/Type1"
FontPath "/usr/share/fonts/X11/100dpi"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi"
FontPath "/usr/share/fonts/X11/75dpi"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi"
# path to defoma fonts
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
Load "i2c"
Load "bitmap"
Load "ddc"
Load "dri"
Load "extmod"
Load "freetype"
Load "glx"
Load "int10"
Load "type1"
Load "vbe"
EndSection


Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc104"
Option "XkbLayout" "us"
Option "XkbOptions" "ctrl:nocaps"
EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ExplorerPS/2"
Option "Emulate3Buttons" "true"
EndSection

Section "InputDevice"
Identifier "Synaptics Touchpad"
Driver "synaptics"
Option "SendCoreEvents" "true"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "HorizScrollDelta" "0"
EndSection


Section "Device"
Identifier "Generic Video Card"
Driver "i810"
Screen 0
Option "MonitorLayout" "CRT,LFP"
BusID "PCI:0:2:0"
EndSection

Section "Device"
Identifier "Device1"
Driver "i810"
Screen 1
Option "MonitorLayout" "CRT,LFP"
BusID "PCI:0:2:0"
EndSection

続く




Section "Monitor"
Identifier "Generic Monitor"
Option "DPMS"
HorizSync 28-64
VertRefresh 43-60
EndSection


Section "Monitor"
Identifier "External Monitor"
Option "DPMS"
HorizSync 28-64
VertRefresh 43-60
EndSection

Section "Screen"
Identifier "Default Screen"
Device "Generic Video Card"
Monitor "Generic Monitor"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes "1280x800" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 4
Modes "1280x800" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 8
Modes "1280x800" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 15
Modes "1280x800" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 16
Modes "1280x800" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Depth 24
Modes "1280x800" "1024x768" "800x600" "640x480"
EndSubSection
EndSection

Section "Screen"
Identifier "Secondary Screen"
Device "Device1"
Monitor "External Monitor"
DefaultDepth 24
SubSection "Display"
   Depth 1
   Modes "1024x768" "800x600"
EndSubSection
SubSection "Display"
   Depth 4
   Modes "1024x768" "800x600"
EndSubSection
SubSection "Display"
   Depth 8
   Modes "1024x768" "800x600"
EndSubSection
SubSection "Display"
   Depth 16
   Modes "1024x768" "800x600"
EndSubSection
SubSection "Display"
   Depth 24
   Modes "1024x768" "800x600"
EndSubSection
EndSection

Section "ServerLayout"
Identifier "Dual-monitor Layout"
Screen 0 "Default Screen"
Screen 1 "Secondary Screen" LeftOf "Default Screen"
# Option "Clone" "On"
#Option "Xinerama" "On"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice "Synaptics Touchpad"
EndSection

Section "DRI"
Mode 0666
EndSection

バインド.xsession *10 のようなをしていますapple すと半角てられています option apple はよくえるので両方Alt_L としてしていますまた クトキ部分にある ENTER マウスとしてしています *11 マウスUSB 接続したなく動作します

xmodmap -e "keycode 115 = Alt_L"
xmodmap -e "keycode 116 = Zenkaku_Hankaku" # right-apple
xmodmap -e "keycode 108 = Pointer_Button3" # KP-ENTER
xmodmap -e "keycode 204 = Pointer_Button2" # eject
xkbset m
3.4.2 lilo

いつものboot(/dev/sda3, ext2) root(/dev/sda4 ext3) をわけてしまているのでちとややこしいですが現在 利用している lilo.conf です

boot=/dev/sda3
root=/dev/sda4
map=/boot/map
delay=20
default=Linux-20060705

image=/boot/vmlinuz-2.6.17dancer-20060701
        label=Linux-20060701
        read-only

image=/boot/vmlinuz-2.6.17dancer
        label=Linux-20060705
        read-only

image=/vmlinuz
        label=Linux
        read-only

image=/vmlinuz.old
        label=LinuxOLD
        read-only
        optional
        initrd=/initrd.img.old

デフルトインストされているネル2.6.17 のものであればよく動時パニをおこすのでIntel Mac 2.6.17 のものにしまし

3.4.3 サウンドカ

サウンドカsnd_hda_intel ドライバできる ALSA オデバイスです

$ cat /proc/asound/cards
 0 [Intel          ]: HDA-Intel - HDA Intel
                      HDA Intel at 0x90440000 irq 50
3.4.4 CPU 動的周

cpufreq speedstep_centrino 動作しますapt-get install cpufreqd インストしてcpufreqd 動作させて あげると動作します

3.4.5 USB

USB UHCI, EHCI です必要ないはずです

3.4.6

テリはまともにサポしているようですただていないのでgnome から した

PIC

3.4.7 トワ

有線トワSKY2 ドライバ利用します

無線トワmadwifi できますインスト方法です

ておくと hotplug により動時動ロされて有効になります/etc/hotplug/blacklist.d/イル のようなしておくと動でしないと有効にならないようにできますにのるなどのため には必要かもしれません

 ath_pci

以下インストログです

 $ sudo apt-get install madwifi-source madwifi-tools madwifi-doc
 $ sudo m-a prepare
Getting source for kernel version: 2.6.17dancer
/lib/modules/2.6.17dancer/source  ネルヘ利用できます
symlink  ...
apt-get install build-essential
ジリストんでいます... 
存 関 ツ リ し て い ま す ... 
以 下 た に イ ン ス ト さ れます :
  build-essential
プグレ: 0  インスト: 1  : 0  : 94 
6916B  カイブする必要があります
展 開  20.5kB  スクされます
:1 http://ftp.jp.debian.org sid/main build-essential 11.2 [6916B]
6916B   0s  しました (81.0kB/s)
ジフルドんでいます... 
ん で い ま す ... 
バ グ レ ポ し て い ま す ... 
(タベんでいます ...  現在 101852  イルレクトリインストされています)
(.../build-essential_11.2_i386.deb  から) build-essential  展開しています...
build-essential (11.2)  しています ...

!
$ sudo m-a a-i madwifi
ジリストんでいます... 
存 関 ツ リ し て い ま す ... 
madwifi-source  はすでにです
プ グ レ : 0  インスト: 0  : 0  : 94 

1  についてのしました
Extracting the package tarball, /usr/src/madwifi.tar.bz2, please wait...

PIC

/home/dancer/shared/git/madwifi-modules-2.6.17dancer_0.svnr1644.0.9.0-2+20060705_i386.deb  了しました
未 選 択  madwifi-modules-2.6.17dancer  選択しています
(タベんでいます ...  現在 101861  イルレクトリインストされています)
(.../madwifi-modules-2.6.17dancer_0.svnr1644.0.9.0-2+20060705_i386.deb  から) madwifi-modules-2.6.17dancer
展開しています...
madwifi-modules-2.6.17dancer (0.svnr1644.0.9.0-2+20060705)  しています ...

$ sudo modprobe ath_pci
$ lsmod | grep ath_pci
ath_pci                82212  0
ath_rate_sample        11776  1 ath_pci
wlan                  167132  4 wlan_scan_sta,ath_pci,ath_rate_sample
ath_hal               192208  3 ath_pci,ath_rate_sample
$ dmesg | tail -20
eth1: no IPv6 routers present
ath_hal: module license ’Proprietary’ taints kernel.
ath_hal: 0.9.17.2 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
wlan: 0.8.4.2 (svn r)
ath_rate_sample: 1.2 (svn r)
ath_pci: 0.9.4.5 (svn r)
Device ‘[PXS2]is not power manageable<6>ACPI: PCI Interrupt 0000:02:00.0[A] -> GSI 17 (level, low) -> IRQ 169
PCI: Setting latency timer of device 0000:02:00.0 to 64
wifi0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
wifi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wifi0: H/W encryption support: WEP AES AES_CCM TKIP
wifi0: mac 10.3 phy 6.1 radio 10.2
wifi0: Use hw queue 1 for WME_AC_BE traffic
wifi0: Use hw queue 0 for WME_AC_BK traffic
wifi0: Use hw queue 2 for WME_AC_VI traffic
wifi0: Use hw queue 3 for WME_AC_VO traffic
wifi0: Use hw queue 8 for CAB traffic
wifi0: Use hw queue 9 for beacons
wifi0: Atheros 5424: mem=0x90100000, irq=169

$ /sbin/ifconfig ath0
ath0       リンク方法:   ドウアアドレス 00:16:CB:BA:76:E7
          inet アドレス:192.168.22.42  ブロドキスト:192.168.22.255  マスク:255.255.255.0
          inet6 アドレス: fe80::216:cbff:feba:76e7/64  :リンク
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1176 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1607 errors:0 dropped:0 overruns:0 carrier:0
       (Collisions):0 TX :0
          RX bytes:230678 (225.2 KiB)  TX bytes:1306390 (1.2 MiB)
3.4.8 リモコン

リモコン使えるようですネルデバイスドライバ存在します2.6.18 と り こ ま れ る の で は な い で し う か 利 用 で き る ド ラ イ バ し て お き ま し た *12

3.4.9 iSight

iSight linux-uvc デバイスですムウ必要ですインストができます

アプリケekiga などを利用しましv4l2 デバイスなのでv4l2 ソフトウ必要 です

するにはMac OS X デバイスドライバているムウしてからモジ しますドライバのある場所レクトリいので

3.4.10 未確認のデバイス

Debian 動起動させる方法がわかりませんrEFIt デフルトではMacOSX もしくは eLILO 動しようとしてしま いますeLILO 動すると動できない優先はどうやたらよいのかというのがいまいち です

サスペンド方法

スリ方法

CD-R 動作はまだ認していませんPATA 必要というです


 # cdrecord -scanbus
 scsibus0:
        0,0,0     0) *
        0,1,0     1) ’ATA     ’ ’ST98823AS       ’ ’7.01’ Disk
        0,2,0     2) *
        0,3,0     3) *
        0,4,0     4) *
        0,5,0     5) *
        0,6,0     6) *
        0,7,0     7) *

クライトができるドライバされているので2.6.18 19 くらいにはるのではないでし う か

bluetooth については未調査

3.5 発表履

場所での発表資としてされたものですについてはしながらいくつかの場所発表してい ます

3.6 文献

ムウbootcamp まわりの発のほとんどの web いてある文献現在 ているのでにならない多いですが今後更されるかもしれません

エリア Debian 2006_________________________________________________________________

PIC