Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationEventAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
23
Help us understand the problem. What are the problem?

posted at

WSL2 での DISPLAY 設定

WSL2 での DISPLAY 設定

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

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

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

image.png

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
23
Help us understand the problem. What are the problem?