xshell/pycharm show remote img

  • change /etc/ssh/sshd and restart:
# X11Forwarding yes  ->  X11Forwarding yes
  • sudo apt install x11-xserver-utils

  • xhost + # change control access

  • echo $DISPLAY # if not none, then success

  • install xming in win10 and start it

  • install xshell in win10 and allow x11 transfering to X DISPLAY: localhost:0.0 in property tunnel

  • if you want use it in pycharm, setup remote interpreter and deployment, then edit run/debug configuration to set environment variables with DISPLAY: localhost:xx.0 (xx same with $DISPLAY in remote server)

你可能感兴趣的:(图像处理)