Mac Performance

How to Run Linux on Mac?

Running Linux on your Mac is a great way to get a customized OS and create an even more conducive environment for software development. Linux is known for its flexibility, as it's used to power a variety of devices—from phones to scientific computers.

 

Not to mention, the majority of systems used in the IT field are Linux-based distributions. So, if you're a professional in this sector, your workstation is likely powered by Linux.  

 

Don’t know how to get Linux on Mac? Luckily, it’s quite simple to do. After reading this guide, you shouldn’t have any problems with installing and running Linux.

 

BEFORE WE BEGIN

 

Ready to download and install Linux? Start with a small preparation first—clean and back up your Mac. You’ll be glad to know that with MacKeeper’s Safe Cleanup, it’s safe and easy to clean your Mac. With a click of a button, you can remove junk files whilst keeping personal files safe.

 

Here’s how you clean your Mac with MacKeeper’s Safe Cleanup:

  1. Download MacKeeper
  2. Launch MacKeeper and select Safe Cleanup from the left pane
  3. Click Start Scan
  4. Select Clean Junk Files
  5. Now your junk files are removed safely.

 

Now let’s get back to the question of Linux installation in more detail.

Is it possible to run Linux on Mac?

The great thing about Linux is, there are several ways to run the open-source operating system on your Mac.  

 

As Linux has different distributions for Mac, here are some of the most popular ones:

  • Ubuntu. One of the leading Linux distributions for Mac users as it’s one of the most compatible when it comes down to driver support
  • Manjaro. For the more experienced users, this distribution is known for its high speed and top-notch performance
  • Deepin. An extremely user-friendly distribution as its layout is a combination of Windows and Mac features.

Methods for installing Linux on a Mac

Depending on your specifications, there are a few ways you can install Linux on your Mac.

 

The methods for installing Linux on a Mac include:

At this moment, Apple silicon chip users can’t install Linux, even if they use an M1, M1 Pro, or M1 Max. The only way you can run Linux on an Apple silicon Mac is by using a virtual machine. On the other hand, it’s possible to use a bootable Linux USB drive, but the performance won’t be up to par.

Prepare Mac for installing Linux

Before we get to installing Linux, you’ll need to prepare your Mac.  

 

Here’s how to prepare your Mac for installing Linux:

 

1. Find a USB flash drive with at least 2GB of storage to install Linux. You’ll end up deleting the USB drive to install a distributor in the future, so make sure you back it up beforehand

 

2. Connect your Mac to the internet via an Ethernet cable. In case your selected distributor doesn't allow you to connect to the internet without a third-party app

 

3. Prepare to dual boot your Mac with Linux by clicking the Apple logo in the top left. Then select About this Mac > Storage, and ensure you have a minimum of 25GB of storage free

Storage User Interface

4. Create a backup of your Mac. It’s unlikely you’ll lose data when dual-booting Linux and macOS. Although, if you encounter an issue, you might have to wipe your Mac to fix it.

Create a partition on Mac drive

If you plan to dual-boot Linux with macOS, the next step is to create a partition for Linux and another as a swap space. You do that by partitioning your Mac drive.

 

Here’s how to create a partition on Mac drive:

 

1. Type Disk Utility in Spotlight and hit Enter

 

2. Click View in the top left and make sure Show All Devices is selected

Disk Utility User Interface

3. Choose your macOS partition and select Partition

Disk Utility User Interface

4. Now, click the plus (+) button and make a new partition, then select Add Partition

 

5. You can rename the partition Linux and make sure the format is set at MS-DOS (FAT32)

 

6. Follow the above steps once more to create a new partition for the swap space. You can name this space SWAP and adjust the format to MS-DOS (FAT). Ensure the size amount is the same amount of RAM you have on your Mac

 

7. To create the partition, select Apply

 

8. Select Partition > Continue  

 

9. Ensure you wait for the process to complete.

Install rEFInd on Mac

Using a third-party boot manager is an effective way of loading Linux, as you can choose between macOS and Linux from the start-up. Also, some Linux distributors aren’t compatible with Mac’s standard boot manager, therefore, it’s a necessary step to run Linux on Mac.

 

You can't install rEFInd on Mac if System Integrity Protection is enabled, so you’ll have to temporarily disable it. It’s a crucial component of your Mac’s security, so ensure to turn it back on after the installation.

 

Here’s how you install rEFInd on Mac:

  1. Disable System Integrity Protection
  2. Download rEFInd
  3. Launch Terminal by searching via Spotlight
  4. Drag and drop the refind-install to the Terminal window
  5. Hit Enter
  6. Enter your Admin password when asked and hit Enter
  7. Once the installation is complete, ensure to turn System Integrity Protection back on.

When you boot up your Mac next, the rEFInd menu should come up right away. However, if you don’t see the menu, hold Option whilst you boot your Mac to load the startup manager.

Create a USB installer

To create a USB installer, you’ll have to use a third-party app such as Etcher, to make an image from your selected Linux distributor.  

 

Here’s how to create a USB installer:

  1. Choose and download the latest version of a Linux distributor (for this article, we’re referencing Ubuntu)
  2. Type Disk Utility in Spotlight and hit Enter
  3. Click your chosen USB drive, and select Erase
  4. Now, set the USB drive as MS-DOS (FAT) and the scheme as GUID Partition Map
  5. Launch Etcher and choose Select Image
  6. Select and open your chosen Linux Distributor
  7. Click Select target and pick your USB drive
  8. Select Flash and type in your administrator password.

Download Linux on Mac from USB installer

Although you’ll save space by downloading Linux from a USB installer, it may cause the operating system to run slowly as it’s running off a USB drive. Bear that in mind when choosing which way to run Linux.  

 

