Nx Client from Mac to Ubuntu – Alt Key

If you’re here, you probably already know the problem. If you use intellij like I do, I hope this helps with your imports.
Given Mac OSX connecting to Ubuntu over NoMachine’s nx client

1. Create and/or or place this in your ~/.Xmodmap on your mac

keycode 66 = Alt_L
clear Mod1
add Mod1 = Alt_L Alt_R

2. Start/Restart X11 on mac from Utilities>X11.app
3. Do *Not* start NxClient via Mac GUI. (If you are starting NxClient by clicking on the red NxClient icon with the mouse, this isn’t going to work.)
Instead, create an X11 terminal window. (Make sure the top left icon says X11, to know you are usings the correct terminal app.)
and start NxClient from that terminal’s command line:

/Applications/NX Client for OSX.app/Contents/MacOS/nxclient

4. If you are in Intellij, your Alt-Enter key combo will be this on a macbook pro:
alt/option + the small ‘enter’ key next to the right Apple key.
It will Not work with the usual alt/option + the big enter/return key.



This entry was posted in Tips and tagged , , , , , , , . Bookmark the permalink.

6 Responses to Nx Client from Mac to Ubuntu – Alt Key

Leave a Reply

Your email address will not be published.