X11을 통해서 opencv의 imshow등을 local window에서 띄우고 싶음
VcXsrv를 설치
vscode
F1
- Preferences: Open Settings (UI)
terminal.integrated.env.windows
- Edit in settings.json
DISPLAY 변수 setting 여기서 변수는 linux에서 echo $DISPLAY
했을 때의 변수와 동일하게 설정
좌하단의 remote mark click
Connect to Host
- Configure SSH Hosts...
ForwardX11 설정을 아래와 같이 yes로 변경
Host [호스트명]
HostName [IP 주소]
User [user명]
ForwardX11 yes
ForwardX11Trusted yes
VcXSrc 실행
vscode terminal에서 xeyes
입력 작동 확인