I have ubuntu desktop running on a remote pc. As an administartor, I can ssh to that pc from my local computer. From my ssh session, I want to open a gnome terminal that appears in the remote desktop so that supervisor in front-of the remote screen can see the result of the script i'm running.
PS: Ubuntu/Debian
UPDATES :
After hours of reseach, this is what I ended up doing in my ssh session:
export DISPLAY='192.168.100.100' (IP of the remote client)
export XAUTHORITY=/home/spv/.Xauthority (spv is user account openned in client side)
/usr/bin/gnome-terminal -- bash -c 'cd /PRJs/nemesis; npm start; exec bash'
And it's working now.