LoginSignup
5
3

More than 5 years have passed since last update.

Xming 起動時のエラー対応 (Error: Can't open display:)

Last updated at Posted at 2017-12-02

あまりにも初歩的なんでしょうが、一応、備忘録として。

環境は、
Windows10
bash on ubuntu on windows(gensim Doc2Vecで日本語処理したいため)
python3

エラー発生時の状況

BoUoWを起動後、次のコマンドを入力。

$ xeyes &

すると、次のようなエラー発生 (; ゚Д゚)

Error: Can't open display: localhost:0.0

原因

あまりにも単純かもしれませんが一応。
原因は、Xサーバが起動されていなかったため。(;´∀`)

対処方法

対処方法というか、正しい起動方法を備忘録として。

BoUoW上で

export DISPLAY=localhost:0.0

Windpws10上のXmingアイコンをクリックで、Xmingを起動。

BoUoW上で、

xeyes &

これで、Xmingの目玉アイコンが登場。

もし、何かもっと良い方法があったら、教えてください。

5
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
3