사용자 도구

사이트 도구


xserver

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

다음 판
이전 판
xserver [2019/02/28 12:17] – 만듦 rex8312xserver [2024/03/23 02:38] (현재) – 바깥 편집 127.0.0.1
줄 1: 줄 1:
 ====== xserver ====== ====== xserver ======
  
 +===== 원격 서버에서 GUI 어플리케이션 실행 =====
 +
 +  * windows 클라이언트에 xming-mesa 설치
 +    * http://www.straightrunning.com/XmingNotes/#head-147
 +
 +  * ssh 설정
 +    * https://unix.stackexchange.com/questions/12755/how-to-forward-x-over-ssh-to-run-graphics-applications-remotely
 +    * 클라이언트 "~/.ssh/config"에 "ForwardX11 yes" 설정
 +    * 서버 "/etc/ssh/sshd_config"에 "X11Forwarding yes" 설정
 +    * "ssh -X {user}@{ip}" 로 접속
 +
 +  * 테스트
 +
 +<code bash>
 +sudo apt install mesa-utils
 +glxgears
 +</code>
 +
 +
 +===== Windows Linux Subsystem (WSL)에서 GUI 어플리케이션 실행 =====
 +
 +windows에서 xming 설치
 +
 +<code bash>
 +# 리눅스에서 실행
 +sudo apt-get install x11-apps
 +export DISPLAY=:0
 +xeyes
 +</code>
 +
 +  * https://virtualizationreview.com/articles/2017/02/08/graphical-programs-on-windows-subsystem-on-linux.aspx
   * https://github.com/Unity-Technologies/obstacle-tower-env/blob/master/examples/gcp_training.md   * https://github.com/Unity-Technologies/obstacle-tower-env/blob/master/examples/gcp_training.md
 +
 +
 +===== 원격 서버에 있는 docker 컨테이너 안에서 GUI 어플리케이션 실행 =====
 +
 +<code bash>
 +docker run -it --rm -v `pwd`:/mnt --cpus=64 --gpus=all --net=host -v $HOME/.Xauthority:/root/.Xauthority:rw -e DISPLAY --device /dev/dri --name {컨테이너 이름} {컨테이너 이름}
 +</code>
 +
 +  * https://dzone.com/articles/docker-x11-client-via-ssh
xserver.1551356264.txt.gz · 마지막으로 수정됨: 2024/03/23 02:37 (바깥 편집)