Install Linux (Ubuntu 20.04) on M1/M2 Mac Silicon (2024)

Install Linux (Ubuntu 20.04) on M1/M2 Mac Silicon (2)

Hey there, fellow robotics enthusiasts and Linux users! So, you’ve got yourself one of those powerful M1 or M2 Macs, but you’re itching to run projects that run only on Linux, right? Fortunately, with the help of virtualization technology, it’s possible to run Linux on M1/M2 Macs. In this guide, we’ll explore how to set up Linux on your M1/M2 Mac using the UTM virtual machine.

What is UTM?

UTM stands for “Universal Terminal Machine,” an open-source virtualization tool designed for macOS and iOS. It enables users to run virtual machines on Apple Silicon devices, including M1 and M2 Macs. With UTM, you can emulate various operating systems, including Linux distributions, Windows, and more. You can download the UTM app for Mac from the official UTM download link.

Setting Up Linux on M1/M2 Macs using UTM:

Here’s a step-by-step guide (which looks long because I have tried to include pictures of every step in this guide) to installing Linux on your M1/M2 Mac using UTM:

  1. Download and Install UTM:
  • You can download the UTM app from the link given above or just search for UTM for Mac on Google to download it.
  • Once downloaded, open the DMG file and drag the UTM application to your Applications folder to install it.

2. Obtain a Linux Disk Image:

  • Choose a Linux distribution that you want to install. Popular choices include Ubuntu, Fedora, and Debian. We are gonna install Ubuntu 20.04 in this tutorial.
  • Since Ubuntu 20.04 desktop version for ARM 64 has been removed from the official website we will use a workaround to get that beautiful Ubuntu 20.04 desktop.
  • Download the server disk image for Ubuntu 20.04 (ARM 64 version) from here. Remember it’s only a server image so it will have only a command line interface. We will install the full desktop version in the upcoming steps.

3. Create a New Virtual Machine in UTM:

  • Open UTM from your Applications folder.
  • Click on the “+” button to create a new virtual machine.
