Hey guys in this video I'm going to show you how you can install Ubuntu 24.04 on your Mac operating system virtually which supports M1, M2 or M3 chips. We are going to use a tool called UTM which is similar to VirtualBox and we will install Ubuntu on our Mac operating system using UTM. First of all we are going to install UTM.
Let's see how we can install UTM on our Mac operating system. So just search for UTM. And the first link which will appear here will be from mac.getutm.app. So we are going to click on this link.
I'm going to provide this link in the description of this video also. And straight away, you can see the download button here. You can also see the description here which says securely run operating system on your Mac.
and you can scroll down and read more about this UTM tool. So here I'm going to click on this download button, which is going to start the download of this UTM.dmg file. So once this UTM.dmg file is downloaded, I'm going to click on this UTM.dmg file, and we are ready to install the UTM tool.
Here you just need to select the U. UTM icon and then press command key and drag and drop this UTM icon on your applications folder which is going to install UTM on your Mac operating system now once UTM is installed we can minimize this and then we can go to the launchpad area and we can see this UTM icon here so I'm going to open the UTM tool from here and you can see UTM is successfully installed and it's running on our Mac operating system. So here you can see what's new. I'm going to just click on continue here and this UTM tool looks something like this.
Now once you have UTM installed we are going to move forward with the download of the Ubuntu ISO file. So because we want to install Ubuntu on our Mac operating system which supports m1 or m2 which is the arm architecture we are going to download the arm image of ubuntu so when i go to my favorite browser and search for ubuntu i i can see this first link which is ubuntu.com i'm going to click on this link here i'm going to select ubuntu server i can also select ubuntu desktop but when i download the ubuntu desktop iso image it's an amd image and at this point we want the arm image and that is only available for ubuntu server so i'm going to select ubuntu server here and then you can click on download ubuntu server and then you need to go to alternative architectures so here you can see the arm architecture and this is what we want right so you don't need to download this AMD ISO image you need to click on the alternative architecture and download the ARM architecture ISO file so I'm going to click on ARM here and then it says Ubuntu server for ARM and then we are going to click on this download button which is going to start the download of this Ubuntu 24.04 live server which is the ARM server right so I have already downloaded this ISO file and So I'm going to cancel this download and let me show you the download section here. So we are going to install Ubuntu using this Ubuntu server ARM image.
Now I'm going to open my UTM manager which looks like this and here we are going to create a new virtual machine. So I'm going to click on this create a new virtual machine button and then I'm going to select the first option. and it says faster but can only run the native CPU architecture and that's why we have downloaded the ARM based image and not AMD based image. So I'm going to select virtualize here and then I'm going to select Linux here and here I'm going to select the path of the ISO file so you need to just leave these check boxes as unchecked. And in the third section, you need to click on Browse and select the Ubuntu live server image.
You can see I have also downloaded the AMD image. which is the AMD 64-bit image but this image we don't want. We have downloaded the ARM based live server image and this is the image we want.
And then you can click on open and you can see it's selected here and then click on continue here. Now in the hardware section you can select the memory by default it's 4000 MB. You can increase this or decrease this depending on the capacity of your Mac operating system. You can also select the number of processors.
So for example, I'm going to select 8 processors, but it totally depends on your Mac operating system, how much cores you have available. You can also check this checkbox and then click on continue here. Now the storage by default, which is assigned by UTM A64 GB, you can increase or decrease this storage depending on the capacity. which is remaining on your mac operating system i'm going to click on continue here and then you can also select the shared directory so i'm going to click on browse here and then i'm going to select downloads directory as the shared directory and then click on open and then click on continue here i can see the summary and i can also give the name to my ubuntu machine so instead of linux i'm going to write ubuntu 24.04 LTS. Okay.
And then you can also select this checkbox. So just check this checkbox. It's going to open the settings for your virtual machine, which you are creating. So I'm going to click on save here, which is going to just open the settings section. So you can later also change these settings.
For example, if you want to reduce the. CPU count or the memory you can decrease it from here. For now everything looks okay for me so I'm going to click on save here.
And once my virtual machine is created I can click on this run button to start the installation of my Ubuntu server for now. And here you just need to drag your mouse inside this black screen and using arrow keys you can move up or down and you need to select the first option which says try or install ubuntu server and then press enter key on your keyboard and here you can see the ubuntu server installation has been started so here you can use your up or down arrow keys to select the language i'm going to use the english language for this installation so select english and then press enter key now in the next section i can select the keyboard layout which I want to use for my Ubuntu operating system. By default it's English US but I want to change it to German keyboard layout because I have the German keyboard layout so I'm going to select this and then I'm going to move my cursor to the German keyboard layout. You can also change this from here.
So if you are using any other keyboard layout other than the default one you can always change this keyboard layout and then once it's selected just select done here and then press enter now in the next section it says choose the type of installation by default it's ubuntu server so we are going to just leave it as default and then use the arrow keys to move your selection upwards and we also want to select this option which says search third party drivers so use space key to select this option and then use arrow key to move down where it highlights the done option and then press enter and in the next section network configuration will be shown so i'm going to leave everything as default and then press enter and now you can also give the proxy configuration for now i don't want to give any proxy configuration so i'm going to press enter here And now it says this mirror location passed the test. So I'm going to just press enter here. And now in the next section, I have guided storage configuration. So I'm going to leave everything as default here, which is use an entire disk.
And then use my down arrow key to move to the done section and then press enter. And then you have the file system summary here. I'm going to just press on Enter or Return key and here I can move my arrow key to continue and then press Enter And now I have the next section which says profile configuration. Here I'm going to give the name to my machine. So I'm going to name my machine as CodeBind here and then move to the next section.
Also server name will be CodeBind in my case. You can give any name here and then I'm going to give the username which is CodeBind again. And then the password I'm going to choose a very simple password here. And then I'm going to choose done and then press enter. Then here it says upgrade to open to pro.
I don't want to do that So I'm going to just skip this for now And then it says you can choose to install open SSH package to enable secure remote access I want to do this I'm going to select this option by pressing space key Which is going to add the X in front of install open SSH server and then move the? Down arrow key to the done and then press enter Then it says third-party drivers. I'm going to click on continue here and then here for now I don't want to install any third-party drivers So I'm going to just move my cursor to done and then press enter and then it's going to start the installation of the system So at this point you just need to wait for a few seconds So once the installation is finished, it's going to look like this at the end.
It says late forward slash run colon that means the installation is finished now you can just use your arrow keys to move down here and just select the option which says reboot now and then press enter which is going to start the reboot now at this point if the reboot doesn't start then you can manually close this window and start the ubuntu operating system So as I can see this reboot is not starting. At this point what I can do is I can select this option which says shut down or stop the virtual machine and then click on ok here which is going to stop the virtual machine and you can close this window. Now once your virtual machine is closed what you need to do here is you just need to make this little bit bigger here. Then when you start your virtual machine it's going to to again try to install your ubuntu if you don't clear this section for your iso file okay so here in this last section you just need to select clear here if you don't choose this then the installation process is going to start again which we don't want right so choose the clear option once it's cleared just start your virtual machine again And now our Ubuntu server has been started. Now because we have installed the Ubuntu server which doesn't come with GUI, that's why the login comes with the command line.
So here you can provide your username. I'm going to provide my username as code bind here. And then it's going to ask me for my password.
I'm going to just provide my password here and then press enter. Which will log me into my Ubuntu server. So now our Ubuntu server is installed but we want to use the Ubuntu using the graphical user interface which we are used to.
And we don't want to use this command line tool to work with our Ubuntu operating system on the Mac. So for that I have some command which I am going to give you in the description of this video also. And these commands look like this.
So to install the Ubuntu desktop we want to use the command line tool. to use this command which says sudo apt install ubuntu desktop but before that we need to give this command which is sudo apt update and we need to also give the sudo apt install tasks cell so let's give these commands one by one first one is sudo apt update so let's open our ubuntu server here here i'm going to just write sudo apt update and then press enter and here you need to provide your ubuntu's password which you have given at the time of installation of ubuntu and then press enter once that's done let me clear the terminal and then we are going to give the next command and that command is sudo apt install task sel and then press enter here and then press y and then press enter again which is going to install this tool And once that's done, we are going to give the next command and this will be the installation of our Ubuntu desktop. So the third command here is sudo apt install ubuntu-desktop So let's give that command.
I'm going to just write sudo apt install ubuntu-desktop And then press enter and it's going to start the graphical user interface for ubuntu Press Y here and then press enter. Now this process of installation of GNOME desktop is going to take Around 20 to 30 minutes, so you don't need to touch anything Just make sure that your Mac operating system is connected to the power source and then just leave this Window open and wait until this process is finished as I said it can take 20 minutes to half an hour so now the installation of Ubuntu desktop has been finished so we can restart our virtual machine which is the Ubuntu server machine. So for that you can clear the terminal. I am going to give the clear command to clear the terminal and then you can just write sudo reboot now and then press enter and give your Ubuntu's password again and then press enter Which is going to reboot your Ubuntu operating system Now every time you reboot your Ubuntu operating system, it might take few seconds to reboot. So you just need to wait for few seconds to a minute depending on the speed of your Mac operating system.
And now I can see the graphical user interface. So now I can log in with my username. This is the username which I have given at the time of installation of Ubuntu server. and then i'm going to just give my password here and i'm logged into my ubuntu operating system and now i can see the graphical user interface here now here this is the welcome window for ubuntu i can click on next here and for ubuntu pro i'm going to skip for now so click on next and then i'm going to click on no i don't want to share any data and click on next and then i'm going to finish this So now you can start using Ubuntu on your Mac operating system.
Now I'm going to give you two more commands so that you can use the shared folder with your Mac operating system and also we can increase the resolution of our Mac operating system by just tweaking a small setting in our virtual machine. So for that, first of all we are going to open the terminal. Just click on this show apps icon and then click on the terminal option.
And this time we are going to give this command which is sudo apt install spice-vd agent and sudo apt install spice-web-davd. You can also combine these two commands in one command by just... giving this command which is sudo apt install spice hyphen vd agent space the spice hyphen web da vd okay these commands also i'm going to give you in the description of this video so let's give this command and i'm going to press enter here and then give my ubuntu's password and then press enter which is going to install these two tools and once that's done we are going to reboot our system once again so i'm going to close this terminal and then click on this power button and then click on this power icon and then click on power off and then click on power off which is going to shut down my Ubuntu machine and then i can close this window now once again i'm going to open utm here and this time i'm going to select my virtual machine and then i'm going to edit some settings so so here is the settings icon so just click on these three lines icon here and then i can go to the sharing section and this time you will see this option which says spryce web dev so click on this option and then we have already selected the downloads folder for sharing right so i'm going to click on open here and then click on save here and once that's done one more thing we can do here is just open the settings once again and then click on display here and then click on retina mode which is going to enhance your display resolution of your ubuntu operating system and then click on save once again once that's done i'm going to click on the run button again which is going to start my ubuntu virtual machine and once i see the login window i'm going to give my ubuntu's password again and log into my ubuntu operating system and this time when I just increase the size of this Ubuntu desktop you can see that resolution of Ubuntu is increased now right now I can click on this file Explorer or folder Explorer and then maximize the size and then when I click on other locations here I can see the spice client folder here I can see all the files which are available in my MacBook's download folder.
So let me open my MacBook's download folder here, and I have three files here, and all those three files I can see here also. So this download folder has been shared. So for example, I want to transfer some file from my Ubuntu operating system to my Mac operating system, or from my Mac operating system to my Ubuntu operating system.
I can do this easily. So let me create a folder in my Ubuntu operating system inside my documents folder and I'm going to name this folder as test here and then what I can do here is I can right click here and then click on copy and then go to the spice client folder here and then right click and paste this folder here and when I go to the downloads folder of my Mac operating system. Now I can see this test folder there also.
So this folder is shared between my Ubuntu and my Mac operating system. So this is how you can install Ubuntu 24.04 on your Mac operating system using UTM. I hope you enjoyed this video and I will see you in the next video.