Debian sur un MacBook Intel
Caractéristiques : MacBook core 2 duo 2 Ghz / 2x1G DDR2 SDRAM / HD Samsung 112 G /
Carte graphique GMA 950 / AirPort Extreme (Atheros 0024)
Debut juin 2007, mon MacBook m'a été livré, comme il est d'usage, avec MacOS X occupant tout le
disque. Heureusement, la ligne de commande permet désormais de redimensionner les partitions. Dans le Terminal, j'ai saisi :
sudo diskutil resizeVolume disk0s2 30000M "Linux" Debian 25000M "MS-DOS FAT32" Echange 45000M
NB : Monter la partition FAT sous MAC OS X se fait grace à David Decotigny
http://david.decotigny.free.fr/libre/ibook2-debian/ibook2-debian020.html
J'ai utilisé un CD d'install de Debian (etch) pour installer Linux sur la partition 3 de mon disque.
On me prévient que travailler sans swap est déconseillé. Je persiste. Du coup, le système m'annonce que uswsusp sera inopérant.
Afin de disposer des fichier de lilo, j'ai tenté de l'installer en sachant pertinemment qu'il échouerait. Je me suis ensuite rendu
dans un shell
cd /target
chroot /target
nano /etc/lilo.conf
/sbin/lilo
Ensuite "Terminer l'installation". L'ordinateur redémarre. Tout semble OK. La résolution n'est pas Widescreen.
apt-get install 915resolution
J'ai rebooté en Mac OS X, perplexe. Je suis alors (enfin) passé sur le site de refit.soourceforge.org et ai ai installé ce
gestionnaire d'EFI (version 0.9).
Retour sous debian. J'y ai ajouté un fichier swap du double de ma RAM, soit ici 4G (vu que je n'ai prévu aucune partition à cet
effet, tenant compte, sur ce point, de la limitation à 4 partitions -primaire seulement- disponibles lorsque l'on combine et
synchronise EFI avec MBR).
dd if=/dev/zero of=/swap bs=1024 count=4194304
mkswap /swap
swapon /swap
chmod 600 /swap
nano /etc/fstab
/swap none swap sw 0 0
Clavier
Pour Alt GR, en console :
s/keycode 126 =/keycode 126 = AltGr/;
http://wiki.debian.org/MacBook#head-ed7fa589b1d8d7ec14b3687e6d2d7a2155bb76ca
Pour l'arobase et le dièse :
http://doc.ubuntu-fr.org/installation/macbook#le_clavier
Pour la commande infra-rouge
xev
http://gentoo-wiki.com/HARDWARE_Apple_MacBook#Remote_Control
Pour fn et le volume
http://www.odi.ch/prog/macbookpro/macpro.modmap
Réseau
Mon MacBook intel comporte un chipset Wifi Atheros (ce n'est pas le cas de tous les modèles)... mais les sources de debian non-free ne marchent pas. On passe donc par une
compilation.
cd /usr/src/
svn co http://svn.madwifi.org/madwifi/trunk/ madwifi
cd madwifi
make
make install
Pour être sûr que le module fraichement compilé se charge au démarrage de la machine, j'ai ajouté "ath_pci" à /etc/modules
J'ai ensuite modifié /etc/network/interfaces
NB ath0 et non pas eth1
auto ath0
iface ath0 inet dhcp
NB il faudra veiller à reconstruire le module à chaque mise à jour du noyau.
Deux-trois choses utiles
(bonus de juillet 2008)
Sélection éminemment personnelle
aptitude install icedove icedove-locale-fr enigmail gaim tetex-bin latex-beamer vlc mplayer verbiste
aspell-en myspell-en-gb rsync hfsutils gnupod-tools gtkpod gftp jpilot coldsync
Pour disposer de Java 6
echo "deb http://www.backports.org/debian etch-backports main contrib non-free" >> /etc/apt/sources.list
aptitude install debian-backports-keyring
aptitude update
aptitude install sun-java6-bin
Freemind (carte cognitive)
aptitude install libcommons-codec-java libcommons-lang-java
aptitude install libjaxp1.2-java libjgoodies-forms-java librelaxng-datatype-java
echo "deb http://eric.lavar.de/comp/linux/debian/ unstable/ " >> /etc/apt/sources.list
aptitude update && aptitude install freemind
Configurer une imprimante Laser Couleur Dell 3110 cn :
GoTo : http://localhost:631/
Device URI : lpd://00.00.00.00/queue
Manufacturer : Generic
Model : Generic PostScript
Pour utiliser un Visor.
- Démarrer Jpilot, Préférences : Vitesse Port Série 115200 (permet à la
connection de fonctionner, même si je ne comprends pas pourquoi).
- Appuyer sur le bouton du cradle, puis seulement après sur le bouton de Jpilot (sinon le device
temporaire n'est pas présent). Ça marche
- Si le Visor vient d'être restauré, Jpilot parle de Null ID. Le menu Fichier, installer un
utilisateur, suivi d'une synchronisation (point précédent) règle la question...
Pour encoder des MP3 avec SoundJuicer
echo "deb http://www.debian-multimedia.org stable main" >> /etc/apt/sources.list
aptitude update
aptitude install debian-multimedia-keyring
aptitude install lame gstreamer0.10-lame
Ensuite, ajouter un profil audio actif (via gnome-audio-profiles-properties
) avec, comme pipeline
audio/x-raw-int,rate=44100,channels=2 ! lame name=enc quality=0 preset=1001 ! id3mux
et, mp3 comme extension.
Pour encoder des MP3 avec Goobox
echo "deb http://www.debian-multimedia.org stable main" >> /etc/apt/sources.list
aptitude update
aptitude install debian-multimedia-keyring
aptitude install goobox lame gstreamer0.8-lame
Présentation (sur un video-projecteur)
(bonus de juillet 2008)
J'ai trop longtemps cru qu'il n'était pas possible de bénéficier de la copie vidéo du MacBook Etch (external vga output / external monitor).
Grâce à la liste
des utilisateurs de Linux sur le Mac à base d'Intel, j'ai pu me rendre compte
que le Dual Head était à ma portée. Il suffit d'éditer deux fichiers de configuration comme suit :
1.
/etc/X11/xorg.conf
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"
# Dual
Load "type1"
Load "vbe"
EndSection
Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "be"
# Option "XkbOptions" "lv3:rwin_switch"
EndSection
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "Emulate3Buttons" "true"
EndSection
Section "Device"
Identifier "Intel Corporation Mobile 945GM/GMS/940GML Express Integrated Graphics Controller"
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 "Color LCD"
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 "Intel Corporation Mobile 945GM/GMS/940GML Express Integrated Graphics Controller"
Monitor "Color LCD"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes "1280x800"
EndSubSection
SubSection "Display"
Depth 4
Modes "1280x800"
EndSubSection
SubSection "Display"
Depth 8
Modes "1280x800"
EndSubSection
SubSection "Display"
Depth 15
Modes "1280x800"
EndSubSection
SubSection "Display"
Depth 16
Modes "1280x800"
EndSubSection
SubSection "Display"
Depth 24
Modes "1280x800"
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"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
EndSection
Section "DRI"
Mode 0666
EndSection
2.
/etc/default/915resolution
MODE=32
XRESO=1280
YRESO=800
BIT=
Et voilà !