-
-
Notifications
You must be signed in to change notification settings - Fork 17
Install ROS on macOS
Quintin edited this page Sep 25, 2023
·
58 revisions
Although not officially supported, running a virtual machine with VMWare Fusion or UTM works decently well.
Download Ubuntu server ISO here:
(M1 or M2, choose 64-bit ARM server) https://cdimage.ubuntu.com/releases/focal/release/
(Intel, choose 64-bit AMD64 server) https://releases.ubuntu.com/focal/
- Request an account for the VMWare IT Academy following this guide: https://its.umich.edu/computing/computers-software/software-services/software-information/vmware
- Wait for the email notifying you that a VMWare subscription has been allocated to you (up to 4 hours wait). Follow the link to register
- Visit this link and make sure you are still logged into your account. Request a license for VMWare Fusion Pro (version 13.x as of writing): https://itacademy.vmware.com/catalog?pagename=Software-Licenses-Repository (up to 12 hours wait)
- Download VMWare Fusion Pro from https://www.vmware.com/products/fusion/fusion-evaluation.html and install it
- Install the downloaded OS from the .iso file
- Configure the memory and hard disk (allocate as much RAM as you can based on your computer's limits for memory. For hard disk, we recommend at least 64GB for disk storage but if you can't 32GB should be fine). On this page, click on customize settings
![Screen Shot 2023-09-17 at 12 18 22 PM](https://private-user-images.githubusercontent.com/91025934/268514561-eef19187-2548-4478-8b4c-d800d8985f46.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0NDk0ODEsIm5iZiI6MTczOTQ0OTE4MSwicGF0aCI6Ii85MTAyNTkzNC8yNjg1MTQ1NjEtZWVmMTkxODctMjU0OC00NDc4LThiNGMtZDgwMGQ4OTg1ZjQ2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDEyMTk0MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWVkMDY5MzY5ZGEwMzU0N2M5N2IyNGZkMjAwNmJkOGEzNzYwMGYzZmY4Yzc0OTc1NjNhODNlYmI0YWM3ZjI1ZTcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.ZHzy7pfQe8rNqaY-_eNbIg6z3NrBxKK_z6SIXkVqWH0)
Then customize memory and hard disk in these locations:
![Screen Shot 2023-09-17 at 11 52 16 AM](https://private-user-images.githubusercontent.com/91025934/268514595-061406c6-c719-4c8d-b24d-8f1a23dc1569.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0NDk0ODEsIm5iZiI6MTczOTQ0OTE4MSwicGF0aCI6Ii85MTAyNTkzNC8yNjg1MTQ1OTUtMDYxNDA2YzYtYzcxOS00YzhkLWIyNGQtOGYxYTIzZGMxNTY5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDEyMTk0MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPThhNGY2OTEzM2YxZGJkZTkzNWYyZDcxOWQ0YzkxYWI2NGUzM2I3YTk2MTRmODRkYWY4NTY5YzVhNDNmNWNmYjUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.HecmoNy119w9lC4QFy2DM3uKq5zQKS-N9fjXtyDgn4k)
- Move on to UTM and VMWare section below
- ADVANCED: Enable "Accelerate 3D Graphics" under "Settings > Display" for the VM. In the VM install the latest Mesa drivers
sudo add-apt-repository ppa:kisak/kisak-mesa && sudo apt update && sudo apt upgrade
. Also install the latest Linux kernelsudo add-apt-repository ppa:cappelikan/ppa && sudo apt update && sudo apt install mainline
. Kernel version6.2.16
worked as of writing this. Note the header apt package may fail to install but that is okay. Fix it withsudo apt --fix-broken install
.
- Make sure you have brew installed
- Run
brew install --cask utm
from your terminal - Open the UTM application (through launchpad or
cmd-space
then search UTM) - Select the plus button, click virtualize, click other, click browse, then choose the iso file you downloaded. Continue
- On the hardware page, set it to how much you want (suggested: around 3/4 to all of your computer's memory). Continue
- On the storage page, set to 64GB. Continue
- Shared Directory: Continue
- Summary: Save
- Move on to UTM and VMWare section below
- Launch the VM (click play button) and let ubuntu server install
- Enter for install
- Continue without updating
- Select keyboard is English: Done
- Network connections: Done
- Configure proxy: Done
- Configure Ubuntu archive mirror: Done
- Guided storage configuration: [X] Use entire disk and [X] Set up this disk as LVM group, arrow down to done
- Storage configuration: Done. Confirm destructive action: Continue
- Profile setup: Names can be whatever you want, but make sure you remember both the username and password. Done
- SSH Setup: don't need to install now. Done.
- Featured Server Snaps: don’t need to select any, can install later if needed. Done
- Wait for “subiquity/Late/run” then arrow down to Reboot Now
- If you boot to a blinking cursor and you are using UTM, shut down the VM, go to settings (three lines with circles in top right after clicking on your virtual machine), find the USB disk drive, and delete it. Save. Then start the VM again
If you are using VMWare and you get stuck on this page:
Click on the settings:
Open starter disk:
And restart the VM:
- Enter username, then password (set during profile setup)
- Run
sudo apt update && sudo apt install tasksel && sudo tasksel install ubuntu-desktop
to install GNOME (the display manager) - After installing packages (100%), run
sudo reboot
in the terminal space at the bottom of the screen - Login
- Livepath: don’t need to set up, Next. Help improve Ubuntu: pick then click next. Privacy: Next. Done
- Power off the VM:
![Screenshot 2023-09-17 at 10 42 23 PM](https://private-user-images.githubusercontent.com/101608185/268546276-171fcb16-cc0d-4827-be09-c1ad7530651f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0NDk0ODEsIm5iZiI6MTczOTQ0OTE4MSwicGF0aCI6Ii8xMDE2MDgxODUvMjY4NTQ2Mjc2LTE3MWZjYjE2LWNjMGQtNDgyNy1iZTA5LWMxYWQ3NTMwNjUxZi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxM1QxMjE5NDFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0wOGUxOTIzMTYxMzQ3YjcyOGIxYWM2ZjM1ZDU3MGZhYjNhZjY4N2EzNTc0NGMyYjhjY2JiYjNmNTk2MGQ4NWQ1JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.N3VgDNpgNvLtGOFAv-jak-MpNIl-NoQHvcmkcecoeVM)
Click on the settings:
![Screen Shot 2023-09-14 at 12 51 10 PM](https://private-user-images.githubusercontent.com/91025934/268054879-f7bec185-9dc7-4626-93a9-b29f95a1ed7f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0NDk0ODEsIm5iZiI6MTczOTQ0OTE4MSwicGF0aCI6Ii85MTAyNTkzNC8yNjgwNTQ4NzktZjdiZWMxODUtOWRjNy00NjI2LTkzYTktYjI5Zjk1YTFlZDdmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDEyMTk0MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY1MmM0YmU5ZThlYzhlM2NiNDRmZTAzZGQ4NDUyMTc0MjY5MDliNzZhY2MzY2FhNTkzMDM3ODc2NTZmNGNjYjEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.wM2Q_jAAfAZKqPCSOtoYNdhCVSbQdul4UuG8KwIE8zc)
Open CD/DVD (SATA):
![Screenshot 2023-09-17 at 10 42 43 PM](https://private-user-images.githubusercontent.com/101608185/268546333-78068b82-9cf6-477e-b99c-683dd51b42e0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0NDk0ODEsIm5iZiI6MTczOTQ0OTE4MSwicGF0aCI6Ii8xMDE2MDgxODUvMjY4NTQ2MzMzLTc4MDY4YjgyLTljZjYtNDc3ZS1iOTljLTY4M2RkNTFiNDJlMC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxM1QxMjE5NDFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT00NjNjZjA0M2I0ZjM5ZjZkOTkyODYxMmEyNDAyOWI4NDY4MjQ1OTVhNTViNmNlYjNlYzA3MTA3OGY0NWIyZmNiJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.RhYxpLB-WpTIcVC0mcAOKZlAfk6c6chI4ZCRJN5_NV4)
Make sure "Connect CD/DVD Drive" is not checked:
![Screenshot 2023-09-17 at 10 42 52 PM](https://private-user-images.githubusercontent.com/101608185/268546420-d94c7b2a-2f58-4c14-8a7e-baf4d9e284eb.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0NDk0ODEsIm5iZiI6MTczOTQ0OTE4MSwicGF0aCI6Ii8xMDE2MDgxODUvMjY4NTQ2NDIwLWQ5NGM3YjJhLTJmNTgtNGMxNC04YTdlLWJhZjRkOWUyODRlYi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxM1QxMjE5NDFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1kNzBhMDZlYmQ1NzgyM2UxZGJlZjA3MjM4NGRhNWZmYzM4YTkyZmQ4MDkzYWQzNWI2OTE5M2U0ZDUxMDI0MTYwJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.SlnaXVhXpXOZquTNTBVoIAguq83Q5Scmkjo30kwIvSo)
21. Press the play button and login back into the VM
22. Finally go to https://github.com/umrover/mrover-ros/wiki/2.-Install-ROS to Set Up Your SSH Key, Install ROS Natively, Update Dependencies, and Setup MRover codebase