Install Linux (Ubuntu 20.04) on M1/M2 Mac Silicon (3)
  • Choose “Virtualize” option. So the difference between “Virtualize” and “Emulate” is that Virtualize virtualizes the machines that have native support for Apple silicon,i.e, ARM 64 chipset that’s why it is faster whereas Emulate can run other CPU architectures by virtualizing the required CPU architecture.
    (Believe me, I have tried emulate , it's sh*tty slow. So i would advise you to never go for that option if you do not have a very light OS running only command lines)
Install Linux (Ubuntu 20.04) on M1/M2 Mac Silicon (4)
  • Select “Linux” Obviously.
Install Linux (Ubuntu 20.04) on M1/M2 Mac Silicon (5)
  • Choose Boot from the ISO image and browse to the downloaded server image which we have downloaded in Step 2
Install Linux (Ubuntu 20.04) on M1/M2 Mac Silicon (6)
  • Now allocate the required resources to the machine. I would highly recommend allocating half of your system’s resources (Not the storage obviously) to the virtual machine for the best performance. Try not to run any other application while working on your virtualized OS to conserve resources and boost performance, otherwise, your system may crash.
Install Linux (Ubuntu 20.04) on M1/M2 Mac Silicon (7)
Install Linux (Ubuntu 20.04) on M1/M2 Mac Silicon (8)
Install Linux (Ubuntu 20.04) on M1/M2 Mac Silicon (9)
Install Linux (Ubuntu 20.04) on M1/M2 Mac Silicon (10)

4. Start the Virtual Machine:

  • Once the configuration is complete, click “Create” to create the virtual machine.
  • Select the newly created virtual machine from the list and click “Start” to launch it.

5. Install Linux:

  • The virtual machine will boot from the Linux ISO image.
  • Follow the on-screen instructions to install Linux on the virtual disk.
Install Linux (Ubuntu 20.04) on M1/M2 Mac Silicon (11)
Install Linux (Ubuntu 20.04) on M1/M2 Mac Silicon (12)
Install Linux (Ubuntu 20.04) on M1/M2 Mac Silicon (13)

Select the keyboard configuration and the network connection configuration.

Install Linux (Ubuntu 20.04) on M1/M2 Mac Silicon (14)

You may leave the proxy adress field empty if you don’t want to use any HTTP proxy to access the outside world “content😗”.

Keep the mirror address as default in the next step and click done.
Select use the entire disk option in the next step

Install Linux (Ubuntu 20.04) on M1/M2 Mac Silicon (15)
Install Linux (Ubuntu 20.04) on M1/M2 Mac Silicon (16)

Select the file system given as it is and continue.
Create your ubuntu account profile in the next step to log in to your system.

Install Linux (Ubuntu 20.04) on M1/M2 Mac Silicon (17)

You may select to use the open ssh server in the next step if you want!
Select any server snap which you may find useful or will be using for our project or work in the next window. Don’t worry you can install them later also if you want!!

Install Linux (Ubuntu 20.04) on M1/M2 Mac Silicon (18)

Now your installation will start — →

Install Linux (Ubuntu 20.04) on M1/M2 Mac Silicon (19)

Wait till it gets completed, it will ask you to reboot your machine once it’s done.

Close the machine after clicking reboot and remove the installation media, i.e., the iso file from VM settings then again start the machine.

Install Linux (Ubuntu 20.04) on M1/M2 Mac Silicon (20)

Now login to your Ubuntu server and let’s start your favourite desktop environment installation.

6. Installing the Desktop Environment:

  • To install the Ubuntu desktop system (gnome 3), run:
    $ sudo apt install ubuntu-desktop
    OR use transitional package name for Gnome 3 desktop:
    $ sudo apt install ubuntu-gnome-desktop
    Run the following to install the Kubuntu Plasma Desktop/Netbook system (KDE) (I prefer this because it’s very light weighted and smooth ):
    $ sudo apt install kubuntu-desktop
    Want Lubuntu Desktop environment?, Try:
    $ sudo apt install lubuntu-desktop
    Execute the following command to install Xubuntu desktop system:
    $ sudo apt install xubuntu-desktop
  • After the desktop installation process is finished, simply reboot your system once more. Then, presto! You’ll find yourself seamlessly logged into your brand-new and pristine Ubuntu desktop.
Install Linux (Ubuntu 20.04) on M1/M2 Mac Silicon (21)

Voila! You’ve successfully installed the complete desktop edition of Ubuntu 20.04. Now, you’re all set to proceed with installing your preferred Ubuntu packages and software, allowing you to dive into your work seamlessly.
I hope this guide has helped you in installing a working Ubuntu 20.04 installation for your Mac Silicon.

If you have any queries or errors in your installation, feel free to jot me an email on [email protected] 😇.

Install Linux (Ubuntu 20.04) on M1/M2 Mac Silicon (2024)
Top Articles
A business that makes nothing but money is a poor business - Mercury Security and Facilities Management
LAHS Student Op Ed: The Benefits Of Shorter School Days
Craigslist Pets Longview Tx
Form V/Legends
Top 10: Die besten italienischen Restaurants in Wien - Falstaff
How To Get Free Credits On Smartjailmail
Craigslist Vermillion South Dakota
27 Places With The Absolute Best Pizza In NYC
When Is the Best Time To Buy an RV?
LeBron James comes out on fire, scores first 16 points for Cavaliers in Game 2 vs. Pacers
Tokioof
Degreeworks Sbu
Charmeck Arrest Inquiry
Discover Westchester's Top Towns — And What Makes Them So Unique
charleston cars & trucks - by owner - craigslist
Dit is hoe de 130 nieuwe dubbele -deckers -treinen voor het land eruit zien
Bx11
Xxn Abbreviation List 2023
Brett Cooper Wikifeet
Trac Cbna
Invert Clipping Mask Illustrator
Northeastern Nupath
Aspen Mobile Login Help
Finalize Teams Yahoo Fantasy Football
Ppm Claims Amynta
St Clair County Mi Mugshots
What Is The Lineup For Nascar Race Today
3Movierulz
Sam's Club Gas Price Hilliard
Die 8 Rollen einer Führungskraft
Firefly Festival Logan Iowa
Ultra Ball Pixelmon
Ncal Kaiser Online Pay
Current Students - Pace University Online
Craigslist Scottsdale Arizona Cars
Rush County Busted Newspaper
Fox And Friends Mega Morning Deals July 2022
Craigslist Org Sf
Quake Awakening Fragments
Petsmart Northridge Photos
Is Arnold Swansinger Married
301 Priest Dr, KILLEEN, TX 76541 - HAR.com
Dcilottery Login
Sig Mlok Bayonet Mount
Pain Out Maxx Kratom
'The Night Agent' Star Luciane Buchanan's Dating Life Is a Mystery
Europa Universalis 4: Army Composition Guide
The Jazz Scene: Queen Clarinet: Interview with Doreen Ketchens – International Clarinet Association
Www Extramovies Com
Anthony Weary Obituary Erie Pa
Latest Posts
Article information

Author: Sen. Emmett Berge

Last Updated:

Views: 6012

Rating: 5 / 5 (60 voted)

Reviews: 83% of readers found this page helpful

Author information

Name: Sen. Emmett Berge

Birthday: 1993-06-17

Address: 787 Elvis Divide, Port Brice, OH 24507-6802

Phone: +9779049645255

Job: Senior Healthcare Specialist

Hobby: Cycling, Model building, Kitesurfing, Origami, Lapidary, Dance, Basketball

Introduction: My name is Sen. Emmett Berge, I am a funny, vast, charming, courageous, enthusiastic, jolly, famous person who loves writing and wants to share my knowledge and understanding with you.