Skip to content

Instantly share code, notes, and snippets.

@ties
Last active April 26, 2021 09:50
Show Gist options
  • Save ties/cb930d568387819a7a5493788025aca4 to your computer and use it in GitHub Desktop.
Save ties/cb930d568387819a7a5493788025aca4 to your computer and use it in GitHub Desktop.
IntelliJ community idea flatpak over remote X11

Run IntelliJ community edition flatpak over remote X11

Make sure you run XQuartz if you are using a mac and that DISPLAY is set on the host machine.

$ export DISPLAY=:0

And SSH to the target machine with forwarding enabled (ssh -Y [host]) Inspect the environment by running:

$ flatpak run --filesystem=~/.xauth com.jetbrains.IntelliJ-IDEA-Community --command=sh -c "export DISPLAY=$DISPLAY"
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
$bash-5.1$ pwd
/app/idea-IC/bin

Finally, run IntelliJ:

$ flatpak run --share=network --command=bash com.jetbrains.IntelliJ-IDEA-Community -c "DISPLAY=$DISPLAY /app/idea-IC/bin/idea.sh"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment