Recently, I was trying to use my HHKB keyboard on a Linux workstation. However, the Meta key on it doesn’t work. To enable it, we can change the system setting by
System -> Preferences -> Keyboard -> Layout -> Options -> Alt/Win key behavior. Choose the “Meta is mapped to left Win”.
Now the system can recognize the Meta key. To use it in terminal, IDEs like the OSX way, just change the keymap in those applications. Enjoy!