Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tk initialization failed: no display name and no $DISPLAY environment variable

Tags:

linux

I am trying to invoke the tool on Centos server from the Ubantu terminal.I am getting the following error.

Tk initialization failed: no display name and no $DISPLAY environment variable.

Please Help me with this.Thanks in advance.

like image 441
Gokel Thottempudi Avatar asked Jan 04 '16 04:01

Gokel Thottempudi


1 Answers

Connect to your CentOS machine with ssh -Y which (per man ssh)

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.

like image 54
Elliott Frisch Avatar answered Sep 17 '22 00:09

Elliott Frisch