This tutorial aims to install a Lubuntu 17.10 on a Macbook3,1 using live CD via usb-stick. My major problem was running the desktop 32bit ISO which does not fit on a CD. This may also work on an old MacMini1,1
- VM Host http://virtualbox.org
- Live Lubuntu ISO Image
- USB-Stick >= 2GB
- Download Live CD - I'm using Lubuntu 17.10.
- Start VirtualBox and create new VM mounting ISO-Image
- Start Live-CD VM
- For Lubuntu 17.10 it might be necessary to start with "nomodeset" option Press "F6" Other Options and set "nomodeset"
In Live-CD open terminal wit ctrl + alt + t
sudo gparted
- Select USB-Drive (e.g. /dev/sda)
- Menu:Device > Create Partition Table > Dialog:Warning This will ERASE... > Dropdown:gpt > Button:Apply
- Menu:Partition > New > Filesystem: Dropdown:fat32 ; Partition Name: GRUB2EFI > OK > Menu:Edit > Apply all Operations
- Exit
gparted
Still in Live-CD...
- Download the
grub.sh
,grub.cfg
together withpost.sh
script in same folder. - Make sure that your usb-stick is device
/dev/sda
and mounted under/media/lubuntu/GRUB2EFI
.- If this is not the case edit the
grub.sh
script.
- If this is not the case edit the
- Run
sh grub.sh
from the terminal. - If using a different ISO-Image you may need to change grub.cfg in
EFI/BOOT
folder on the usb-stick. - Switch to your Host-OS and copy the iso image to the
/iso
folder
Your stick should contain these files now.
/media/lubuntu/GRUB2EFI
├── EFI
│ └── BOOT
│ ├── bootx64.efi
│ ├── bootia32.efi
│ └── grub.cfg
├── iso
│ └── lubuntu-17.10.1-desktop-i386.iso
└── post.sh
- Boot into OSX and open "Disk Utility"
- Repartition your Harddisk to decrease your OSX Partition. Create a new one for Lubuntu
- Check here on how to do http://www.peachpit.com/articles/article.aspx?p=1395749
- Download ReFind https://sourceforge.net/projects/refind/files/0.11.2/refind-bin-0.11.2.zip/download
- Unzip and run
./refind-install
- Documentation is at http://www.rodsbooks.com/refind/installing.html#osx
- Unzip and run
- Shutdown OSX
- Insert usb-stick in macbook and boot holding the
alt
key. - Select the "EFI Boot" with USB-Icon (right-most)
- Boot into Live CD - this may take some time... make credit to USB1
- Click on "Install Lubuntu 17.10"
- You may check https://help.ubuntu.com/community/Lubuntu/InstallingLubuntu on howto install
- Do NOT unmount partitions that are in use (it's your usb-stick we need for installation)
- Run the partiioning using your second partition you peviously created under OSX.
- Note down the device name lubuntu gets installed. E.g.
/dev/sda3
- Run the installer - it will stop with an error stating that grub can`t be installed
- Do NOT shutdown the computer.
- Note down the device name lubuntu gets installed. E.g.
- Grub bootloader installation using
post.sh
script.- Check your partitions first with
sudo fdisk -l /dev/sda
- Make sure your Linux filesystem is at
/dev/sda3
. If this is not the case editpost.sh
and change the linelinux=${disk}3
accordingly. Usecp /isodevice/post.sh .
- Run
sh /isodevice/post.sh install
- Check your partitions first with
- Install additional drivers...
- Broadcom Wifi
- Intel Microcode
- You may change the default behavior for function keys
- See details https://help.ubuntu.com/community/AppleKeyboard
- TLTR
echo options hid_apple fnmode=2 | sudo tee -a /etc/modprobe.d/hid_apple.conf sudo update-initramfs -u -k all
- isight http://bersace03.free.fr/ift/
sudo apt install isight-firmware-tools # mount Macintosh HD from file manager sudo ift-extract -a /media/$USER/Macintosh\ HD/System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBVideoSupport.kext/Contents/MacOS/AppleUSBVideoSupport
- There is an issue with [drm:drm_atomic_helper_commit_cleanup_done [drm_kms_helper]] ERROR [CRTC:26:pipe A] flip_done timed out in
dmesg
- check https://bbs.archlinux.org/viewtopic.php?pid=1689914#p1689914
- in
/etc/default/grub
addthen runGRUB_CMDLINE_LINUX_DEFAULT="acpi_osi=Linux acpi_backlight=vendor video=SVIDEO-1:d"
update-grub
- http://lubuntu.org/
- https://askubuntu.com/questions/395879/how-to-create-uefi-only-bootable-usb-live-media
- https://ubuntuforums.org/showthread.php?t=2276498
- https://help.ubuntu.com/community/UEFIBooting#Building_GRUB2_.28U.29EFI
- http://howtoubuntu.org/how-to-repair-restore-reinstall-grub-2-with-a-ubuntu-live-cd
- ReFind