WSL2 Ubuntu GUI

  • 가끔 linux 기반에서만 돌아가는 프로그램들이 간혹 있다.

  • 이 경우 terminal 환경에서 사용해도 되나 GUI로 직관적으로 볼 수도 있다.

https://sourceforge.net/projects/vcxsrv/

 

1. xfce4 설치

 

 

 

 

 

2. Ubuntu Setting

# vi ~/.bashrc
export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2; exit;}'):0.0
export LIBGL_ALWAYS_INDIRECT=1

 

 

 


sudo apt update && sudo apt -y upgrade

sudo apt install build-essential

sudo apt install net-tools

sudo apt install xrdp -y && sudo systemctl enable xrdp

#  xfce4 by installing the xubuntu-desktop and then some gtk2 libraries
sudo apt install -y tasksel

sudo tasksel install xubuntu-desktop

sudo apt install gtk2-engines

sudo apt install -y gedit firefox

  • 만약 위대로 했는데 창이 안열린다면 방화벽의 가능성이 높다. 방화벽을 해제해주도록 하자

 

 

 

Comments