0

When opening terminator from my bash Windows 10, I am getting this error

/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)
You need to run terminator in an X environment. Make sure $DISPLAY is properly set 
0

I've done following steps when approached same problem

  1. Install VcXsrv for windows and run it.
  2. Open bash on windows and run echo "export DISPLAY=:0" >> $HOME/.bashrc
  3. for changes of .bashrc file to get append run source $HOME/.bashrc
  4. after that you can run terminator -u and use it
-1

First, install xvfb on your server. Assuming you are using apt-get:

sudo apt-get install xvfb

Now, run the xvfb service at a custom display number, like:

sudo Xvfb :5

After that, you can run any application that requires Xinside your virtual frame buffer by exporting the display number and running your application:

export DISPLAY=:5
run_my_application

The DISPLAY is set only for the current terminal session, so keep that in mind when implementing automation for this step.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.