How do I setup brew on a ucore server?

I would like to get some extra tools/packages on my ucore server, so that it acts more like my aurora desktop when I ssh into it.

What is the best way to get homebrew installed and working on the system?

Copy, paste, and run the codeblocks on this web page: Homebrew on Linux — Homebrew Documentation