How to run Homebrew/X11 on M1 Macs?

Po Cheng Chen 陳柏成
2 min readJan 5, 2021

--

Will your software run on an Apple silicon Mac? You can check this website to see if an app has a native version or does not work at all.

Here, I will share the ways to run Homebrew and X11 on M1 Macs. Hope it’s helpful for you:)

(☞I’ll update this page if figuring out how to run more apps on my M1 Macs.)

Homebrew

What does homebrew do? Homebrew installs the stuff you need that Apple (or your Linux system) didn’t. So, how to run Homebrew on M1 Macs? Since Homebrew doesn’t yet have support for the new Arm architecture, the easiest way to install Homebrew is with

$ arch -x86_64 /bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)”

X11

First, installing xorg via macports. If you don’t have macports, go to its website: https://www.macports.org and click macOS Big Sur v11, then

sudo port install xorg

Second, edit the .zprofile file in the home folder and comment out the line

export DISPLAY=:0

Since xauth does not work with modern Linux for some reasons, there are two ways you can choose to use if you want to use X11:

ssh -Y

or add the below line to the ssh_config:

ForwardX11Trusted yes

Finally, log out and log in again, it should work:)

References:

--

--

Po Cheng Chen 陳柏成
Po Cheng Chen 陳柏成

Written by Po Cheng Chen 陳柏成

Aloha, I’m Po. Atmospheric Sciences PhD | Traveler | Taiwanese | Hawaii 🌊. | Email: popccpo@gmail.com |

No responses yet