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.
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:
- Dual booting Linux with macOS
- Replace macOS with Linux entirely
- Install Linux using a virtualization app
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:
- 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.
- 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.
- 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.
- 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:
- Type Disk Utility in Spotlight and hit Enter.
- Click View in the top left and make sure Show All Devices is selected.
- Choose your macOS partition and select Partition.
- Now, click the plus ( ) button and make a new partition, then select Add Partition.
- You can rename the partition Linux and make sure the format is set at MS-DOS (FAT32).
- 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.
- To create the partition, select Apply.
- Select Partition > Continue.
- 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:
- Disable System Integrity Protection.
- Download rEFInd.
- Launch Terminal by searching via Spotlight.
- Drag and drop the refind-install to the Terminal window.
- Hit Enter.
- Enter your Admin password when asked and hit Enter.
- 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:
- Choose and download the latest version of a Linux distributor (for this article, we’re referencing Ubuntu).
- Type Disk Utility in Spotlight and hit Enter.
- Click your chosen USB drive, and select Erase.
- Now, set the USB drive as MS-DOS (FAT) and the scheme as GUID Partition Map.
- Launch Etcher and choose Select Image.
- Select and open your chosen Linux Distributor.
- Click Select target and pick your USB drive.
- 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:
- Restart your Mac and hold the Option key.
- Reinsert the flash drive.
- 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:
- Click your Linux distribution install icon
- Continue with the on-screen instructions
- Pick Normal installation and click Install third-party software
- 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:
- 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.
- Select your created Linux partition. If you can’t see it, look for fat32 in the name.
- Choose Change.
- In the Use as drop-down menu, pick Ext4 journaling file system.
- In the Mount point drop-down, select the slash.
- Click OK.
- When prompted, select Continue.
- Now, find the SWAP partition you created earlier.
- Double click it, and in the Use as drop-down select swap area.
- Select OK.
- Launch the Device for boot loader installation drop-down and select your Linux partition once more.
- Double check you’ve chosen the right partitions and select Install Now.
- 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:
- In the Installation type window, click Erase disk and install Ubuntu.
- Select Install Now and choose your hard disk.
- 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:
- Download the ISO file and save it somewhere with easy access.
- Open your Virtual Machine.
- Select the option to create a new virtual machine.
- 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.
- 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:
- You’ll be prompted to save your Linux Virtualization app. Essentially, this will create a virtual machine app.
- This process can take a while, from minutes to hours, so be patient during this time.
- 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.
The above is the detailed content of How to Run Linux on Mac? How to Install It?. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undress AI Tool
Undress images for free

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

If you've owned multiple Apple devices over the years, you might find yourself in a situation where some of those older Macs, iPhones, iPads, or other Apple hardware have been sold, given away, or traded. No matter how they left your possession, it's

When typing on a Mac using a Windows keyboard, the Win key corresponds to the Command key and the Alt key corresponds to the Option key; 1. Understand the key mapping: The Win key replaces the Command key for commonly used shortcut keys such as Command C/V, the Alt key replaces the Option key for special symbol input, and the right Alt key may be mapped to Control or other functions; 2. Adjust the keyboard mapping can be customized through system settings or third-party tool Karabiner-Elements; 3. In terms of function keys and multimedia key support, the F key needs to be used with the Fn key, the default brightness and volume function can be adjusted, and some brand shortcut keys are incompatible and need to be customized; 4. Common shortcut key comparison includes copy and paste.

The default mail application of Mac can be changed to Outlook, Spark and other clients. The specific steps are as follows: 1. Open "System Settings" or "System Preferences" and enter the "Default Application" section; 2. Select the target mailbox application in the "Email" column; 3. If the target application is not displayed, check whether it supports mail protocol binding, try to restart the application or update the version; 4. Test whether the change is effective, click the web email link to confirm whether the pop-up application is the target client. Complete the above steps to successfully switch the default mailbox.

To reopen closed tabs on Mac, launch Safari and navigate to the History menu. Then select either Reopen Last Closed Tab, Reopen Last Closed Window, or click on Recently Closed to restore all tabs from your previous browsing session.Common reasons to

For Mac users who are also sports enthusiasts, there’s a handy little free application known as MenuScores. This app displays the game of your choice directly in the menu bar, making it easy to monitor scores or upcoming game times with just a glance

Some Mac users have noticed that their Contacts app occasionally loses all contact information, leaving the entire address book empty. While this situation is definitely concerning, there's a bright side — in most cases, it’s an easy fix, and your co

To share your Mac screen with others, you can choose the appropriate method according to different scenarios. First, through video conferencing tools such as Zoom, click the "Share" button to select the screen or a specific window for sharing; second, use Messages or FaceTime to initiate a screen sharing session, click the " " to select "Screen Sharing" and invite the other party to view or control it; third, use the "Screen Sharing" App that comes with the system to enable this function on the target Mac and connect to the server address through Finder to achieve remote access; in addition, you need to pay attention to details such as permission settings, privacy protection and network performance impact.

How to transfer files from Mac to external hard driveWhen moving files, you physically remove them from their original location. Copying files, meanwhile, preserves the original file location—pasting a second version to
