hi!
here is just another report on how i installed ubuntu feisty herd 5 on a new white macbook 2GHz core duo. i did many things exactly as
sedatg said: Just installed herd 5.
My risky mini howto/report for a "Black Core Duo:
- download & burn herd 5 iso in os x
actually, i started with herd 4 64bit. as far as i understand, the processor is 64bit and therefore this version should be able to take advantage of that. the install went fine, however i was not able to boot it. i read that this is due to refit which would have to be compiled with a 64bit option. therefore i restarted with herd 5 32bit intel version.
- download & install refit in os x
- download & install boot camp in os x
- fire up boot camp assistant in os x & create a large enough partition
as the macbook was new, i gave as much discspace to ubuntu as possible. bootcamp didn't let me make the os x partition smaller than (occupied + 5GB)
- insert ubuntu feisty herd 5 live cd and reboot
- select boot from linux live cd
- select keyboard, language
- press F6, append lpj=8000000, press enter, have patience as your live desktop loads
i did not append anything -- as far as i remember, my keyboard was not working at this point and i didn't add anything later on. i never had any problems with the kernel.
it seems to me that i always get errors during the install when i do not disable now these mount removable drives automatically options. if i don't do that, there will be an error after partitioning.
- continue until partitioning options
- select manual partitioning, delete the partition boot camp installed (fat32)
- go back, select largest free space
- watch ubiquity throw an error message at you
- select manually partition again
- create a main partition (ext3) and a swap partition
the efi-partition should not be mounted -- set it to "donotuse"
- start installing
- play some game while installling
- watch ubiquity throw an error about 'mouseemu something' during the final stages >95%)
- wait while it quits unexpectedly without any other notice/dialog coming up
- don't wait for some dialog or whatever, this was it wrt installation
i did not see this. it said 'installation done, eject cd and reboot'. however, the "eject" button did not work at that time. so booting one more time into os x was necessary.
- reboot, eject live cd, enter refit partition menu (don't know if this is strictly necessary), sync partitions
- reboot and try booting ubuntu from the refit menu
worked for me. i then did an update which took quite some time but of which i think it improved things quite a bit.
- get rid of mouseemu error every time apt-get runs (apparently ubiquity installer crapped out during copying/installing mouseemu, solved by reinstalling mouseemu throught apt-get)
for me, reinstalling did not solve the problem, i had to deinstall and install again.
- fix resolution (install 915 resolution)
- fix keyboard
i have an international keyboard. there were two problems: the key left of the '1' gave a tilde and the key left of the z gave less or greater. in addition to that, i wanted to access the german umlauts when pressing the option (alt) key and 'a', for example. i read that xmodmap should be avoided and xkb is the way to go. after quite some time and many unreconstructable steps, i think that the only thing to be done is the following:
sudo gedit /usr/share/X11/xkb/symbols/de_us
de_us is just a name. it is mainly due to the fact that i used http://www.linux-magazin.de/heft_abo/ausgaben/2003/10/deutsch_amerikanische_freundschaft and http://iffwww.iff.kfa-juelich.de/~wuttke/doku/doku.php?id=jwu:us_de . the file de_us is based on /usr/share/X11/xkb/symbols/macintosh_vndr/us which seems to be the keymap used by default. my de_us looks like:
// $XConsortium: macintosh /main/10 1996/01/29 19:54:54 kaleb $
// $XFree86: xc/programs/xkbcomp/symbols/macintosh/us,v 1.8 2003/08/04 10:32:31 eich Exp $
// symbols definition for a Macintosh "Extended" keyboard
// edited for umlauts, paragraph, and less/greater sign
xkb_symbols "extended" {
name[Group1]= "U.S. English";
key <ESC> { [ Escape ] };
// Alphanumeric section
key <TLDE> { [ section, plusminus ] };
key <AE01> { [ 1, exclam ] };
key <AE02> { [ 2, at ] };
key <AE03> { [ 3, numbersign ] };
key <AE04> { [ 4, dollar ] };
key <AE05> { [ 5, percent ] };
key <AE06> { [ 6, asciicircum ] };
key <AE07> { [ 7, ampersand ] };
key <AE08> { [ 8, asterisk ] };
key <AE09> { [ 9, parenleft ] };
key <AE10> { [ 0, parenright ] };
key <AE11> { [ minus, underscore ] };
key <AE12> { [ equal, plus ] };
key <AD01> { [ q, Q ] };
key <AD02> { [ w, W ] };
key <AD03> { [ e, E ] };
key <AD04> { [ r, R ] };
key <AD05> { [ t, T ] };
key <AD06> { [ y, Y ] };
key <AD07> { [ u, U, udiaeresis, Udiaeresis ]};
key <AD08> { [ i, I ] };
key <AD09> { [ o, O, odiaeresis, Odiaeresis ]};
key <AD10> { [ p, P ] };
key <AD11> { [ bracketleft, braceleft ] };
key <AD12> { [ bracketright, braceright ] };
key <BKSL> { [ backslash, bar ] };
key <AC01> { [ a, A, adiaeresis, Adiaeresis ]};
key <AC02> { [ s, S, ssharp ] };
key <AC03> { [ d, D ] };
key <AC04> { [ f, F ] };
key <AC05> { [ g, G ] };
key <AC06> { [ h, H ] };
key <AC07> { [ j, J ] };
key <AC08> { [ k, K ] };
key <AC09> { [ l, L ] };
key <AC10> { [ semicolon, colon ] };
key <AC11> { [ quoteright, quotedbl ] };
key <LSGT> { [ quoteleft, asciitilde ] };
key <AB01> { [ z, Z ] };
key <AB02> { [ x, X ] };
key <AB03> { [ c, C ] };
key <AB04> { [ v, V ] };
key <AB05> { [ b, B ] };
key <AB06> { [ n, N ] };
key <AB07> { [ m, M ] };
key <AB08> { [ comma, less ] };
key <AB09> { [ period, greater ] };
key <AB10> { [ slash, question ] };
key <SPCE> { [ space ] };
// End alphanumeric section
// option key will give acess to second group
modifier_map Mod5 { <LALT> };
include "keypad"
key <KPEQ> { [ equal ] };
};
hidden
xkb_symbols "oldmac" {
include "macintosh_vndr/us(extended)"
// Begin "Function" section
key <FK01> { [ F1 ] };
key <FK02> { [ F2 ] };
key <FK03> { [ F3 ] };
key <FK04> { [ F4 ] };
key <FK05> { [ F5 ] };
key <FK06> { [ F6 ] };
key <FK07> { [ F7 ] };
key <FK08> { [ F8 ] };
key <FK09> { [ F9 ] };
key <FK10> { [ F10 ] };
key <FK11> { [ F11 ] };
key <FK12> { [ F12 ] };
key <FK13> { [ Print ] };
key <FK14> { [ Scroll_Lock ] };
key <FK15> { [ Pause ] };
// End "Function" section
// Begin "Editing" section
key <INS> { [ Insert ] };
key <HOME> { [ Home ] };
key <PGUP> { [ Prior ] };
key <DELE> { [ Delete ] };
key <END> { [ End ] };
key <PGDN> { [ Next ] };
key <UP> { [ Up ] };
key <LEFT> { [ Left ] };
key <DOWN> { [ Down ] };
key <RGHT> { [ Right ] };
// End "Editing" section
key <BKSP> { [ BackSpace ] };
key <TAB> { [ Tab, ISO_Left_Tab ] };
key <RTRN> { [ Return ] };
key <CAPS> { [ Caps_Lock ] };
key <NMLK> { [ Num_Lock, Pointer_EnableKeys ] };
// Begin "Modifier" section
key <LFSH> { [ Shift_L ] };
key <RTSH> { [ Shift_R ] };
key <LCTL> { [ Control_L ] };
key <RCTL> { [ Control_R ] };
key <LALT> { [ Alt_L, Meta_L ] };
key <RALT> { [ Alt_R, Meta_R ] };
key <LWIN> { [ Super_L ] };
key <RWIN> { [ Super_R ] };
// End "Modifier" section
// begin modifier mappings
modifier_map Shift { Shift_L, Shift_R };
modifier_map Lock { Caps_Lock, ISO_Lock };
modifier_map Control{ Control_L, Control_R };
modifier_map Mod2 { Num_Lock };
// Fake keys for virtual<->real modifiers mapping
key <LVL3> { [ ISO_Level3_Shift ] };
key <MDSW> { [ Mode_switch ] };
modifier_map Mod5 { <LVL3>, <MDSW> };
key <ALT> { [ NoSymbol, Alt_L ] };
modifier_map Mod1 { <ALT>, <LALT> };
key <META> { [ NoSymbol, Meta_L ] };
modifier_map Mod1 { <META> };
key <SUPR> { [ NoSymbol, Super_L ] };
modifier_map Mod4 { <SUPR> };
key <HYPR> { [ NoSymbol, Hyper_L ] };
modifier_map Mod4 { <HYPR> };
// end modifier mappings
};
i think that the lower section ('oldmac'....) is not used and could be taken out. this has now to be loaded which can be done with
setxkbmap -layout de_us
making a small script containing exactly this line and adding that to the session-startup thing will then always load the changed keyboard. note that the keys are not changed before login (i actually didn't try but i guess they won't be changed in the ctrl alt 2 etc terminals either)
worked for me.
i then installes the synaptics driver (well, i didn't install it, i just added this blacklist, ... stuff and the xorg.conf commands). however, i do not like it at all. i don't see any advantages and i could not figure out how to avoid giving 'back' and 'forward' commands in firefox all the time. right mouse klick with two fingers worked in 2/3, three finger for middle mouse never. i tried the RBcorner things (see man synaptics) but it didn't work either. to my best knowledge, i undid all changes (blacklist stuff etc). now the mouse works fine and the ir remote also.
what does not yet work is the middle and right mouse button. it seemed reasonable to me to set ctrl + click as middle and option + click as right. i tried to do so with mouseemu but it simply does not react on the pressed keys. i got the numbers for the modifiers from xev, they were 0x1d and 0x38. 1d (hex) = 29 (dec) and 38 (hex) = 56 (dec). my /etc/default/mouseemu is:
MID_CLICK="-middle 29 272" # control key + mouse click
RIGHT_CLICK="-right 56 272" # option key + mouse click
in the keyboard menu, i set the right command key as compose, that's very convenient.
another thing i did not manage so far is how to use the remote to operate a pdf-presentation. it works in the media player. i guess one could use the keycodes (xev said that track back is 144, track forward is 153 and menu is 158) and map them to page up/down but that's kind of ugly, isn't it?