본문 바로가기
IT/JAVA

WSL 환경에서 개발환경 꾸미기(Linux용 GUI 실행시키는법 포함)

by 골든크랩 2024. 2. 1.
728x90
반응형

 

 

1. 아래 플그램을 다운 받아 설치하데, 2번을 조심하자.

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

 

VcXsrv Windows X Server

Download VcXsrv Windows X Server for free. Windows X-server based on the xorg git sources (like xming or cygwin's xwin), but compiled with Visual C++ 2012 Express Edition. Source code can also be compiled with VS2008, VS2008 Express Edition and VS2010 Expr

sourceforge.net

2. 설정시 아래 화면대로 할것. 그왼 디포

 

3. .bashrc에 다음 내용 추가

export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{ print $2 }'):0

 

4. wsl 재기동(cmd 창으로 해도 됨)

PS> wsl --shutdown
PS> wsl -d Ubuntu

 

 

5. WSL에서 gedit 설치해서 실행하는지 봐라.

sudo apt install gedit

gedit .bashrc

 

이글은 아래 글을 참고했다.

https://hbase.tistory.com/303

 

[Windows] WSL을 이용한 이클립스(Eclipse) 개발환경 구축

윈도우 WSL 리눅스에 소스코드를 받고, 리눅스 용 이클립스를 실행시켜 개발하는 환경을 구축해보자. Windows에서 인텔리제이로 WSL내에 있는 프로젝트를 열다가 잘 안되서 이클립스를 WSL 안쪽에

hbase.tistory.com

 

728x90
반응형

'IT > JAVA' 카테고리의 다른 글

클래스 로더와 JVM의 동작 원리  (0) 2024.11.28
maven 설치하기  (0) 2024.01.23
ubuntu 에 intellij 설치하기  (0) 2024.01.22
ubuntu 에 java 17 버전 설치  (0) 2024.01.22
Reactor 패턴과 이벤트 루프  (0) 2023.12.13

댓글