Windows에서 Ubuntu 를 접속한 상태에서 CLI 모드로 실행 중인 Ubuntu 의 GUI feature를 Windows 에서 실행시키는 방법을 소개합니다.

 

 

먼저 Ubuntu 에서 아래의 패키지들을 설치합니다.

Ubuntu 에서 실행

  apt update
  apt install x11-apps xorg openbox
  
  ## firefox 사용을 위해서 추가로 설치함
  apt install firefox

 

 

Windows OS로 돌아와 xming을 설치하고, Terraterm 의 ssh forwarding 설정을 합니다.

Windows OS에서 실행

xming 설치

아래에서 다운받아 설치

https://sourceforge.net/projects/xming/

 

Terraterm 에서 ssh forwarding 설정

Setup > SSH Forwarding > Display remote X application on local X server 체크

 

Setup > Save Setup 

 

 

새 세션에서 GUI 프로그램 실행

 

 

terraform 으로 새 세션을 열고 `echo $DISPLAY` 를 수행해 본다.

 

아래와 같이 인식되면 정상이다.

ubuntu@u2004iac:~$ echo $DISPLAY
localhost:10.0

firefox를 실행해보면 xming이 실행된다.

ubuntu@u2004iac:~$ firefox

새로운 창에 firefox 가 실행된 모습

'기타' 카테고리의 다른 글

wsl: docker, kind 설치  (0) 2023.11.05
curl 에 timeout 주기  (0) 2023.10.04
개행문자(\n)를 줄바꿈으로 변환하기  (0) 2022.03.19
Browser IDE, code-server 사용해보기  (0) 2022.03.18
Windows terminal 의 pane 기능  (0) 2022.02.05

+ Recent posts