|
| 1 | +--- |
| 2 | +sidebar_position: 4 |
| 3 | +--- |
| 4 | + |
| 5 | +## Usage of Linux on MacOS |
| 6 | +**MacOS** users needing a full Linux environment can use a virtual machine (VM) like VirtualBox or access a **Computer Science Instructional Lab (CSIL)** lab, where pre-configured Linux systems are available for development and testing. |
| 7 | + |
| 8 | +## Virtual Machines |
| 9 | +The best way to utilize **Linux** in MacOS is to use a Virutal machine. \ |
| 10 | +The following is a list of tools you can use to utilize Linux on MacOS |
| 11 | + - [VirtualBox](https://www.virtualbox.org/) |
| 12 | + - [Parallels Desktop](https://www.parallels.com/products/desktop/?utm_medium=cpc&utm_source=google&utm_campaign=PDfM%20-%20B%20-%20EN%20-%20PS%20-%20Tier1%20-%20Consolidated&utm_term=parallels%20desktop&utm_content=General&utm_id=43693686&extensionid=&matchtype=e&device=c&devicemodel=&creative=670597955224&network=g&placement=&x-source=ppc&gad_source=1&gclid=Cj0KCQiA-aK8BhCDARIsAL_-H9lFedZ818kCuJZZlEgaKsgUODiQpwheGeihp-XNp575bqQvPgHIAKAaAjVvEALw_wcB) |
| 13 | + - [VMware Fusion](https://blogs.vmware.com/teamfusion/2024/05/fusion-pro-now-available-free-for-personal-use.html) |
| 14 | + - [UTM](https://mac.getutm.app/) |
| 15 | + |
| 16 | + There are many Virtual Machines out in the market but we personally recommand using **UTM** as it is free of use and it is macOS-native (Pre-installed) |
| 17 | + |
| 18 | +## Recommended Linux Distribution for macOS Users |
| 19 | +| Name | Description | |
| 20 | +|------------------|------------------| |
| 21 | +| [Ubuntu](https://ubuntu.com/download/desktop) | User-friendly, great for beginners. | |
| 22 | +| [Pop!_OS](https://pop.system76.com/) | Optimized for productivity and developers. | |
| 23 | +| [Fedora](https://fedoraproject.org/) | Cutting-edge features and polished experience. | |
| 24 | +| [Debian](https://www.debian.org/distrib/) | Stable and reliable. | |
| 25 | +| [Elementary OS](https://elementary.io/) | Designed with a macOS-like interface. | |
| 26 | + |
| 27 | +## How to use Virtual Machine to use Linux |
| 28 | +For demonstration purposes we will be using Ubunto ISO file uploaded to the VirtualBox as an example. We will also assume that users have already downloaded the required VM and Linux distribution file before reading this part of the tutorial. |
| 29 | + |
| 30 | +There exists four major steps when using Virtual machines. |
| 31 | + |
| 32 | +- Creating a new Virtual Machine in VirtualBox |
| 33 | +- Mount the Linux ISO to the VM |
| 34 | +- Start the VM and download Linux |
| 35 | +- Complete Post installation setup |
| 36 | + |
| 37 | +### Step 1 Creating a new Virtual Machine in VirtualBox |
| 38 | +1. Open VirtualBox: |
| 39 | + - Launch VirtualBox after installation. |
| 40 | + |
| 41 | +2. Create a New VM: |
| 42 | + - Click the "New" button to create a new virtual machine. |
| 43 | + - Enter a name for your VM (e.g., "Ubuntu VM"). |
| 44 | + - Choose the type of operating system (e.g., Linux) and version (e.g., Ubuntu (64-bit)). |
| 45 | + - Click Next. |
| 46 | +3. Assign Memory (RAM): |
| 47 | + |
| 48 | + - Decide how much memory (RAM) you want to allocate to the VM. |
| 49 | + - For Ubuntu, a minimum of 2 GB is recommended, but 4 GB is better if your Mac has enough RAM. |
| 50 | + - Click Next. |
| 51 | +4. Create a Virtual Hard Disk: |
| 52 | + |
| 53 | + - Choose Create a virtual hard disk now and click Create. |
| 54 | + - Choose the format for the virtual disk (e.g., VDI). |
| 55 | + - Choose the type of storage (dynamically allocated is fine). |
| 56 | + - Set the size of the virtual hard disk (e.g., 20 GB is a reasonable minimum). |
| 57 | + - Click Create. |
| 58 | + |
| 59 | +### Step 2 Mount the Linux ISO to the VM |
| 60 | +- Mount the ISO: |
| 61 | + - In the settings window, go to Storage. |
| 62 | + - Under Controller: IDE, you’ll see an empty disk. Click the empty disk icon and then click the disk icon next to Optical Drive on the right. |
| 63 | + - Select Choose a disk file and navigate to the Ubuntu ISO file you downloaded earlier. |
| 64 | + - Select the ISO and click Open. |
| 65 | + - Click OK to save the settings. |
| 66 | + |
| 67 | +### Step 3 Start the VM and download Linux |
| 68 | +- |
| 69 | + - start the VM |
| 70 | + - Install Linux |
| 71 | + |
| 72 | +### Step 4 Complete Post installation setup |
| 73 | +1. log in to Linux with your login info |
| 74 | +2. Update the system by inputing the following commands to the terminal |
| 75 | + |
| 76 | +``` |
| 77 | +sudo apt update && sudo apt upgrade |
| 78 | +``` |
| 79 | + |
| 80 | +## Follow along a youtube tutorial on getting started with VMs [**(Here)**](https://youtu.be/FeJyAjDoLEw?si=_92-ksvIbqvLyfmr) |
0 commit comments