Thursday, July 12, 2018

[Ubuntu] Run GUI application on remote server


==========================================
If normal applications (like xclock, firefox)
==========================================
$ ssh -XY myaccount@remote_x11.server
$ xclock
$ firefox
==========================================


==========================================
If SNAP applications (like /snap/bin/notepad-plus-plus )
==========================================
$ ssh -XY myaccount@remote_x11.server
$ cp ~/.Xauthority ~/snap/notepad-plus-plus/current/
$ /snap/bin/notepad-plus-plus
==========================================