Difference between revisions of "Macbook"

From the Linux and Unix Users Group at Virginia Teck Wiki
Jump to: navigation, search
imported>Pew
imported>Pew
(Replaced content with "Category:Pending deletion")
Line 1: Line 1:
TODO: This is probably outdated and readily available via google
 
 
== Preparation ==
 
 
* Resize your main OS X partition using the disk utility to free up space.
 
* Install the [http://www.rodsbooks.com/refind/ refind boot manager] from OS X using the <code>bless</code> utility.
 
 
== Notes ==
 
 
Generation 2,1 macbooks have a 32-bit EFI. You'll need to install a 32-bit refind, 32-bit grub, 32-bit kernel, and 32-bit userspace.
 
 
== Installation ==
 
 
Pop in a live CD or other installation media. From there, install grub2-efi to the EFI partition at EFI/grub. It will be the VFAT/FAT32 partition with a relatively low partition number. Be careful ''not'' to install grub to the MBR. Also install your kernel and userspace as usual, using the free space you made with the OS X partition manager.
 
 
Example grub.cfg
 
<pre>menuentry "linux latest" {
 
  root=(hd0,gpt3)
 
  fakebios
 
  linux /vmlinuz root=/dev/sda3 i915.modeset=1 video=efifb
 
  initrd /initrd.img
 
}
 
</pre>
 
 
Example fstab
 
<pre># /etc/fstab: static file system information.
 
#
 
# file system    mount point  type    options                  dump pass
 
/dev/sda3        /            ext4    defaults                0    1
 
/dev/sda1        /boot/efi    vfat    ro,nosuid,nodev          0    2
 
 
/dev/sda4        none          swap    sw                      0    0
 
proc            /proc        proc    defaults                0    0
 
 
/dev/cdrom      /media/cdrom  iso9660 noauto,ro,user,exec      0    0
 
</pre>
 
 
== Post-Installation ==
 
 
* For right-click, run <code>synclient TapButton2=3</code>.
 
* For headphone output, <code>sudo apt-get install gnome-alsamixer</code> and unmute the second speaker ([https://bugs.launchpad.net/ubuntu/+source/linux/+bug/201957 Ubuntu bug]).
 
 
== See Also ==
 
* [https://wiki.archlinux.org/index.php/MacBook ArchWiki Macbook article]
 
 
[[Category:Laptops]]
 
 
[[Category:Pending deletion]]
 
[[Category:Pending deletion]]

Revision as of 05:45, 4 January 2018