0
0

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 1 year has passed since last update.

WSLからssh接続した先のGUIを表示できない: vcXsrv

Posted at

環境

  • windows10
  • vcxsrv
  • Ubuntu20.04 on WSL2
  • Raspi4 8GB RAM
  • Raspi image: (64bit)v1.0.0.20220219.MiniPupper_V2_ROS&OpenCV_Ubuntu20.04.03.img.zip

状況

wslでラズパイにssh接続した後、vcxsrvの設定をしてxeyesを試そうとしたが表示できない。

解決策

export DISPLAY=\$(cat /etc/resolv.conf | grep nameserver | awk '{print $2}'):0.0 を以下のように変更する
*(windows10のipアドレス)はwindowsのコマンドプロンプトでipconfigと打って出てきた自分のipアドレス

~/.bashrc
export DISPLAY=(windows10のipアドレス):0.0

これは一時的な対策かもしれないのでご了承ください。

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?