xrdp
vnc
xming
http://www.straightrunning.com/XmingNotes/#head-144
尝试只用ssh -Y来转发,没有成功,最后还是用了一站式服务的putty。
git bash
中提供的bash
的模拟环境,用来ssh连接非常合适,在windows上安装过git之后一般默认都会安装。就只差一个xserver,所以使用git bash
来实现图形转发,和xming作为xserver搭配非常完美,以下为解决方案
- git bash中配置
export DISPLAY=localhost:0.0 # 注意一定要加上localhost,否则会出现 # connect /tmp/.X11-unix/X0: No such file or directory
- 打开
xming
软件 - 在
git bash
里连接远程服务器,同时指定图形转发-Y
选项ssh -Y <你的服务器>
xpra
指定应用(不推荐)
服务器端把xterm在display:100上输出
xpra start :100 --start=xterm
windows启动xpra客户端
连接填上主机名,display号即可
期间遇到报错
Warning: failed to create script directory
没有指定环境变量$XDG_RUNTIME_DIR,导致默认文件夹没有权限
特地指定一个文件夹
export XDG_RUNTIME_DIR=~/xpra
解决报错问题
不指定应用
xpra start :100 --start=xterm
并配置当前terminal的DISPLAY
export DISPLAY=:100