Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

gordian

macrumors member
Original poster
May 3, 2010
73
13
I already installed Homebrew and many other apps (this is my main work machine) but I'd like to be able to create screencasts showing how to do these things from scratch, preferably on my same machine and preferably without a virtual machine.

I created a new administrative user but when I login with that account and head to Terminal typing `brew update` actually starts the Homebrew update process (it fails due to permissions issues).

I guess I'm looking for a way to create some sort of segregated user account similar to a virtual machine—maybe like how some electronic stores let you do anything on their floor model computers because at the end of the day they all reset.

I hope that's clear!

If anyone has any experience with something like this I'd really appreciate some insight. Thanks!
 
You could install a second Homebrew into another location (e.g. /opt/local instead of /usr/local) for your second account and then prepend the path of the brew binary so that the brew command will refer to that second installation for that account (e.g. export PATH="/opt/local/bin:/opt/local/sbin:$PATH" in your ~/.bash_profile).

https://github.com/Homebrew/brew/blob/master/share/doc/homebrew/Installation.md

For demonstrative purposes, this should work. Homebrew itself does not recommend it though, so you should not use this if you really depend on it.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.