Lately I have been asked to use a Macbook pro as a server, to host our DNS and DHCP services etc.. for a conference.
It was not very strait forward easy job, so here just wish to share some experience about the process. it's just some basic key points, I am not going to cover to much details that already documented otherwhere.
So, here are the steps:
1. Download ISO image
Only CentOS 7.4 install image is bootable on Macbook pro (Retina display), otherwise it will show an error message "failed to set moklistrt" and won't boot.
Download her:
http://vault.centos.org/7.4.1708/isos/x86_64/
2. Create USB installation disk
Download and run "Etcher" tool:
https://www.balena.io/etcher/
3. Install CentOS on Macbook
a. Hold on "Option" key then turn on the Macbook, choose the USB as boot device.
b. Then follow the normal steps to install CentOS.
c. Tip: Dual boot of MacOS and Linux is possible
*. Boot to MacOS
*. Use Disk utility to shrink the Mac partition, to free up some space for CentOS Linux
*. Reboot with the CentOS installation USB drive, then create partitions and install it on the free space
*. To boot the MacOS, you will need to hold on the 'Option' key while turn the computer
4. Change the default Font
Because of the resolution is very high, the default font is too small on the Retina display screen, so we need to make it bigger. Rather than change the screen resolution, changing the Font is the best way to fix this issue. please follow the steps:
su
vi /etc/vconsole.conf
Change font to “…-sun32”
reboot