发现一个windows下开源且好用X Server.

http://sourceforge.net/projects/vcxsrv/

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

安装完后,修改system.XWinrc菜单

menu remotehost {ubuntu-svr  menu   remoteapps
}menu remoteapps {xterm exec "wscript ubuntuexterm.vbs"    emacs exec "wscript ubuntuemacs.vbs"
}menu root {
// Comments fit here, too..."Reload system.XWinrc"    RELOAD"Applications"            menu    appsSeparator"Show log"    exec    "notepad %logfile%"Separator"Remote Apps"            menu     remotehost
}

vbs脚本(目的是启动远程程序时不出现控制台窗口cmd):

dim objShell
set objShell=wscript.createObject("WScript.Shell")
iReturnCode=objShell.Run("plink -ssh -2 -X -pw pwd user@192.168.0.84 emacsclient -c -a '' ",0,TRUE)

可以编辑一个通用的执行脚本,如全名为remoteexec.vbs

内容如下:

dim objShell
set objShell=wscript.createObject("WScript.Shell")
Set args = WScript.Arguments
if args.Count > 2 thenpwd = args(0)url = args(1)cmd = args(2)iReturnCode=objShell.Run("plink -ssh -2 -X -pw " & pwd &" " & url & " " & cmd,0,TRUE)end if

可使用如下命令执行:

wscript remoteexec.vbs pwd user@192.168.56.10 emacs

菜单中配置可为:

menu vmsvrapps {terminator exec "wscript remoteexec.vbs pwd user@192.168.56.10 terminator"    gnome-terminal exec "wscript remoteexec.vbs pwd user@192.168.56.10 gnome-terminal"emacs exec "wscript remoteexec.vbs pwd user@192.168.56.10 emacs"
}

自启动x server:

1.运行xlanuch按喜好配置好,并保存配置文件

2.增加启动项,启动命令为:

xlanuch -run config.xlaunch

config.xlaunch为前面保存的配置文件。

VcXsrv Windows X Server相关推荐

  1. 我为我Windows Home Server 预热

    这两天在下载Windows Home Server,所以找一些资料来看. 微软宣布Windows Home Server(WHS)正式推出,WHS是一个帮助家庭保护,连接并共享他们的数字媒体与文档的新 ...

  2. Windows 2003 Server 设置技巧

    很多人可以用上的泄漏的版本,相对于工作站系统,服务器在由于做了更多的内核优化,所以在稳定性和安全性方面有很大的提高.但是,很多人并不是需要Server的全部功能的,而且Server系统关闭了某些工作站 ...

  3. Windows Home Server 2011 RC 安装体验

    2011年2月,微软发布了家庭服务器操作系统 Windows Home Server 2011 的 RC 版本.与之前基于 Windows Server 2003 内核的 Windows Home S ...

  4. 用Windows Storage Server 2008做iSCSI存储服务器

    用Windows Storage Server 2008做iSCSI存储服务器 Windows Storage Server 2008(以下简称WSS2008)是Windows Server 2008 ...

  5. 安装Windows Storage Server 2008 R2

    安装Windows Storage Server 2008 R2 1.WSS2008 R2功能概述 Microsoft近期发布了Windows Storage Server 2008 R2(简称WSS ...

  6. 在windows 2008 server core 上搭建sql server 2012 alwayson group

    前言 自 SQL 2005以来,MSFT在SQL server的每个版本都增加了不少令人兴奋的闪亮点,SQL Server 2012也不例外,其中SQL 2012  Alwayson group就是其 ...

  7. Windows 2003 server 服务器集群实例

    两台HP DL580:两台SAN Switch:一台MSA1500做 Windows 2003 server 服务器集群实例. <?xml:namespace prefix = o ns = & ...

  8. Oracle10g 64位 在Windows 2008 Server R2 中的安装 解决方案

    背景: 操作系统Windows 2008 Server R2 要安装Oracle10g 64位版本 安装时出现如下错误: 检查操作系统版本:必须是5.0,5.1,5.2 or 6.0.实际为6.1 未 ...

  9. windows 2003 server 使用cwrsync同步文件夹的权限问题

    windows 2003 server 使用cwrsync 3 同步文件夹后,权限和安全属性不能同步,直接导致无法使用,查阅资料后发现必须在运行命令前使用SET CYGWIN=nontsec参数 将以 ...

最新文章

  1. IOS开发常见warning汇总
  2. 第十二讲 二阶非齐次线性ODE解的结构
  3. MySQL高级 - SQL优化 - 索引提示
  4. 【Python】Python里的复数运算
  5. 股票软件c++源代码
  6. Linux模块化增加设备驱动程序
  7. Linux 网络配置 (nmcli)
  8. 【Kubernetes】k8s使用stargz光速分发镜像
  9. 【软考】【系统架构设计师】最小生成树知识点
  10. opencv机器视觉入门
  11. C语言|const的使用
  12. 某厂向用户提供饲料matlab,Matlab习题
  13. 机器学习算法系列(18):方差偏差权衡(Bias-Variance Tradeoff)
  14. 大学生《Web课程谁》期末网页制作 HTML+CSS+JavaScript 网页设计实例 瑜伽网站企业网站制作
  15. postgre下备份还原
  16. Andriod Studio实现简单的个人信息注册
  17. 页面加载慢该怎么办,一招教你解决。
  18. elcheckbox 点击自动全选问题解决
  19. 中国企业家:乔布斯给中国CEO的三堂必修课
  20. 前程无忧,acw_sc__v2

热门文章

  1. [八方旅人] 魔大公攻略, 可行的一种打法
  2. flask POST请求,数据入库,文件上传,一文看懂,3天掌握Flask开发项目系列博客之三
  3. 基于android os 4.4,nubia UI 2.0 公测发布 基于Android 4.4系统
  4. Php斐波那契数列尾递归优化,递归优化的这三种方式你知道吗?
  5. (2)php爬虫---提取优酷动漫的外链与介绍
  6. c#检测端口是否被占用
  7. 服务器物理内存利用率,物理内存占用率过高
  8. ibm服务器显卡驱动不显示,x3250-您好,求IBMX3250M4显卡驱动,官方服务器,不能上网,谢谢。...
  9. ES7新特性(values、entries、padStart、padEnd)
  10. 潜意识吸引!如何成功钓到心仪妹子