
Last weekend, I wanted to see the release of
Ubuntu 10.04 with my own eyes. The first acquaintance decided to implement in a virtual machine. After working for an hour, it was understood that I like the system so much that I don’t want to go back to Mac OS X. Thus was born the despicable idea to implement a full 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 the scattered information about the iron settings and tell you what happened in the end.
Configuration
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
- In Mac OS X, we install rEFIt for easy switching of operating systems when the machine is booted, then we divide the HDD into partitions with the Boot Camp Assistant;
- We put Ubuntu;
- We are happy.
Practice
- The first rake was waiting for us in Assistant Boot Camp Mac OS X, which refused to divide the disk into partitions. I suspect that the reason was a large fragmentation, because the disk at that time was 50% full, but in general, it was 90% full before that. Yes, FileVault encrypted user folder.
As a result, it was decided to make a new partitioning using Disk Utility, booting from Mac OS X Recovery DVD and allocate 447Gb for Ubuntu, leaving only 50Gb for Mac OS X.
It is important to transfer all personal data to an external drive (for example, using Time Machine), since on the original disk, all data will be destroyed .
')

Mac OS X Disk Utility with the following options: Mac OS X 50Gb partition, free space for installing Ubuntu 447Gb
- Downloading from a LiveCD (holding down the “C” key) and installing Ubuntu were completed without any problems.
The only thing you should pay attention to is installing the Grub bootloader. You need to install it in the same section where Ubuntu is installed (in the screenshot below). Otherwise, Mac OS X or Ubuntu may not boot afterwards (but this is not terrible, you can always boot using Mac OS X Recovery DVD or Ubuntu LiveCD and fix the bootloaders).

Step 7 (or 8) Ubuntu Installation Assistant. You need to click "Advanced" and choose the same section for the bootloader as for "/"
- We rejoice, but not for long. Since they do not work:
- Reboot machine
- Sound
- Bluetooth
Reboot machine
Symptom: on the reboot command (or when selecting the “Reboot” option in the graphical environment), the machine freezes at the moment when the processes are complete and in theory it should go to a reboot. At the same time, shutdown and sleep / standby modes are normally performed.
The root of the problem is at the core. The same problem occurs on unibody MacBooks.
Treatment: in / etc / default / grub find the line
GRUB_CMDLINE_LINUX_DEFAULT="quit splash"
and add quotes inside
reboot=pci
, i.e. we get
GRUB_CMDLINE_LINUX_DEFAULT="quit splash reboot=pci"
Next, run the
update-grub
command, which will make our changes to the bootloader itself.
Sound
Symptom: there is no sound, the microphone does not work either.
Treatment: download the necessary drivers from the repository
sudo apt-get update
sudo apt-get install linux-backports-modules-alsa-lucid-generic
then add the
options snd-hda-intel model=imac27 power_save=10 power_save_controller=N
to the end of the /
etc/modprobe.d/alsa-base.conf
file. Next
sudo reboot
(good now works).
After downloading, launch the alsamixer in the terminal and turn up the volume / turn on the channels (m) Front Speaker and Surround Speaker.
You can adjust the microphone in the standard Gnome audio settings — on the “Input” tab, select a microphone and raise the volume.
Bluetooth
Symptom: in the properties of Bluetooth says that 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) will impersonate the HID device. In this case, the utility hid2hci is provided in bluez. In Ubuntu 10.04 and bluez 4.60, hdev2hci is in charge of udev, in particular the /lib/udev/rules.d/70-hid2hci.rules script. However, for some reason, it was not possible to force him to work out our BCM2046. As a result, Magic Mouse does not have scrolling, and the keyboard does not work extra. keys (Fn and others).
Attempting to connect an external USB Bluetooth module also failed. The keyboard and mouse after a reboot deadly cling to the native HID BCM2046, ignoring the external module.
Treatment: not found.
Total
The overall impression of the speed of Ubuntu 10.04 on iMac is positive. Subjectively, Ubuntu is easier, faster than Mac OS X. Of all the equipment, only bluetooth does not work.
In addition to the above, from time to time, problems with the nvidia driver arose and disappeared by themselves, which were expressed in the fact that sometimes after a reboot, the X11 started in “Safe” mode. The nvidia driver itself was proposed by the system and installed via Hardware Drivers.
Alas, these little things (bluetooth in HID mode without scrolling the mouse and without additional keyboard keys, nvidia driver) quickly became annoying, and as a result returned to Mac OS X.
PS I tried to install both amd64 and i386 assemblies - I did not notice the difference in operation (hardware, speed).
References:
bugs.launchpad.net/ubuntu/+source/bluez/+bug/575366bugs.launchpad.net/ubuntu/+source/bluez/+bug/548720ubuntuforums.org/showthread.php?t=1395339ubuntuforums.org/showthread.php?t=1439009help.ubuntu.com/community/HdaIntelSoundHowtoubuntuforums.org/showthread.php?t=1386790