How to Install Unity and Visual Studio on Mac without Admin Rights

Search for a command to run...

No comments yet. Be the first to comment.
I’m excited to announce that forwarddomain.net has been acquired. The hosting service and its project will remain free and open source. It’s just that I’m no longer owning the project. Forward Domain has been this little sister project of a larger pa...

Pop!_OS just released it’s new and stable COSMIC DE, and better yet, it came with ARM image! I can’t help myself but straight away wiping my linux disk into a brand new Pop!_OS. And everything went smooth! Except it came with broken open file dialog,...
Here’s I do it, first install the llvm 21: wget https://apt.llvm.org/llvm.sh chmod +x llvm.sh sudo ./llvm.sh 21 Then install all LLVM tools sudo apt install llvm-21* clang-21* lld-21* lldb-21* Then install the alternatives (see the script) wget htt...
I got a problem with tar inside podman The problem podman run -v $HOME:/mnt:Z -it --rm debian:trixie bash root@9d22f8d85816:/# cd /mnt/Documents/ root@9d22f8d85816:/mnt/Documents# apt update root@9d22f8d85816:/mnt/Documents# apt install wget root@9d2...
A few months ago, I was wondering how an OS works, and instead of trying a new one from scratch, I decided to jump in on the existing one, which is Redox OS, to be exact. Redox OS is an OS that embraces microkernels and Rust as its base language, whi...

I came across a situation where I was stuck with a work laptop that didn't allow me to install apps with system privileges... So I went with a workaround.
This assumes you still have sudo access needed to grant a Unity license and additional Visual Studio packages.
Start with downloading Unity Hub for Mac. After opening the .dmg file, copy the "Unity Hub" App and paste it to ~/Applications (Use ⌘⇧G to access this folder). Don't drag it directly to Applications as it will ask you for a system password.

Continue following the installation as usual, but skip the granting license part.
When installing Unity, change the installation target directory to ~/Applications/Unity (create the Unity folder in ~/Applications first)
Now, we'll try to activate the Unity license. Use manual activation by using the "Activate with license request" as we can't use the "automatic" way without asking for a system password.

It will generate a .alf file, upload it to the unity site, download the .ulf, or licensed file. Then we activate it using Terminal.
# replace "2021.3.19f1" with your Unity version
~/Applications/2021.3.19f1/Unity.app/Contents/MacOS/Unity -batchmode -manualLicenseFile ~/Downloads/Unity_v2017.x.ulf -logfile
It should be activated and you can open Unity from now.
Download Visual Studio for Mac. Follow the usual installation steps.
Without the knowledge of the system password, we'll be stuck on this installation progress, and had to cancel:

Fornatunely, the download has just been cached. Open this folder in Finder using ⌘⇧G:
~/Library/Caches/VisualStudioInstaller/downloads/
Find the .dmg file contains Visual Studio, copy the "Visual Studio" app to ~/Applications.

Next, open a project with Unity. We will integrate Unity with Visual Studio.
Configure your Unity to Open External Script Editor with Visual Studio for Mac: (browse and locate the editor in ~/Applications/Visual Studio.app)

Next, open the C# Project. It should be opened with Visual Studio.
At first open, you will be asked to Install Mono, which is required so your project compiles:

Clicking Restart will not work as it will ask system password. We'll use Terminal to install it.
# go to temporary downloads. Change "17.0" with your version
cd ~/Library/Caches/VisualStudio/17.0/TempDownload/
# install all .pkgs there
sudo installer -pkg monoframework-mdk-6.12.0.188.macos10.xamarin.universal.pkg -target /
sudo installer -pkg microsoft-jdk-11.0.16.1-macos-aarch64.pkg -target /
sudo installer -pkg OpenJDK8U-jdk_x64_mac_hotspot_8u302b08.pkg -target /
Things should works now. Enjoy!
References: