I am trying to invoke the tool on Centos server from the Ubantu terminal.I am getting the following error.
<strong>Tk initialization failed: no display name and no $DISPLAY environment variable.</strong>
Please Help me with this.Thanks in advance.
Connect to your CentOS machine with
ssh -Y which (per
Enables trusted X11 forwarding. Trusted X11 forwardings are not subjected to the X11 SECURITY extension controls.
That will allow your Tk process to connect to X11 on your Ubuntu machine.
I work on Ubuntu. I had the same problem while using gitk on remote machines. So I tried following
ssh @ip and ran gitk& got the "no display name and no $DISPLAY environment variable." error
ssh -X @ip and ran gitk& it worked! ssh -Y @ip and ran gitk& it worked!
Thanks for the solution. @Elliott Frisch