34
28

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

WSL2 での DISPLAY 設定

Posted at

WSL2 での DISPLAY 設定

WSL2 では、YOUR_HOSTNAME.mshome.net のように、mshome.net をドメイン名としたホスト名が割り当てられています。
これを用いて、

export DISPLAY=`hostname`.mshome.net:0.0

として、DISPLAY 環境変数を設定することができます。
/etc/resolv.conf から IP アドレスを引っ張ってくる必要はありません。

image.png

34
28
2

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
34
28

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?