Here’s how to download Linux on Mac from USB installer:

  1. Restart your Mac and hold the Option key
  2. Reinsert the flash drive
  3. When you see the boot loader select Boot EFI and press Enter.

Install Linux on Mac

Now all of the previous steps are out of the way, we’ll go into how to install Linux.

 

Note: You’ll have to use an Ethernet cable to connect your Mac to Wi-Fi to install Linux.  

 

Follow these steps to install Linux on Mac:

  1. Click your Linux distribution install icon
  2. Continue with the on-screen instructions
  3. Pick Normal installation and click Install third-party software
  4. When completed, click Continue.

Dual boot Linux with macOS

First, we’ll look at how to dual-boot Linux with macOS. It’s simple when you know what to do, just be sure to follow these steps carefully.

 

Here’s how to dual-boot Linux with macOS:

  1. Click Something else in the Installation Type window. This step is important, as it’ll allow you to select the partition you created to install Linux. You could override your operating system if you don’t pick the correct option.
  2. Select your created Linux partition. If you can’t see it, look for fat32 in the name.
  3. Choose Change
  4. In the Use as drop-down menu, pick Ext4 journaling file system
  5. In the Mount point drop-down, select the slash
  6. Click OK
  7. When prompted, select Continue
  8. Now, find the SWAP partition you created earlier
  9. Double click it, and in the Use as drop-down select swap area
  10. Select OK
  11. Launch the Device for boot loader installation drop-down and select your Linux partition once more
  12. Double check you’ve chosen the right partitions and select Install Now  
  13. In the pop-up menu, choose Continue.

Replace macOS with Linux

Next, we’ll dive into how to replace macOS with Linux. If this is your selected way to run Linux, please note that this step will erase everything on your Mac. So, ensure you’ve backed up your Macbook before you start this process.

 

Follow these steps to replace macOS with Linux:

  1. In the Installation type window, click Erase disk and install Ubuntu
  2. Select Install Now and choose your hard disk
  3. Continue with the on-screen instructions.

Use a virtual environment to install Linux on Mac

Finally, we’ll reveal how to use a virtual machine to run Linux. It’s amongst the top performers when it comes down to running Linux. However, certain features like graphic drivers will only work efficiently with bare metal. Also, don't anticipate that intense disk I/O operations will be successful, such as testing video games.

Choose a virtualization app

When using a virtual environment to install Linux on Mac, you need to choose a virtualization app that caters to your needs.

 

Here are a few of the most popular virtualization apps:

  • Parallels Desktop - This is one of the fastest virtualization apps around, and you can install macOS from the recovery partition on Intel-based Macs
  • Virtual Box - One of the leading free virtual machines, with over 100,000 users
  • VMWare Fusion - Popular amongst developers as you can run hundreds of operating systems on the virtualization app.

Choose your ISO file

Now, you'll have to select the ISO file. A disk image in ISO format, holding your chosen Linux distribution is necessary here. You can download an ISO file from your Linux distribution’s main page.

 

Here’s how to choose your ISO file:

  1. Download the ISO file and save it somewhere with easy access
  2. Open your Virtual Machine  
  3. Select the option to create a new virtual machine
  4. Proceed with the on-screen instructions. Ensure to be careful during these steps, you’ll want to make the most personally suited version of Linux as possible
  5. If you’re not happy with the version you made, you can simply delete your current version of Linux and go again.

Save the virtualization file and wait for the install to finish

You’ve chosen your ISO file, and it’s time to configure the storage. When selecting the storage space for a Linux virtual machine, remember that the available storage on your Mac will reduce accordingly.

 

Follow these steps to save the virtualization file and wait for the installation to finish:

  1. You’ll be prompted to save your Linux Virtualization app. Essentially, this will create a virtual machine app
  2. This process can take a while, from minutes to hours, so be patient during this time
  3. After this process, you’re all set to use Linux in a virtual environment.

Running Linux on Mac has never been easier

After following this guide, you should now be successful in running Linux on your Mac.  

 

As we’ve covered, there are several effective ways to use Linux on your MacBook. Just remember to prepare your Mac accordingly before installing the operating software. Using a third-party app such as MacKeeper’s Safe Cleanup is a quick and efficient tool to remove junk files without no harm to your personal files and free more space before installing Linux on your Mac.

 

Perhaps you don’t know what to do with old MacBook or how to remote control Mac from another Mac. If so, we’ve got you.

Download Protection & Cleaning App

*You can download the app for free and try its functionality yourself before making a purchase.

Use your Mac to the fullest! Sign up and get:
Effective tips on how to fix Mac issues
Reliable advice on how to stay safe online
Mac-world news and updates

Thank you!

You’ll love exploring your Mac with us.

Oops, something went wrong.

Try again or reload a page.

Here’s another sign you need to upgrade your macOS ASAP:

30% off your MacKeeper subscription

Сopy the code now and use it in the MacKeeper checkout after the upgrade.

Copy Code

Please be aware that this code cannot be combined with any other discounts, offers, or promotions.

Contents

Unlocked

Want to try Ubuntu on Mac? Free some space with MacKeeper first.

Download Now.
PC

MacKeeper - your all-in-one solution for more space and maximum security.

Try Now

Read more

How to Force Quit on Mac?
How to Force Quit on Mac?
Spilled Water on Mac?
Spilled Water on Mac?
arrow

Run Application

step_1

Click Continue

step_2

Click Install

step_1

Your macOS version is lower than OS 10.11. We’d like to offer you MacKeeper 4 to solve the cleaning, privacy, and security issues of your macOS.