Unable to init server: Could not connect: Connection refused (predictions:1161939): Gtk-WARNING **: 01:44:39.610: cannot open display: code example
Example: Unable to init server: Could not connect: Connection refused (eog:22): Gtk-WARNING **: 21:54:46.367: cannot open display:
# Download Xming application for windows then run following command in Terminal of ubuntu
# You find Xming application for download for windows in following link--
# https://sourceforge.net/projects/xming/
$ export DISPLAY=localhost:0.0
# let's run eog graphical programm of linux to display image
$ eog something.jpg