We put Ubuntu 10.04 Lucid Lynx on iMac 21.5 "

    Ubuntu 10.04

    Last weekend, I wanted to see the release of Ubuntu 10.04 with my own eyes. I decided to make my first acquaintance in a virtual machine. After working an hour, I realized that I like the system so much that I don’t feel like going back to Mac OS X. So the vile thought was born to make a complete move from Mac OS X to Ubuntu. On real hardware, everything was not as smooth as in a virtual machine. In the topic I will try to collect together scattered information about the settings for iron and tell what happened in the end.

    Configuration
    iMac 21.5
    Processor: 3.06GHz Intel Core 2 Duo;
    RAM: 4GB, 1066MHz DDR3 SDRAM;
    HDD: 500GB Serial ATA4 7200 rpm;
    Graphics: NVIDIA GeForce 9400M with 256MB of DDR3 SDRAM shared with main memory.

    Theory
    1. In Mac OS X, install rEFIt for the convenience of switching operating systems when the machine boots, then Boot Camp Assistant breaks the HDD into partitions;
    2. We put Ubuntu;
    3. Rejoice.

    Practice
    1. The first rake awaited us in the Boot Camp Mac OS X Assistant, who refused to partition the disk. I suspect that the reason was a large fragmentation, because the disk at that time was 50% full, but in general, before that it was 90% full. Moreover, FileVault encrypted the user's folder.
      As a result, it was decided to make a new partitioning using Disk Utility by booting from Mac OS X Recovery DVD and allocating 447Gb for Ubuntu, leaving only 50Gb for Mac OS X.
      It is important to first transfer all personal data to an external drive (for example, using Time Machine), as on the source disk, all data will be destroyed .

      Disk utility
      Mac OS X Disk Utility window with the following options: Mac OS X 50Gb partition, free space for installing Ubuntu 447Gb

    2. Booting from LiveCD (holding down the "C" key) and installing Ubuntu went through without problems.
      The only thing you should pay attention to is installing the Grub bootloader. You need to put it in the same section where Ubuntu is installed (in the screenshot below). Otherwise, Mac OS X or Ubuntu may not boot afterwards (but it’s not scary, you can always boot using Mac OS X Recovery DVD or Ubuntu LiveCD and correct bootloader entries).

      Install Grub
      Step 7 (or 8) of the Ubuntu installation assistant. It is required to click "Advanced" and select the same section for the bootloader as for "/"

    3. Rejoice, but not for long. Since they do not work:
    • Machine reboot
    • Sound
    • Bluetooth

    Machine reboot

    Symptom: by the reboot command (or by choosing the “Reboot” option in a graphical environment) the machine freezes at the moment when the processes are completed and in theory it should go to reboot. In this case, shutdown and sleep / standby modes are normally worked out.
    The root of the problem is in the kernel. The same problem occurs on unibody MacBooks.
    Treatment: in / etc / default / grub we find the line
    GRUB_CMDLINE_LINUX_DEFAULT="quit splash"and add it in quotes
    reboot=pci, i.e. we get GRUB_CMDLINE_LINUX_DEFAULT="quit splash reboot=pci"
    Next, we execute the command update-grubthat will make our changes to the bootloader itself.

    Sound

    Symptom: there is no sound, the microphone also does not work.
    Treatment: download the necessary drivers from the repository and then add / add to the end of the file . Next (the benefit now works). After downloading, start alsamixer in the terminal and turn up the volume / turn on the (m) channels of Front Speaker and Surround Speaker. The microphone can be configured in the standard Gnome sound settings - on the “Input” tab, select a microphone and increase the volume.
    sudo apt-get update
    sudo apt-get install linux-backports-modules-alsa-lucid-generic

    etc/modprobe.d/alsa-base.confoptions snd-hda-intel model=imac27 power_save=10 power_save_controller=Nsudo reboot



    Bluetooth

    Symptom: Bluetooth properties say the device is missing. At the same time, the bluetooth keyboard and mouse continue to work. The problem is that the BCM2046 Bluetooth module (0a5c: 4500) pretends to be a HID device. In this case, hid2hci is provided in bluez. In Ubuntu 10.04 and bluez 4.60, hid2hci manages udev, in particular, the script /lib/udev/rules.d/70-hid2hci.rules. However, for some reason, it was not possible to force it to work out our BCM2046. As a result, the Magic Mouse does not have a scroll, and the keyboard does not work extra. keys (Fn, etc.).
    An attempt to connect an external USB Bluetooth module also failed. After rebooting, the keyboard and mouse cling dead to the native HID BCM2046, ignoring the external module.
    Treatment: not found.

    Total

    The overall impression of the speed of Ubuntu 10.04 on the iMac is positive. Subjectively, Ubuntu is lighter, faster than Mac OS X. Of all the equipment, only bluetooth does not work.
    In addition to the above, from time to time problems arose with the nvidia driver itself, which manifested itself in the fact that sometimes after rebooting X11 started in "Safe" mode. The nvidia driver itself was proposed by the system and installed through the “Hardware Drivers”.
    Alas, these little things (bluetooth in HID mode without a mouse scroll and without additional keyboard keys, the nvidia driver) quickly became annoying, and as a result returned to Mac OS X.

    PS I failed to install both amd64 and i386 assemblies - differences in work (equipment , speed) did not notice.

    References:
    bugs.launchpad.net/ubuntu/+source/bluez/+bug/575366
    bugs.launchpad.net/ubuntu/+source/bluez/+bug/548720
    ubuntuforums.org/showthread.php?t=1395339
    ubuntuforums.org/showthread .php? t = 1439009
    help.ubuntu.com/community/HdaIntelSoundHowto
    ubuntuforums.org/showthread.php?t=1386790

    Also popular now: