- Joined
- Mar 10, 2016
- Messages
- 914
- Motherboard
- ASRock Z97 X4
- CPU
- i5-4690k
- Graphics
- GTX950
- Mac
- Classic Mac
Read the basics here:
https://mattgadient.com/2016/07/11/linux-dvd-images-and-how-to-for-32-bit-efi-macs-late-2006-models/
https://bugs.launchpad.net/ubuntu-cdimage/+bug/1298894/comments/16
On a Linux box (because it's probably easiest) make sure that 'makefs' is installed (say in the Synaptic Manager, or the software manager of your distro)
Download your favourite amd64 linux distro.
Create a folder, say in your Home -> Desktop directory.
COPY the downloaded distro to this folder.
Copy the .c script file, create a text file, paste, save as 'make_single_eltorito.c' (No quote marks)
Right click the copied distro file and go down to "Properties".
Click, select all, copy the file name
Close the Properties window
Edit the file make_single_eltorito.c , highlight insert-your-linux.iso name here, right click, paste. Yes, keep the name in (single) quotes.
Exit/save the file.
Open a system/root console. Some distros will allow you to open a root console from within the open window that has your folder showing the iso and the .c script file. If not you will have to navigate to it.
Issue the command "cc -g -Wall -o make_single_eltorito make_single_eltorito.c" (No quote marks)
Once done, issue the command "./make_single_eltorito" (No quote marks.)
That should strip the 64bit efi bootloader from the .iso file.
Insert a blank DVD drive and burn the .iso that is in the folder you created. Double click the .iso and k3b should start up in Linux, for example.
The .c script:
I chose to install 'PC Linux OS KDE5' since I like their menu more than most KDE distros and since I did not like the GNOME-ish menus on the Ubuntu 14.04 MATE {and KDE4} amd64+mac distro. (I added KDE4 to the MATE mac distro after I installed MATE and then switched to it on login.)
When PCLOS asked which bootloader I wanted I choose GRUB instead of GRUB2 since GRUB2 will install the distro in UEFI. (I had pre-formatted my 1TB HDD as GPT in OXS 10.5.8). The GRUB2 version will install the OS in LVM, which is what OSX El Cap, Sierra, et. al., uses and which should allow OSX to auto mount the Linux distro since it will assign an UEFI GUID label.
Those who have tried to install KDE themes under KDE4 and all they got was a beach ball should know that the theme installer works fine with PCLOS KDE5. You could install a few Yosemite themes and you will probably need to swap the buttons manually (unlike Linux Mint MATE where GNOME Tweak will automatically do it with a box check and apply button.)
http://cdimage.ubuntu.com/releases/14.04/release/
The one I run/ran is ubuntu-14.04.4-desktop-amd64+mac.iso Just make sure that it says "amd64+mac" as the descriptor.
http://releases.ubuntu.com/?_ga=1.227842584.425324681.1484456275
http://releases.ubuntu.com/16.04/
http://releases.ubuntu.com/14.04.4/
http://cdimage.ubuntu.com/releases/14.04/release/
Ubuntu's method: https://help.ubuntu.com/community/MacPro
I didn't want to bother with rEFI since I have BootCamp installed.
After it's installed you may have the usual sound, video, wireless, and keyboard problems. For sound you will have to play with the sound selection. I'm still working on getting X.ORG to map the Apple Aluminum keyboard. Heck, even OSX 10.5.8 burps on the Apple Aluminum keyboard...
On my Mac Pro 1,1 I installed an Apple/ATI HD4870 (RV770?) video card and it works fine with most newer distros (but I didn't want to go through the Debian Net install gyrations. Fully how the Debian Jessie distro can't get the HD4870 working but Ubuntu and others got it to work right out of the box. Gentoo was a no-go, too. One big benefit of PCLOS is that there is no sysytem.d. http://www.pclinuxos.com Why didn't I go with Linux Mint? PCLOS is a rolling distro.
After all was said and done I now have Mac OSX 10.5.8, W7Pro, KDE5 and Ubuntu 14.04 MATE on separate 1TB drives.
https://mattgadient.com/2016/07/11/linux-dvd-images-and-how-to-for-32-bit-efi-macs-late-2006-models/
https://bugs.launchpad.net/ubuntu-cdimage/+bug/1298894/comments/16
On a Linux box (because it's probably easiest) make sure that 'makefs' is installed (say in the Synaptic Manager, or the software manager of your distro)
Download your favourite amd64 linux distro.
Create a folder, say in your Home -> Desktop directory.
COPY the downloaded distro to this folder.
Copy the .c script file, create a text file, paste, save as 'make_single_eltorito.c' (No quote marks)
Right click the copied distro file and go down to "Properties".
Click, select all, copy the file name
Close the Properties window
Edit the file make_single_eltorito.c , highlight insert-your-linux.iso name here, right click, paste. Yes, keep the name in (single) quotes.
Exit/save the file.
Open a system/root console. Some distros will allow you to open a root console from within the open window that has your folder showing the iso and the .c script file. If not you will have to navigate to it.
Issue the command "cc -g -Wall -o make_single_eltorito make_single_eltorito.c" (No quote marks)
Once done, issue the command "./make_single_eltorito" (No quote marks.)
That should strip the 64bit efi bootloader from the .iso file.
Insert a blank DVD drive and burn the .iso that is in the folder you created. Double click the .iso and k3b should start up in Linux, for example.
The .c script:
Code:
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
static char *iso_name = {"insert-your-linux.iso name here"};
int main(int argc, char **argv)
{
int fd, ret;
unsigned char buf[2048 - 64];
off_t lba;
size_t buf_size = 2048 - 64;
fd = open(iso_name, O_RDWR);
if (fd == -1)
goto err_ex;
if (lseek(fd, (off_t) 32768 + 2048 + 71, SEEK_SET) == -1)
goto err_ex;
ret = read(fd, buf, 4);
if (ret == -1)
goto err_ex;
if (ret < 4) {
fprintf(stderr, "Cannot read 4 bytes from %s\n", iso_name);
exit(1);
}
lba = buf[0] | (buf[1] << 8) | (buf[2] << 16) | (buf[3] << 24);
if (lseek(fd, lba * 2048 + 64, SEEK_SET) == -1)
goto err_ex;
memset(buf, 0, buf_size);
ret = write(fd, buf, buf_size);
if (ret == -1)
goto err_ex;
if (ret < buf_size) {
fprintf(stderr, "Cannot write %d bytes to %s\n", (int) buf_size, iso_name);
exit(1);
}
close(fd);
printf("done\n");
exit(0);
err_ex:;
perror(iso_name);
exit(1);
}
I chose to install 'PC Linux OS KDE5' since I like their menu more than most KDE distros and since I did not like the GNOME-ish menus on the Ubuntu 14.04 MATE {and KDE4} amd64+mac distro. (I added KDE4 to the MATE mac distro after I installed MATE and then switched to it on login.)
When PCLOS asked which bootloader I wanted I choose GRUB instead of GRUB2 since GRUB2 will install the distro in UEFI. (I had pre-formatted my 1TB HDD as GPT in OXS 10.5.8). The GRUB2 version will install the OS in LVM, which is what OSX El Cap, Sierra, et. al., uses and which should allow OSX to auto mount the Linux distro since it will assign an UEFI GUID label.
Those who have tried to install KDE themes under KDE4 and all they got was a beach ball should know that the theme installer works fine with PCLOS KDE5. You could install a few Yosemite themes and you will probably need to swap the buttons manually (unlike Linux Mint MATE where GNOME Tweak will automatically do it with a box check and apply button.)
http://cdimage.ubuntu.com/releases/14.04/release/
The one I run/ran is ubuntu-14.04.4-desktop-amd64+mac.iso Just make sure that it says "amd64+mac" as the descriptor.
http://releases.ubuntu.com/?_ga=1.227842584.425324681.1484456275
http://releases.ubuntu.com/16.04/
http://releases.ubuntu.com/14.04.4/
http://cdimage.ubuntu.com/releases/14.04/release/
Ubuntu's method: https://help.ubuntu.com/community/MacPro
I didn't want to bother with rEFI since I have BootCamp installed.
After it's installed you may have the usual sound, video, wireless, and keyboard problems. For sound you will have to play with the sound selection. I'm still working on getting X.ORG to map the Apple Aluminum keyboard. Heck, even OSX 10.5.8 burps on the Apple Aluminum keyboard...
On my Mac Pro 1,1 I installed an Apple/ATI HD4870 (RV770?) video card and it works fine with most newer distros (but I didn't want to go through the Debian Net install gyrations. Fully how the Debian Jessie distro can't get the HD4870 working but Ubuntu and others got it to work right out of the box. Gentoo was a no-go, too. One big benefit of PCLOS is that there is no sysytem.d. http://www.pclinuxos.com Why didn't I go with Linux Mint? PCLOS is a rolling distro.
After all was said and done I now have Mac OSX 10.5.8, W7Pro, KDE5 and Ubuntu 14.04 MATE on separate 1TB drives.
Last edited: