![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.
|
|
Apple Intel Users Discussions for users who are using Apple Intel based systems with Ubuntu. |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
A Carafe of Ubuntu
![]() Join Date: Apr 2007
Beans: 84
Ubuntu 7.04 Feisty Fawn
|
MacBook + Ubuntu Feisty 7.04 = 98% Success
So I got myself a Mac. Its simply brilliant, I mean its hard to look at the damn thing and not fall in love. The OS X operating system is another thing though. I mean its good but lacks a lot of serious functionality. Lets get this running then. Detailed below is a dual boot up configuration for the new Core 2 Duo MacBook White.
Hardware Specs - 2Ghz core 2 duo processor 4MB Cache 1 GB DDR2 RAM 80 GB HDD The 2 operating systems in your machine after this install will be Mac OS X and Ubuntu Feisty 7.04. If you're look for a triple boot with another EVIL and USELESS OS in mind you'll need to read up somewhere else (or manage it based on whats here the basic setup is the same). -> https://wiki.ubuntu.com/MacBookPro A few notes before we begin. I like to think of myself as a purist and would rather have only the Ubuntu Linux operating system on by itself. This however gave me a lot of trouble. For example, the Num Lock and Caps Lock keys would light when USB devices were plugged in etc. -> http://ubuntuforums.org/showthread.php?t=439541 These problems do go away with the dual boot setting(don't ask why). Another thing is the fact that if you want the iSight camera running in Linux you need the Mac OS X partition since you will need to mount it(only once) and use the iSight Apple Firmware. As the choice of version of Ubuntu, I normally prefer and use Kubuntu, but the MacBook's keyboard controls like volume and brightness work out of the box with Ubuntu and not Kubuntu. Actually in Kubuntu the volume buttons' work but not the brightness. Another thing is that Kubuntu does detect the the in built Bluetooth (which for some reason does not work). The Bluetooth is something you can easily install in Ubuntu later, so I went with it. Lets go. Testing Screen Resolution You can try and run Ubuntu from the Live CD (to boot from the Live CD keep the 'option' button pressed when you power on, this gives you a menu, choose the Windows CD here, as another side note all linux things partitions etc. will be shown as Windows by the MacBook). This will however leave you with a bad taste because the display resolution is not set properly. There are 3 things you can do here. 1. Trust me when I say Ubuntu looks beautiful on the MacBook 13" wide screen once configured. 2. Decrease the resolution of Mac OS X to 1024x768 (in System Preferences), this will prove to you that even your beautiful Mac OS looks bad when not configured properly. 3. Set the correct display for the Live CD itself. Explained below, you must however be prepared to do this again when Ubuntu is installed. You need an Ethernet connection (LAN cable) to do all this. The wireless is not detected out of the box, but the Gigabit Ethernet port is. Setup a password for the default Live CD login account. Code:
sudo passwd ubuntu Code:
sudo gedit /etc/apt/sources.list Code:
sudo aptitude update Code:
sudo aptitude install 915resolution Login with the user name ubuntu and the password that you setup before. Yeayyy! You should now see the Ubuntu Desktop with the correct settings. You can play around a bit, even enable the basic Desktop Effects (Compiz) in the System -> Preferences menu. Ready to Install Like what you see. Lets get down to the real thing then. You need to go back to the Mac OS X to get started. Before we begin I recommend you reinstall Mac OS X from the DVDs that came along. The reason I say this is because the default install takes almost 16GB, while if you customize it and remove all the crap(iDVD iPhoto printer drivers (keep them for your printer type) etc.) you can get it down to about 3 GB. Of course you can manually delete this if needed. I reinstalled it and named the Macintosh HD -> Anuj Seth. You can rename, repartition your HD from the Disk Utility in the menus above the installer window. About Bootcamp and refit --> if you've been reading other places (which you should have been) you've probably seen things about getting Bootcamp, refit etc. If you just bought a ne MacBook (mines May 2007, with Mac OS X Tiger '10.4.8') you DONOT need this. Its already there, infact the option button you pressed earlier at boot up to get the Live CD running is Bootcamp (or something similar). In Mac OS X open a Terminal window. You can find this in Applications -> Utilities. Use 'diskutil' to partition the drive space. This step does NOT delete your existing data. However as with all partitioning operations you should back up since a lot can go wrong. In the terminal punch in the following. Code:
diskutil list ![]() You can see 3 partitions. Actually its 2. The first one is a summary of your disk. The second (200 MB as compared to 80 MB in the earlier MacBooks) is the EFI partition. The partition we need to modify is the 3rd thing listed. Its identifier is important 'disk0s2' in this case. Code:
sudo diskutil resizeVolume disk0s2 20G "Linux" anujlinux 54G This will re-partition your HD to create 20 GB space for Mac OS X and 54 GB for Ubuntu Linux. The actual space for Ubuntu is immaterial as we will delete this partition later to reclaim free space. The pictures below illustrate the process. The actual partitioning is done when you reboot your system. Your Mac OS X is now resident in a 20 GB partition. ![]() ![]() After rebooting. ![]() Installing Ubuntu [UPDATE - Before you do this please read the "More Things Work - Updates" section at the end of this post] Restart and boot into the Live CD by pressing the Option key at startup. Ubuntu boots. Click the Install icon on the desktop. Follow simple instructions until you come to the Partitioning screen(Step 4). Select 'Manual' partitioning here. Check the box in front of the Linux partition you created (54GB) /dev/sda3 in my case. This is why I earlier said the size of the Linux partition is not important. When you delete this partition it gets merged with the free space which is what we will use to install Ubuntu. You need to create 2 partitions one to mount root '/' i.e. your linux file system and a swap space. Select the free space and create a 'New Partition'. Select this such that 1GB remains for the swap space (or less or more as you see fit, swap can be resized later). Select this partition (53 GB for me) to be 'ext3' formatted and give it a '/' mount point. Create another partition from the remaining free space and use it as swap. The pictures below demonstrate the process. ![]() ![]() ![]() ![]() Now you're ready to install. This is basically the most difficult part for many, so the detailed write up and pictures. To get other things working after the install numerous excellent tutorials already exist. The links are below. You donot need to change the bootloader i.e. grub settings etc. the defaults work fine including where it is installed. Upon booting after installation completes, your machine will go to Mac OS X by default. To go to Ubuntu keep the 'option' button pressed when putting on power, you should see 2 Hard Disk icons, go to the one labelled Windows its actually your Linux install, grub takes over from here. The other option is ofcourse your Mac OS X install. Getting the resolution to 1280x800 Follow the same steps as the Live CD procedure above, except this time there is no need for setting a password, once done you can re-login with your user account, which is what you are using. LCD Subpixel smoothing In the Menu Bar above System -> Preferences -> Font. Select the radio button next to Subpixel Smoothing(LCDs). Microsoft True Type Fonts -> http://ubuntuforums.org/showthread.php?t=208396 A potential problem here is that you might not like this. To remove this simply type Code:
sudo aptitude remove msttcorefonts Code:
cd /etc/fonts; sudo rm *.conf -> https://help.ubuntu.com/community/MacBook -> http://madwifi.org/wiki/UserDocs/FirstTimeHowTo There is a bug in these though. The damn thing shows only half signal intensity even when standing right next to an access point. Installing Bluetooth Code:
sudo aptitude install gnome-bluetooth -> http://ubuntuforums.org/showthread.php?t=94713 -> http://live.gnome.org/GnomeBluetooth You may also install the Kde Bluetooth applications if you prefer them from the Add/Remove Programs menu. Installing Restricted Formats To get your movies, mp3s etc working. -> https://help.ubuntu.com/community/RestrictedFormats Installing Beryl Bling!! -> https://help.ubuntu.com/community/MacBook Installing USB Ports The pure Ubuntu installed gave me major trouble with the USB ports. Caps and Num Lock keys would light up when devices were plugged in, turn of when removed. Moreover a USB mouse and a Seagate Porta Disk would not run together. There have been no such problems in the dual boot install. Installing the iSight camera The links to the source. The guy who wrote(or hacked together) the drivers. Use the links below these to do the actual install. These are for reading up more and troubleshooting. -> http://blogs.gnome.org/portal/rbultje -> http://ronald.bitfreak.net/isight.php Install using instructions on these pages. -> https://help.ubuntu.com/community/MacBook -> http://ubuntuforums.org/showthread.php?t=225621 The iSight camera works like a charm. Installing Sound Everything, including muting on headphones works by default. The volume is a little weak though, specially on the headphones and there is the occasional hissing noise in the far background. Installing the Microphone -> http://www.jasonparekh.com/?page_id=9 -> http://ubuntuforums.org/showthread.php?t=198453 I havent done this yet. Suspend Works out of the box with the white light pulsing and everything. However to get back after suspend you need to press the power button. Keyboard and Mouse Work, including USB, you may however need to set key preferences. -> http://www.dadeb.it/index.php/macbook-and-ubuntu-linux/ -> http://modular.math.washington.edu/macbook/ Right Click settings (Not tested) -> http://felipe-alfaro.org/blog/2006/02/14/right-click-on-apples-powerbook-and-ubuntu-linux/ Disabling the touch pad (Not tested, some people might want this option, especially if they find themselves for no apparent reasons in weird parts of documents while typing ... yeah its generally this thingy) -> http://ubuntu.wordpress.com/2006/09/...y-when-typing/ Fan and Battery Definitely work. I managed to boil the damn thing quite a few times already. The Fans dutifully kick in and at varied speeds too. Maybe there is an app like Mac OS X to control fan speed, I havent looked though. This is also a problem. In my experience the Mac Book heats up a lot more in Ubuntu Linux as compared to Mac OS X especially when the WiFi is on. This is almost always as the MadWiFi drivers dont have a power on/off option. There is a C program which does this but I haven't tried it (and can't find the link now). Battery backup is definitely less when running Ubuntu. -> http://ubuntuforums.org/showthread.php?t=434639 There are also options available for cutting down battery usage. (Not Tested) -> http://www.dadeb.it/index.php/macbook-and-ubuntu-linux/ CD / DVD Keyboard Eject works. CDs / DVDs work. Not tried the burning though it should work by default though, these things are generally pretty standard. Not tested the Firewire and video out [UPDATE - Firewire works see 'seamyst's post below'] Things that don't work Maybe I missed something and u'll help me out here. But like I said at the beginning of the post most problems like lighting up of num lock keys etc. on plugging in USB devices go away on dual boot, still some remain. [UPDATE - This WORKS -- see the "More Things Work - Updates" section at the end of this post] One thing I really miss is the green light on my Caps Lock and Num Lock keys. The keys work but the lights on them don't. Another problem is the brightness defaults to full, which is extremely bright, on restarting. Though you can decrease it using the keyboard, doing this everytime is a pain. I did manage to find a setting in Preferences that keeps your preference across boots, I found this setting when I did a pure Ubuntu installation. Its gone now and I'm not even sure what is was. Some links tell you to change the setting in Mac OS X and it stays in Ubuntu, it doesnt for me. -> http://modular.math.washington.edu/macbook/ Another untested hack, -> http://felipe-alfaro.org/blog/2006/0...r-macbook-pro/ Things like Shift + Delete, Alt + F2 don't work and you will need to set keyboard shortcuts for them manually. You can find the necessary options in System -> Preferences. You can also do this on the command line. -> http://modular.math.washington.edu/macbook/ More Things Work - Updates 1. The little green lights on the Caps Lock and Num Lock key WORK. Please select English and then when prompted for keyboard type select "US - Macintosh" NOT the standard one during install. This is something I overlooked earlier and it works if you take care to select this simple option during install. Last edited by anujseth; May 25th, 2007 at 04:53 AM.. Reason: FIXES - More Things Work |
|
|
|
|
|
#2 |
|
A Carafe of Ubuntu
![]() Join Date: Dec 2004
Location: Netherlands
Beans: 149
Dapper Drake
|
Re: MacBook + Ubuntu Feisty 7.04 = 98% Success
Great tutorial dude! Thanks!
Since I got a iMac with a Wifi card that doesn't work (Broadcom 4328 rev 01), I still use OSX. |
|
|
|
|
|
#3 | |
|
Dark Roasted Ubuntu
![]() Join Date: May 2006
Location: Philadelphia
Beans: 1,107
Kubuntu Karmic Koala (testing)
|
Re: MacBook + Ubuntu Feisty 7.04 = 98% Success
Quote:
Edit: I found this link regarding the 43xx Broadcoms. Sorry if you've seen it before. Hopefully we can get you in working order soon!
__________________
Ubuntu bro! Metal! Creative Commons! DOWNLOAD NOW! Last edited by ronocdh; May 23rd, 2007 at 12:26 PM.. |
|
|
|
|
|
|
#4 | |
|
A Carafe of Ubuntu
![]() Join Date: Dec 2004
Location: Netherlands
Beans: 149
Dapper Drake
|
Re: MacBook + Ubuntu Feisty 7.04 = 98% Success
Quote:
![]() ![]() ![]() ![]() ![]() I hate this Microsoft world |
|
|
|
|
|
|
#5 |
|
First Cup of Ubuntu
![]() Join Date: May 2007
Beans: 2
|
Re: MacBook + Ubuntu Feisty 7.04 = 98% Success
Thorough job there it appears. I've tried so many times for a clean install on a MacBook Pro but failed with both BootCamp and Parallels (for the Evil Empire OS). It is driving me nuts. This is where I'm at:
BootCamp installed but inoperative. Fatal kernel disconnect and init asssassination attempt has stopped Ubuntu. It's still looking for a Cyrillic script! It also freaked because it couldn't find X11 at the install. I need to dump it and start again. From what you've written I need to dump BootCamp also. But can I do this without a total re-install of OSX, and a dozen others licensed apps that go through the whole registration palava? Can I just nix the partition(s) I have now for Ubuntu, or resize them and just attempt another install? Seems like BootCamp might be an issue. It won't operate because Ubuntu created the partitions, its documentation says. I hope all this is worth it. I love using Linux and my son swears by Ubuntu but getting it on this machine is a real pain. |
|
|
|
|
|
#6 | |
|
Dark Roasted Ubuntu
![]() Join Date: May 2006
Location: Philadelphia
Beans: 1,107
Kubuntu Karmic Koala (testing)
|
Re: MacBook + Ubuntu Feisty 7.04 = 98% Success
Quote:
If you want to jerk around your partitions before installing Ubuntu again, try iPartition. It can nondestructively adjust HFS+ partitions. Good luck!
__________________
Ubuntu bro! Metal! Creative Commons! DOWNLOAD NOW! |
|
|
|
|
|
|
#7 |
|
A Carafe of Ubuntu
![]() Join Date: Apr 2007
Beans: 84
Ubuntu 7.04 Feisty Fawn
|
Re: MacBook + Ubuntu Feisty 7.04 = 98% Success
@Little Nate
Ubuntu rocks no doubt about it ... another 5 years of work and it should be killer. Anyway, don't know much about the MacBook Pro ... these new ones have BootCamp pre - installed so no problem here. But yeah reading some of the tutorials it does seem like a lot of work getting it to run on the older ones. |
|
|
|
|
|
#8 |
|
Just Give Me the Beans!
![]() Join Date: Dec 2006
Beans: 76
Ubuntu 9.10 Karmic Koala
|
Re: MacBook + Ubuntu Feisty 7.04 = 98% Success
Firewire does indeed work - I use it for my iPod. Great tutorial, though!
|
|
|
|
|
|
#9 |
|
A Carafe of Ubuntu
![]() Join Date: Apr 2007
Beans: 84
Ubuntu 7.04 Feisty Fawn
|
Re: MacBook + Ubuntu Feisty 7.04 = 98% Success
@ronocdh
yeah those are good options i guess ... anyway can you tell me if your MacBook or whatever you have heats up a lot more on Ubuntu ... this is something thats of great concern and am looking at various fixes ... 15 mins into netbeans and java development with the WiFi on and its boiling ... ps: do you know a link that has pictures of a MacBook opened up ... would be nice to know what is causing the heat and work specifically on that end first. |
|
|
|
|
|
#10 |
|
Ubuntu Extra Shot
![]() Join Date: Apr 2007
Beans: 360
Ubuntu 7.10 Gutsy Gibbon
|
Re: MacBook + Ubuntu Feisty 7.04 = 98% Success
For partitioning, you can download the live-cd and use gparted. The only thing is you can't move the partition. But resizeing the HFS+ does work. And its free!
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|